background preloader

Custom Scrollbars in WebKit

Custom Scrollbars in WebKit
Way back in the day, you could customize scrollbars in IE (5.5) with non-standard CSS properties like scrollbar-base-color which you would use on the element that scrolls (like the <body>) and do totally rad things. IE dropped that. These days, customizing scrollbars is back, but it's WebKit this time. The Goods The Different Pieces These are the pseudo elements themselves. The Different States These are the pseudo class selectors. :horizontal :vertical :decrement :increment :start :end :double-button :single-button :no-button :corner-present :window-inactive I'm going to steal this whole section from David's blog post on the WebKit blog because it explains each part well: :horizontal – The horizontal pseudo-class applies to any scrollbar pieces that have a horizontal orientation. All together now These pseudo elements and pseudo class selectors work together. Very Simple Example To make a really simple custom scrollbar we could do this: In The Wild View Demo Related Share this:

The Perfect Fanpage Profile Picture (+ FREE PSD) - WP4FB [message_box type="note" icon="yes" close="Hide"]When this post was post was published, WP4FB was only a simple WordPress theme that is not comparable to the current WP4FB WordPress plugin. The current plugin is a completely new product with many new features. Therefore, this post may be outdated. In this post I want to give away some tips on how to make the perfect fan page profile picture, as well as a FREE profile picture which you can use however you like, so keep on reading! Make use of the size The maximum size of a profile picture is 180 x 540 pixels. However, when you’re using multiple tabs (which appear under the profile picture) you should make sure the page navigation appears above the fold (thus make your profile picture slightly smaller than 540px). Include core benefits As mentioned, the profile picture is the first thing users will see when they visit your fan page. Create a striking thumbnail Include social proof Liking a fan page on Facebook is a social interaction.

Lumbar Lumbar is a js-build tool that takes a general codebase and list of platforms to generate modular platform specific applications. Introduction You can think of lumbar as a conditional compiler that targets platforms. However, it doesn’t rely on variables in your source code. There’s no #ifdef or #endifs. It allows you to define multiple routers in your code.It pulls in your mustache or handlebars templates.It pulls in your stylus styles and generates css files.It outputs standalone javascript and css files.It wraps your code in the correct scope (module pattern), or not. Lumbar works well with Backbone allowing for grouping of routers, models, views, and other application code into stand alone modular javascript and css files which can be lazy loaded when the route is encountered. Best of all, if what’s included out of the box doesn’t satisfy your needs, then you should be able to build a plugin relatively easily to support it. High Level Overview The next big term are module(s). Platforms .

26 jQuery Plugins for Superb Navigation Join Web Design Fan Club to gain access to premium tutorials, free Wordpress themes, high-quality resources and fantastic deals. Learn more. Web Design Blog | Web Design Fan | Resources for Web Designers and Graphic Designers 26 jQuery Plugins for Superb Navigation Written ByTomas LaurinaviciusinInspiration, Tools digg One of the most important website element without content or design is navigation. If you are interested in CISSP certification and seeking some expert help for your exam then you should go for 642-832 dumps and 70-640 practice test by test-king so you will pass your certification exam on first attempt. We hope that you will find what are you looking for and share your thoughts in comments. 1. jQuery Image Gallery View Demo 2. View Demo 3. View Demo 4. View Demo 5. View Demo 6. View Demo 7. View Demo 8. View Demo 9. View Demo 10. View Demo 11. View Demo 12. jSlickmenu: A jQuery plugin for slick CSS3 menus View Demo 13. View Demo 14. View Demo 15. jQuery idTabs View Demo 16. View Demo 17. 18. 19.

FFFFALLBACK - A simple tool for bulletproof web typography. addyosmani/backbone-fundamentals - GitHub CSS3 Lightbox Today we want to show you how to create a neat lightbox effect using only CSS. The idea is to have some thumbnails that are clickable, and once clicked, the respective large image is shown. Using CSS transitions and animations, we can make the large image appear in a fancy way. View demo Download source With the help of the pseudo-class :target, we will be able to show the lightbox images and navigate through them. The beautiful images are by Joanna Kustra and they are licensed under the Attribution-NonCommercial 3.0 Unported Creative Commons License. Please note that this will only work with browsers that support the :target pseudo class. Let’s do it! The Markup We want to show a set of thumbnails, each one having a title that will appear on hover. The anchor for the thumbnail will point to the element with the id image-1 which is the division with the class lb-overlay. Note that we only use a navigation in the last demo. Let’s beautify this naked markup. The CSS And that’s all the style! Demos

