Forums

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

Home Forums CSS [Solved] Why won’t this work!! =/

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #30462
    cyrilshark
    Member

    Hey everyone, I’m following the tutorial for coding a website from a psd layout, right here:
    https://css-tricks.com/video-screencasts/1-converting-a-photoshop-mockup-part-1-of-3/

    I’ve watched through it and all went (pretty…) well, except I can’t get header-bg.png to show up. Here’s my code and the image.

    HTML:








    Cyrilstudios













    CSS:

    * {
    margin: 0;
    padding: 0;
    }

    body {
    font-size: 62.5%;
    font-family: Helvetica, sans-serif;
    background: url(images/body-bg.png) repeat-x top #ededed;
    }

    ul#nav {
    height: 492;
    margin: 0 auto;
    background: url(images/header-bg.png) no-repeat;
    }

    And the header-bg.png:
    http://i.imgur.com/2onHt.png

    Thanks in advance!
    Cyril

    #78823
    TheDoc
    Member

    The height on your ul#nav is set to “492”, it needs to be “492px”

    #78616
    cyrilshark
    Member

    Wow, thank you guys so much, I can’t believe I didn’t see that ^.^

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