Welcome to WebmasterWorld Guest from 54.159.246.164

Forum Moderators: brotherhood of lan & mack

Message Too Old, No Replies

Page Border

Need to frame my page

   
7:05 pm on Mar 21, 2003 (gmt 0)

5+ Year Member



Silly question, I know,... but I am stuck.
How do place a 10 px border around my whole page?
And can I make this border scroll, or must it be a 'still?

Thanks
Kathy

12:28 pm on Mar 23, 2003 (gmt 0)

10+ Year Member



use css, ie:

BODY {
border-style: outset;
border-width: 10px;
border-color: #000000;
}

don't understand the scrolling part? it will be around the entire border of your page.

12:34 pm on Mar 23, 2003 (gmt 0)

WebmasterWorld Senior Member nick_w is a WebmasterWorld Top Contributor of All Time 10+ Year Member



I don't understand the scrolling bit either.

I think you'll probably have problems with the 'outset' value. AFAIK support for anything but 'solid' is very slim.

You can also use the shorhand for border like this:

border: 10px solid #000000;

You'll have to set the margins and padding on the body to 0 so that it works across most browsers the way you probably want it. Your whole body rule would look somthing like this:

body {
margin: 0;
padding: 0;
border: 10px solid #000000;
}

Nick

12:38 pm on Mar 23, 2003 (gmt 0)

WebmasterWorld Senior Member nick_w is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Ooops! - I think I get the scolling point now. If you mean that you'd like the border to stay where it is and the content to scroll then you need to use Frames [w3schools.com]

Nick