SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    May 2006
    Posts
    291
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Padding Problem with Paragraph Tag

    Hi Guys

    I'm working on this king size beds site. I'm using a script I bought to power some of the site, so that has added a new stylesheet:

    http://www.kingsizebeds.me.uk/default.css

    on top of my own:

    http://www.kingsizebeds.me.uk/styles.css

    The problem I'm having is that I'm now getting some extra padding around some of the menu text. I believe this is related to the text being within <p> tags, because when within the <p> tags it looks like this:



    and if I remove the <p> tags it looks like this:



    Can anybody tell me what is causing the unwanted padding? I think it's something on the default.css stylesheet but I can't track it down.

    Many thanks

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,535
    Mentioned
    182 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    The version you have online doesn't seem to have the p elements around the menu items so I can't really test.

    I'm guessing your problem is simply the default margin on the p element which you don't seem to have addressed.

    Code:
    .tblmenumain p{margin:0}
    If that's not the issue I'll take another look.

    (BTW that menu should really be a list and not a table )

  3. #3
    SitePoint Addict
    Join Date
    May 2006
    Posts
    291
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Many thanks Paul, the code you suggested has fixed it.

    Regarding the list vs table, I know I don't use cutting edge techniques, but I am very much a "if it works, let's stick it live" kind of person.

    Rgds


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
  •