SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Evangelist N9ne's Avatar
    Join Date
    Aug 2002
    Location
    UK
    Posts
    596
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    margins in Opera?

    Code:
    body {
     font-family: Helvetica, Verdana, Arial, sans-serif;
     font-size: 12px;
     color: black;
     margin-top: 0px;
     margin-left: 0px;
    }
    Opera ignores the margin-top and margin-left! It also ignores margin: 0px; when I use it. Is this a known problem? Are there any workarounds that are still CSS-valid and XHTML 1.0 Strict?

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Opera uses padding, not margin, to offest the page's contents. Just set body padding and margin to 0 if you want it consistent across all browsers.

  3. #3
    SitePoint Evangelist N9ne's Avatar
    Join Date
    Aug 2002
    Location
    UK
    Posts
    596
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, didn't realise I had to specify the padding.


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
  •