Results 1 to 4 of 4
  1. #1
    Uranium Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    6,371
    Thanks
    78
    Thanked 12 Times in 11 Posts

    HTML Page borders in Firefox

    In my page I have the following:

    <body background="bars.gif" topmargin="96" marginheight="96" leftmargin="96" marginwidth="96" rightmargin="96" bottommargin="96">

    This appears to set the margins (all four) at 1 inch.

    Then I tried to change the rightmargin=192. It "takes" in IE (6), but not in Firefox.

    How come?

    Regards,
    Chuck Billow
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: HTML Page borders in Firefox

    96 or 192 what?

    Add a unit of measure, such as pixels (px) or points (pt) so that the browser knows what you want.

    Also, in Firefox, get to know the JavaScript Console (Tools > JavaScript Console). If you click the Clear button and then reload your page, the console will display a litany of complaints about style rules it doesn't understand and script statements to which it objects. When the console comes up clean, you win!!

  3. #3
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: HTML Page borders in Firefox

    By the way, I'm not sure those actually are "legal" attributes. I haven't looked them up. A more modern approach is to use style rules. For example, this --

    <code><body background="bars.gif" topmargin="96" marginheight="96" leftmargin="96" marginwidth="96" rightmargin="96" bottommargin="96"></code>

    -- would become this --

    <code><body style="background-image: url(bars.gif); margin: 96px"></code>

    -- or to make the right margin different, use the following --

    <code><body style="background-image: url(bars.gif); margin: 96px 192px 96px 96px"></code>

    (In CSS, the dimensions are in the order 12:00, 3:00, 6:00 and 9:00, as those positions are understood on an analog clock.)

  4. #4
    Uranium Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    6,371
    Thanks
    78
    Thanked 12 Times in 11 Posts

    Re: HTML Page borders in Firefox

    Jefferson:

    In my defense, Im using 1st Page 2006, and IT constructed the page dimensions... or maybe IIT should have an error checking system that could tell me what I did wrong?

    Oh my, so I live and learn...

    I do think it's funny that it worked in IE...

    But your code did *exactly* what I needed!

    Good Job!

    Thanks,
    Chuck
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •