Monthly Archives: May 2008

CSS – Specificity & Inheritance & Cascade

When the same element is selected by two or more rules, specificity is used to determine which rule wins out. A selector’s specificity is determined by the components of the selector itself. A specificity value is expressed in four parts,

Posted in CSS

CSS Selectors

Each CSS rule has 2 fundamental parts – the selector and the declaration block. Example: h1 {color: red; background: yellow;} – h1 is the selector, and {…} is the declarations. A value is either a single keyword or a space-separated

Posted in CSS

CSS comments

CSS comments: /*

Posted in CSS

Enclose CSS in HTML comment tag

it is recommended that you enclose your CSS declarations in a HTML comment tag because with browsers that don’t recognize <style></style>, the tags within them might not get ignored completely and could cause potential problems for the HTML file. <style

Posted in CSS

@import directive

@import url(sheet2.css); Just like link, @import can be used to direct the web browser to load an external style sheet and use its styles in the rendering of the HTML document. The only major difference is in the actual syntax

Posted in CSS
Toll Free: 1-888-884-4268