Selectors in action - step by step tutorial

Step 5 - styling the banner <div>

For this tutorial we are going to color the background of the banner a dark grey and apply a 1 pixel border across the bottom. This is done using an ID selector and the following declarations:

div#banner
{
color: #fff;
background-color: #333;
border-bottom: 1px solid #000;
}

View step 5 »

Go to Step 6 »

Other Max Design articles and presentations
Associated with webstandardsgroup.org