02.06.2013 Views

jQuery 1.4 Animation Techniques - Index of

jQuery 1.4 Animation Techniques - Index of

jQuery 1.4 Animation Techniques - Index of

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Full Page <strong>Animation</strong>s<br />

nav ul { margin:0; padding:0; float:right; }<br />

nav li {<br />

border-left:1px solid #000; padding:0 20px; float:left;<br />

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

}<br />

nav li:first-child { border:none; }<br />

#content { padding-left:20px; }<br />

footer {<br />

display:block; width:960px; padding:10px 0;<br />

border:1px solid #000;<br />

border-bottom:none;<br />

-moz-border-radius-topright:8px;<br />

-moz-border-radius-topleft:8px;<br />

-webkit-border-top-right-radius:8px;<br />

-webkit-border-top-left-radius:8px;<br />

border-top-right-radius:8px;<br />

border-top-right-radius:8px; clear:both; background-color:#fff;<br />

}<br />

footer small { display:block; float:left; margin-left:20px; }<br />

footer nav { font-size:12px; }<br />

.clear-float:after {<br />

display:block; content:"."; clear:both; visibility:hidden;<br />

height:0;<br />

}<br />

.fixed { width:960px; position:fixed; z-index:1; }<br />

header.fixed { top:0; }<br />

footer.fixed { bottom:0; }<br />

#pages { position:relative; }<br />

.page { width:920px; position:absolute; }<br />

3. Save this file as single-page-site.css in the css directory. Note that each <strong>of</strong><br />

the five HTML pages link to this stylesheet.<br />

4. The page will appear like this with no JS functionality added, which is how it would<br />

appear were JavaScript disabled on the client:<br />

[ 192 ]

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

Saved successfully!

Ooh no, something went wrong!