background preloader

Css

Facebook Twitter

Sprite Cow - Generate CSS for sprite sheets. CSS Reference. Style-rule ::= selectors-list { properties-list } ... where : selectors-list ::= selector[:pseudo-class] [::pseudo-element] [, selectors-list] properties-list ::= [property : value] [; properties-list] See the index of selectors, pseudo-classes, and pseudo-elements below. The syntax for each specified value depends on the data type defined for each specified property. Style rule examples For a beginner-level introduction to the syntax of selectors, see our guide on CSS Selectors. InstaCSS | Instant CSS Documentation Search. CSS3 Secrets 10 things you might not know about CSS3. Beautiful CSS buttons with icon set. Do you like simple and clean design? Take a look at this collection of buttons for your website.

I love clean design and in general simple solutions to design nice and attractive elements for my websites. This tutorial illustrates how to design nice clean buttons using some lines of HTML, CSS code and proxal icon set. The result is something like this: Simple, clean and nice. Click on the link below to download the source code ready to use in your web projects. Download source code Step 1: HTML Code You can design this kind of buttons using this simple structure: a link (<a> tag) with a span tag inside, in this way: <a href="#" class="button"> <span class="add">Add to your bookmark</span> </a> You can replicate this structure for all buttons you want to add in your page: ...where link tag (<a>) is the "container" of the button: ...and class property for span tag is equal to CSS class which contains in CSS background propery the icon you want to apply to the current button:

Different Stylesheets for Differently Sized Browser Windows. How to style the same HTML document differently on different display devices | Table2CSS. Often same website is to be displayed on different devices (desktop computers, mobile phones, smart phones, PDA devices) or printed. These display devices have different screen resolution and color depth. Obviously the different capabilities of these display (output) devices mean that we should style the same page differently on different devices. A large image header may look good on a PC screen, but most likely it is totally inappropriate for a smart phone with a limited screen size. Naturally the question arises - how to display the same text content on different devices using different styling and/or different images?

The most straightforward approach is to use different web pages with different URLs for different display devices and then to direct different devices to these different URL addresses. CSS offers us an elegant solution to this problem - we can use CSS to instruct the browser to apply different CSS rules based on the type of the display device. For example: <! Screen.css : The Pure CSS3 Content Slider. Font Embedded Icons. Update: This process has been refined. Read the blog post which describes the new method in detail. A little over a week ago, Wayne Helman posted an article proposing the use of @font-face for displaying icons.

The article was well-received, but I was honestly expecting more excitement around this idea. From my view, this now seems like the way to set icons in a site. I feel strongly about the potential of this method, so I thought I would take the time to generate a font set for Iconic and to talk about why we should all be using this method for displaying icons. Before I go into details, if this method is new to you, here is a simple demo of font-embedded icons. Home Plus Minus Window Dial Lightbulb Link Image Article Spin Map Pin Pin Denied Calendar Bolt Clock Book Tag Heart Info Chat Key Unlocked Locked Mail Phone Box Pencil Comment Trash User Volume Mute Cog Check Beaker This demo is a simple list with a tags given specific classes for specific icons. Advantages Disadvantages. Pictos.