Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Tutorial Problems

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #32638
    Almo
    Participant

    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.

    #77171
    Almo
    Participant

    Sorry, this is the tutorial.

    #77172
    ChrisBull
    Member

    Have you copies the code as Chris wrote it?
    You need display: inline; in the ul#nav li

    #77169
    Almo
    Participant

    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?

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.