Page 1 of 2

WebPage border!

Posted: Sun Mar 26, 2006 9:11 pm
by znad
With this code you can create a border around your webpage, there are three customizable areas:

Things you can customize:
1. border:10 / This is the pixel size of the border that will show
2. #0066FF / This is the color of the border
3. inset (Border Type) / Other options include: Groove, Outset, Ridge and Solid




<SCRIPT LANGUAGE="JavaScript">
<!--
if (****.all)
****.body.style.cssText="border:10 #0066FF inset";
// -->
</script>

Posted: Mon Apr 17, 2006 4:08 pm
by mohumben
Let's keep things simple... Instead of using JavaScript you can simply change the style directly:

Code: Select all

<body style="border: width style color">
For example:

Code: Select all

<body style="border: 1px solid black">

Posted: Fri May 12, 2006 12:37 am
by glenroy
css rules

Posted: Fri May 19, 2006 7:41 pm
by barnes
glenroy wrote:css rules
True that. I just learned it in 2 days. Pretty simple.

this

Posted: Sat Nov 04, 2006 2:35 pm
by rwshthn
mohumben wrote:Let's keep things simple... Instead of using JavaScript you can simply change the style directly:

Code: Select all

<body style="border&#58]
For example:
[code]<body style="border: 1px solid black">
htis is the right code try it in front page

Posted: Tue Dec 26, 2006 4:41 pm
by annamarie
nice, but what for u use border around ur web, does that make ur web bcome ugly ??

Posted: Sat Feb 03, 2007 7:44 pm
by mfrna
annamarie wrote:nice, but what for u use border around ur web, does that make ur web bcome ugly ??
yep,if it doesn't match you design

you should be smart enough to use a color and a style that match your page

Strictly CSS

Posted: Wed Apr 25, 2007 2:50 pm
by Flickorian
If you were to use just CSS instead of complicating it with Javascript (or at least it's complicating for me), it would look something like

<style type="text/css">
body {border: 10px solid #FFFFFF;}
</style>

or as already stated:

<body style="border: 10px solid #FFFFFF;">

other border properties include:
none, hidden, dotted, dashed, double, groove, ridge, inset, outset

Try some of those and see if you can find something that you like.

Posted: Sat Jun 09, 2007 7:35 am
by webdesigner
wow thanks for sharing this border trick, but i doubt if this trick will work on other browsers, specially the old versions of IE5. :)

Posted: Sat Jun 09, 2007 7:11 pm
by Flipper3
webdesigner wrote:wow thanks for sharing this border trick, but i doubt if this trick will work on other browsers, specially the old versions of IE5. :)
It will work on all browsers since this is a basic code, nothing else.