SitePoint Sponsor

User Tag List

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

    Browser Offset and Browser Compatability

    Hello,

    Removing the browser offset using CSS is as easy as setting the HTML body element with a margin of 0px. But this works only in IE and NN6 and above. This does not work in Opera 5. The simple remedy to this is to use the four horsemen in the body tag itself: leftmargin = 0, topmargin = 0, marginheight = 0, marginwidth = 0. This latter method has the added effect of working with legacy browsers, particulary NN4.x (but, I'm not really concerned about this).

    My question is this: Is there a CSS technique that can be used to remove the browser offset in Opera 5?

    Thanks.

    PS: Sorry, I should have put this in the CSS forum.

  2. #2
    Drupaler bronze trophy greg.harvey's Avatar
    Join Date
    Jul 2002
    Location
    London, UK
    Posts
    3,258
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Never noticed this issue, but frankly, CSS support in Opera is shoddy and I wouldn't worry about that either. It'll be fine in NN, Mozi and IE.

  3. #3
    SitePoint Member
    Join Date
    May 2002
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thanks

    Quote Originally Posted by greg.harvey
    Never noticed this issue, but frankly, CSS support in Opera is shoddy and I wouldn't worry about that either. It'll be fine in NN, Mozi and IE.
    Thank you.

  4. #4
    SitePoint Wizard Bill Posters's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Opera has adopted an idiosyncratic interpretation of certain W3C standards.

    It uses:
    Code:
    body {
    padding: 0;
    }
    ...to remove the browser offset.

    Code:
    body {
    margin: 0;
    padding: 0;
    }
    Will have you properly covered.
    New Plastic Arts: Visual Communication | DesignateOnline

    Mate went to NY and all he got me was this lousy signature

  5. #5
    Drupaler bronze trophy greg.harvey's Avatar
    Join Date
    Jul 2002
    Location
    London, UK
    Posts
    3,258
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Actually, not meaning to hijack the post, but Bill. Is there a list anywhere of Opera-specific CSS standards since I often run in to problems with Opera and CSS...?


  6. #6
    SitePoint Member
    Join Date
    May 2002
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    [QUOTE='Bill Posters']Opera has adopted an idiosyncratic interpretation of certain W3C standards.

    That did it.

    Thank you.


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
  •