SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Jul 2002
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Using margin-top/margin-bottom in IE

    I dunno if it's just something I'm doing wrong or it's IE, but it doesn't like when I use margin-top or margin-bottom in my style sheet. Apparently, it feels like it wants to ignore me and do it's own thing. Any help on this would be greatly appreciated.

  2. #2
    SitePoint Enthusiast
    Join Date
    Jun 2002
    Posts
    69
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    margin...

    without seeing your code i can't be sure... but i think this is what you want...

    body {margin: 10px 0 10px 0; }

    should give you 10px up top and 10px down below.
    (top | right | bottom | left )

    hope it helps.

  3. #3
    SitePoint Enthusiast
    Join Date
    Jun 2002
    Posts
    69
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    or...

    could try padding.
    body {padding: 10px 0 10px 0;}

    i think that will work...


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
  •