firefox/css - border around body

R

Rovin

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?
 
M

Mark Parnell

Previously in alt.html 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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top