homepage Welcome to WebmasterWorld Guest from 184.72.184.104
register, login, search, subscribe, help, library, PubCon, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Visit PubCon.com
Home / Forums Index / WebmasterWorld / New To Web Development
Forum Library : Charter : Moderators: brotherhood of lan & mack

New To Web Development Forum

    
Page Border
Need to frame my page
kathy




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

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

 

leoo24




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

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.

Nick_W




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

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

Nick_W




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

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / New To Web Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
WebmasterWorld ® and PubCon ® are a Registered Trademarks of Pubcon Inc.
© Pubcon Inc. 1996-2012 all rights reserved