Forums

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

Home Forums CSS Video tutorial help

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #27286

    Hello,

    I’ve really enjoyed the video tutorial, for a beginner like me it’s brilliant!

    I’ve followed the guide and my xhtml/css conversion is 99% good the only problem I’m having is the background after the header
    is staggered. I used dreamweaver as my text editor and in design mode the header and bg are fine (but the links are staggered) when displaying in a broswer everything is fine apart from the staggered header BG.

    Could you give me any tips to fix it?

    I’ve included a screenshot, thanks a lot!

    Michael

    #68442
    darren
    Member

    could you send a link to the website so we can look at the code

    #68511

    Hi, here it is:

    http://www.harpersdesigns.co.uk/test/

    thanks

    Mike

    #68516
    uloga
    Member

    In your style.css on line 47.

    Add following code to your ul#nav :

    position : relative ;
    top: -10px;

    #68517

    Thanks uloga! now it’s working great :D

    If you don’t mind could you explain a little why it wasn’t working correcty and how you fixed it?

    *total newb* lol

    Cheers

    Mike

    #68533
    AshtonSanders
    Participant

    Just, FYI:

    That spacing is being created by the margin in this css:

    p, li {
    font-size:1.3em;
    line-height:1.4em;
    margin-bottom:0.8em;
    }

    Doesn’t really make any sense, but I’d add:

    #nav li {
    margin-bottom:0;
    }

    Then you can remove the -10px hack.

    #68538

    thanks!

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