13.02.2013 Views

WEB STANDARDS CREATIVITY

WEB STANDARDS CREATIVITY

WEB STANDARDS CREATIVITY

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Styling the branding<br />

The branding of any site is incredibly important. Here, the branding acts not only as a sign of where you are—what service you<br />

are in—but it also serves as a navigational device. Both of the headers will be links to the relevant sites. The h1 and h2 in the<br />

branding part of the site are grouped together as a division of like items, a div, with the id of branding. I float that left, give it<br />

some margin and padding, and add the IBO logo as a background image.<br />

#branding {<br />

float: left;<br />

text-align: left;<br />

margin: 1em 0 0 1em;<br />

padding: 0 0 1em 6em;<br />

background: url(ibo_logo.gif) no-repeat 0 0;<br />

}<br />

The reason the padding is so large over on the right side is to accommodate the IBO logo, which I’ll add in minute when I<br />

start to add color and rounded corners.<br />

The headers are sized using<br />

ems. The h1 is given a value<br />

equivalent to 14px, and the h2<br />

gets a value equivalent to18px.<br />

#branding h1 {<br />

font-size: 1.4em;<br />

}<br />

#branding h2 {<br />

font-size: 1.8em;<br />

font-weight: bold;<br />

}<br />

Then I color the links white.<br />

#branding h1 a,<br />

#branding h2 a {<br />

color: #fff;<br />

}<br />

Figure 6-17 shows how these<br />

additions look.<br />

Figure 6-17. Adding the branding and menus. Here, I’ve added the IBO logo as part of the masthead, along<br />

with the other menus.<br />

chapter 6 Grid Design for the Web<br />

149

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

Saved successfully!

Ooh no, something went wrong!