Re: div margins?

Discussion in 'HTML' started by Owen Jacobson, Sep 1, 2003.

  1. Toby A Inkster wrote:

    > Steven wrote:
    >
    > > Well, why is there a difference? After all, the changes are in the
    > > other div.

    >
    > Dunno. Mozilla bug I guess. Looks fine in Opera 7.20b5 for Linux.


    I'm not so sure it's a bug as such, simply a different way of
    approaching the default margins for the page. Padding certainly makes
    sense, if you assume that the BODY box goes to the edges of the browser
    window, but margin also makes sense if you don't and assume it's
    somewhere inside the browser window.

    If there is a chapter-and-verse reference that says that BODY's default
    visual style MUST use padding, I'd appreciate knowing where it is.

    Owen
     
    Owen Jacobson, Sep 1, 2003
    #1
    1. Advertisements

  2. Owen Jacobson wrote:

    > I'm not so sure it's a bug as such, simply a different way of
    > approaching the default margins for the page. Padding certainly makes
    > sense, if you assume that the BODY box goes to the edges of the browser
    > window, but margin also makes sense if you don't and assume it's
    > somewhere inside the browser window.


    That's not the difference which I dismissed as a Mozilla bug.

    That said, I do thing the default 'gap' (for want of a neutral word)
    around a page should be <body>'s padding. Why? Because in the gap you can
    see the background which has been assigned to <body>.

    --
    Toby A Inkster BSc (Hons) ARCS | mailto: | pgp:0x6A2A7D39
    aim:inka80 | icq:6622880 | yahoo:tobyink | jabber:
    http://www.goddamn.co.uk/tobyink/ | "You've got spam!"
    playing://(nothing)
     
    Toby A Inkster, Sep 1, 2003
    #2
    1. Advertisements

  3. Following up to myself because I've thought of something, a week and a
    bit later.

    Owen Jacobson wrote:

    > Toby A Inkster wrote:
    >
    > > That said, I do thing the default 'gap' (for want of a neutral word)
    > > around a page should be <body>'s padding. Why? Because in the gap
    > > you can see the background which has been assigned to <body>.

    >
    > Ah. Now *that*'s a bug. My mistake; the background should certainly
    > only be within the actual BODY element. Margins would move that out
    > from the window edges.


    Do you know if there's a Bugzilla number for this? I really don't
    fancy dealing with their search engine.
     
    Owen Jacobson, Sep 10, 2003
    #3
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Keith

    Setting margins on an ASP.NET page

    Keith, Nov 4, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    1,142
    Natty Gur
    Nov 4, 2003
  2. Bill Priess

    Re: Page Margins on an ASP.NET page

    Bill Priess, Nov 19, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    10,891
    Bill Priess
    Nov 19, 2003
  3. John Dalberg

    Setting print margins in asp.net?

    John Dalberg, Oct 12, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    1,074
    John Dalberg
    Oct 12, 2004
  4. Andrew Crowe
    Replies:
    3
    Views:
    983
    Andrew Crowe
    Dec 13, 2003
  5. Chris Beall
    Replies:
    6
    Views:
    780
    Chris Beall
    Apr 22, 2004
  6. K Viltersten

    <div ... /> and <div ...></div>

    K Viltersten, Mar 30, 2009, in forum: ASP .Net
    Replies:
    4
    Views:
    1,134
  7. Dwayne Madsen

    Q: Div A inside Div B is larger than Div B

    Dwayne Madsen, Jun 1, 2005, in forum: Javascript
    Replies:
    1
    Views:
    494
    David Dorward
    Jun 1, 2005
  8. mscir
    Replies:
    3
    Views:
    571
    Martin Honnen
    Jun 26, 2005
Loading...