12.09.2015 Views

Boot Camp

Web Authoring Boot Camp - StudioBast

Web Authoring Boot Camp - StudioBast

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

QuickLook<br />

Styling Code, Part 2<br />

Rollover Navigation Example<br />

/* ROLLOVER HORIZONTAL NAVIGATION - GREEN */<br />

ul#navigation<br />

{margin-left: 0;<br />

padding-left: .5em;<br />

list-style-type: none;<br />

background-color:#006600;<br />

float: left;<br />

width: 100%;}<br />

ul#navigation li<br />

{display:inline;}<br />

ul#navigation a<br />

{display: block;<br />

float: left;<br />

padding: .2em 1em;<br />

text-decoration: none;<br />

color: #ffffff;<br />

border-right: 1px solid #ffffff;}<br />

ul#navigation a:hover<br />

{background-color: #000000;<br />

color: #cccccc;<br />

font-size:100%;}<br />

CSS Style Rules Order<br />

Creating style sheets is as personal as the designer. However, when you are getting started,<br />

think of ways you can keep your code organized so you can easily see, fix, and change<br />

it. Style the biggest/most encompassing items first, then narrow down to the smallest.<br />

What does this mean?<br />

• First style items that appear throughout your site, over and over, like the body, h1-<br />

h6, p, tables, list starters, and basic links.<br />

• Style sub items next, like table rows, link hover, etc.<br />

211

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!