SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: Padding problem

  1. #1
    SitePoint Guru godsfshrmn's Avatar
    Join Date
    Mar 2001
    Posts
    671
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Padding problem

    http://www.scriptsforyou.net/layout

    As you can see the menu is way off there. Can anyone help show me where i goofed? Thanks
    s c r i p t s f o r y o u . n e t
    ScriptsForYou

  2. #2
    Winemaster bronze trophy BonRouge's Avatar
    Join Date
    Oct 2004
    Location
    Sendai, Japan
    Posts
    2,417
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You have no DTD.
    You've set the margin and padding for '#menu' to be 0, when it should be '#menu ul'.
    The 25% width is 25% of something bigger than your header, so it'll look weird. You want to make your containing div a certain width and then just let the header fill that.

  3. #3
    SitePoint Guru godsfshrmn's Avatar
    Join Date
    Mar 2001
    Posts
    671
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by BonRouge
    You have no DTD.
    You've set the margin and padding for '#menu' to be 0, when it should be '#menu ul'.
    The 25% width is 25% of something bigger than your header, so it'll look weird. You want to make your containing div a certain width and then just let the header fill that.
    I'm confused on what you are trying to say . Could you provide an example?
    s c r i p t s f o r y o u . n e t
    ScriptsForYou

  4. #4
    Winemaster bronze trophy BonRouge's Avatar
    Join Date
    Oct 2004
    Location
    Sendai, Japan
    Posts
    2,417
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi.

    It isn't exactly what I just suggested - I had to play around a little - but I hope this helps :
    http://bonrouge.com/test/scripts4u.htm

  5. #5
    SitePoint Guru godsfshrmn's Avatar
    Join Date
    Mar 2001
    Posts
    671
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah I see, had to define a width and a few other things in there. Thanks!
    s c r i p t s f o r y o u . n e t
    ScriptsForYou


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •