CSS, How To use advanced selectors.

August 6th, 2009

Child selectors Child selectors are used to selected an element that is a direct child of another elements parent. Child selectors will not selected all descendants, only direct children. For example, you might want to target an <em> that is a direct child of a <div>, but not other <em> elements that are descendants of the <div> *Child selectors are not supported by IE 5, 5 Read More...

CSS, How to use Universal Selectors

August 6th, 2009

Universal selectors are used to select any element. For example , to set the margins and padding on every element to 0, * can be used. *{ margin: 0; padding: 0; } Universal selectors also can be used to select all elements within another elements. The code below will select any element inside the <p> element Read More...

CSS, How to use Descendant Selectors

August 5th, 2009

Sample HTML <body> <div id="content"> <h1> Heading Here </h1> <p> Lorem ipsum dolor sit amet. </p> <p>Lorem ipsum dolor <a href="#">sit</a> amet.</p> <div> <div id="nav"> <ul> <li><a href="#">Item 1</a></li> <li><a href="#">Item 2</a></li> <li><a href="#">Item 3</a></li> </ul> </div> <div id="footer"> Lorem ipsum dolor <a href="#">sit</a> amet Read More...

CSS, How to use type, class and id selectors

August 4th, 2009

Selectors are one of the most important aspects of CSS because they are used to "select" elements on an HTML page so the can be styled. Sample HTML <body> <div id="content"> <h1> Heading Here </h1> <p> Lorem ipsum dolor sit amet. </p> <p>Lorem ipsum dolor <a href="#">sit</a> amet Read More...

How to do that with CSS, Cascading Style Sheets

July 30th, 2009

CSS How To offers straightforward, practical answers when you need fast results. CSS How to has been organized into a series of short ten-minute tutorials. These CSS Tutorials clearly explain the key concepts of CSS and carefully shows you how to put them to immediate use. All the CSS code found at CSS how to has been verified to work with the major current browsers, and we even show you how to avoid several infamous bugs, as well as how to troubleshoot your CSS.