DIV's and Padding

Discussion in 'CSS' started by smallfishbigmoney, Dec 17, 2007.

  1. #1
    Hey everyone,

    I have only a couple of queries,

    I have a left and right sidebar in this new
    theme I am designing, the right sidebar
    however always has padding on top of
    it (even after margin: 0, padding: 0; float: right)
    etc...:confused:

    This is an IE7 problem,:rolleyes: but I was just
    hoping somebody had that special
    rare piece of CSS which is simple but
    so many forget...if there is such a
    CSS command. :cool:

    Please respond or PM me if you have
    any suggestions or would like to see
    what I mean.

    Thanks
    Fabien
     
    smallfishbigmoney, Dec 17, 2007 IP
  2. manishk

    manishk Peon

    Messages:
    63
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Put this in your CSS, it might help:
    *{padding:0;margin:0}

    It will clear off padding and margin from all the elements.

    If you put your source code (html + css) then I can pin-point the exact cause.
     
    manishk, Dec 17, 2007 IP
  3. smallfishbigmoney

    smallfishbigmoney Active Member

    Messages:
    176
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #3
    Hey Manishk, I have PM'd you with the CSS, You can view source from another link I sent you, it is mostly PHP because I am designing a Wordpress theme.

    Thanks a lot,
    Fabien
    Small Fish Big Money Dot Com
     
    smallfishbigmoney, Dec 17, 2007 IP