- This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hi everyone,
I am trying to do this tutorial and I’m mucking it up somehow. The header is off kilter and the names for the navigation button each appear on a separate row, rather than horizontally aligned.
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Awesome Website from CSS-Tricks
* {
margin: 0;
padding: 0;
}
body {
font-size: 62.5%;
font-family: Verdana, sans-serif;
background: url(images/body-bg.png) repeat-x top #f5ecd4;
list-style: none;
}
div#page-wrap{
width: 800px;
margin: 0 auto;
}
ul#nav {
height: 236px; width: 800px;
background: url(images/header-bg.jpg) no-repeat;
}
ul#nav li a {
display: block;
width: 130px;
float: left;
margin-top: 168px;
color: white;
font-weight: bold;
}
Any help would be greatly appreciated.
Thank you.
Have you copies the code as Chris wrote it?
You need display: inline; in the ul#nav li
Thanks for your quick response. Yes, I did copy as it was written, but on playback I don’t see that line anywhere.
I added it like so:
ul#nav li {
height: 236px; width: 800px;
background: url(images/header-bg.jpg) no-repeat;
display: inline;
}
The navigation links are in a perfect row…. but the header has disappeared?