firefox/css - border around body

Discussion in 'HTML' started by Rovin, May 30, 2005.

  1. Rovin

    Rovin Guest

    Hello,

    I am trying to create a border around a frame.
    So, in the CSS file I have defined:

    body
    {
    ...
    border: solid 1px #555555;
    }

    In IE this works fine, but in FireFox it only works well with "height:
    100%;" included, otherwise it just draws a border around the filled part
    of the body. That however produces another problem. An ugly scrollbar to
    the right which I only want if the content is too large.

    Any ideas for a solution?
    Rovin, May 30, 2005
    #1
    1. Advertising

  2. Rovin

    Mark Parnell Guest

    Previously in alt.html, Rovin <> said:

    > I am trying to create a border around a frame.


    Tut, tut. Frames bad.

    > So, in the CSS file I have defined:
    >
    > body
    > {
    > ...
    > border: solid 1px #555555;
    > }


    Um, that's a border around the body, not a frame. But at least that
    means you're not using frames. Whew!

    > In IE this works fine,


    Depends on your definition of "fine".

    > but in FireFox it only works well with "height:
    > 100%;" included, otherwise it just draws a border around the filled part
    > of the body.


    Possibly depends on whether you are triggering quirks or standards mode.
    URL?

    > That however produces another problem. An ugly scrollbar to
    > the right which I only want if the content is too large.


    As will your users.

    > Any ideas for a solution?


    Add more content.

    --
    Mark Parnell
    http://www.clarkecomputers.com.au
    alt.html FAQ :: http://html-faq.com/
    Mark Parnell, May 30, 2005
    #2
    1. Advertising

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. tshad
    Replies:
    0
    Views:
    2,257
    tshad
    Jan 31, 2005
  2. smokeyd

    IE/ Firefox CSS Border Problem

    smokeyd, Sep 26, 2005, in forum: HTML
    Replies:
    14
    Views:
    30,233
    Jerblonimous
    May 4, 2009
  3. phl
    Replies:
    1
    Views:
    4,346
    Martin Jay
    Jun 8, 2006
  4. Coder
    Replies:
    1
    Views:
    696
    Cowboy \(Gregory A. Beamer\)
    Jun 24, 2006
  5. Stan SR
    Replies:
    3
    Views:
    2,868
    Gregory
    Jan 30, 2007
Loading...

Share This Page