Mega Web Buttons Pack #1 Today we want to share our first set of easy-to-implement buttons called ‘Mega Web Buttons Pack’. In this set you will find 42 buttons which you can use easily on your website. We are using the WooFunction icon set released under the GNU General Public License. View demoDownload source Today we want to share our first set of easy-to-implement buttons called ‘Mega Web Buttons Pack’. Our first step is to add the following line of jQuery: This means that we will create a new ‘span’ element which is the holder for the button icon. If, for example, you want to add the ‘Chart’ button you need to add markup to your website: or the ‘Search’ button: In the CSS you can change the looks by, for example, changing the background color: and markup will be: etc. :) We hope you like our experiment.

CSSDeck Fullscreen Background Image Slideshow with CSS3 Happy new year, everybody! Today we will create a CSS-only fullscreen background image slideshow. We'll create different image transitions and also make a title appear using CSS animations. View demo Download source Happy new year, everybody! The images are by Mark Sebastian and they are licensed under the Creative Commons Attribution-ShareAlike 2.0 Generic License. Note that this will only work in browsers supporting CSS animations. This tutorial is a part of our latest CSS3 experiments; you can find more of those here: The Markup We’ll use an unordered list for the slideshow and we’ll add a span for each image and a division with a heading: <ul class="cb-slideshow"><li><span>Image 01</span><div><h3>re·lax·a·tion</h3></div></li><li></li><li></li></ul> The spans are going to be the elements that will have the background images of the slideshow. The CSS Let’s style the unordered list first. The animation for each span will last 36 seconds and run an inifinite number of times. Demos

CSS drop-shadows without images Drop-shadows are easy enough to create using pseudo-elements. It’s a nice and robust way to progressively enhance a design. This post is a summary of the technique and some of the possible appearances. Demo: CSS drop-shadows without images Known support: Firefox 3.5+, Chrome 5+, Safari 5+, Opera 10.6+, IE 9+ I’ll be looking mainly at a few details involved in making this effect more robust. After a bit of back-and-forth on Twitter with Simurai, and proposing a couple of additions to Divya’s and Matt’s demos using jsbin, I felt like documenting and explaining the parts that make up this technique. The basic technique There is no need for extra markup, the effect can be applied to a single element. The pseudo-elements need to be positioned and given explicit or implicit dimensions. The next step is to add a CSS3 box-shadow and apply CSS3 transforms. One of the pseudo-elements then needs to be positioned on the other side of the element and rotated in the opposite direction.

Useful HTML5 Frameworks, Template Generators and Tools Web designing needs consideration of a few facts before starting with a particular project. Clients will never allow you to take ample time to end up the project and you have to be efficient enough to run parallel with your clients. Uses of technical applications can ease the task which again takes in account the right choice of the designing medium. Using designing template is thus important to deliver a project at the stipulated time. HTML5 frameworks help to cut short the CSS step along with increasing the visibility of the site. Let me discuss in brief why it is inevitable to use frameworks while working with HTML5. Few of the HTML5 frameworks, template generators and tools provide option to include the template in your preferable place including JavaScript, server configurations, Google analytics and also jQuery. The sites that incorporate HTML5 and CSS3 should be grateful to these magical framework. Initializr Modernizr 52framework HTML5 Boilerplate reformed Form Builder Sencha LimeJS

The Top 8 Placeholder Services for Web Designers In the last year, there's been a wave of helpful placeholder services. What's a placeholder? Well, when you're working on a new website, isn't it a waste of time to use stock images, cropped to the right dimensions? A placeholder service allows you to automatically use a random image at the desired dimensions with minimal effort. In the last week, I've compiled a list - in no particular order - of what I consider to be the most useful and flexible placeholder services on the web. Certainly, for most of you, you'll end up picking one or two of the following to use in your own projects. 1 - PlaceKitten A quick and simple service for getting pictures of kittens for use as placeholders in your designs or code. Usage Follow the placekitten.com url with your desired dimensions. 2 - Placehold.it A quick and simple image placeholder service. Note that, with this service, you set your dimensions more traditionally, rather than separating the widths and heights into segments. 3 - SheenHolders Conclusion

Related: