WebPage border!
WebPage border!
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>
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>
Let's keep things simple... Instead of using JavaScript you can simply change the style directly:
For example:
Code: Select all
<body style="border: width style color">
Code: Select all
<body style="border: 1px solid black">
Code: Select all
define('I_LOVE_PHP', true);
this
htis is the right code try it in front pagemohumben wrote:Let's keep things simple... Instead of using JavaScript you can simply change the style directly:
Code: Select all
<body style="border:] For example: [code]<body style="border: 1px solid black">
-
- Posts: 53
- Joined: Tue Apr 24, 2007 11:01 pm
Strictly CSS
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.
<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.
-
- Posts: 19
- Joined: Fri Jun 08, 2007 6:14 am
- Contact: