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...
Tags: adjacent, attributes, child, class, CSS, How To, id, pseudo, Pseudo-classes, Pseudo-elements, selector, selectors, Tutorials
Posted in CSS Selectors |
1 Comment »
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...
Tags: CSS, How To, id, margin, padding, select al, selectors, Tutorials, universal
Posted in CSS Selectors |
1 Comment »
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...
Tags: CSS, descendant, h1, h2, How To, id, rules, selectors, tags, Tutorials
Posted in CSS Selectors |
1 Comment »
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...
Tags: class, id, type
Posted in CSS Selectors |
No Comments »
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.
Tags: CSS, How To, Lessons, Tutorials
Posted in CSS Selectors |
No Comments »