View Full Version : A border on a div..


PleaseDontCry
09-27-2004, 07:57 PM
Okay..I'm using this code for a div layer in a Neopets guild layout... <div style="position:absolute; top: 201; left: 290; overflow: auto; width:
251; height: 279;">

How would I add a border around that div?

Chris
09-27-2004, 07:59 PM
use the following code. Change the bits in bold:

<div style="position:absolute; top: 201; left: 290; overflow: auto; width:
251; height: 279; border: 1px solid #000000;">

The 1px is the thickness of the line
solid is the type of line (dotted, dashed etc.)
#000000 is the color of the border.

Hope that helps
Chris :D

pb&j
09-27-2004, 07:59 PM
<div style="position:absolute; top: 201; left: 290; overflow: auto; width:
251; height: 279; border:2px dashed #000000;">

adjust values as desired.

PleaseDontCry
09-27-2004, 08:02 PM
That helped alot. =) Thanks!

Chris
09-27-2004, 08:16 PM
Your welcome :D

Chris