...

View Full Version : Showing a Border in DIVS



griefex
09-23-2007, 12:08 AM
Hi,

How would I show a border in grey in a DiV? Everything i tried does not show a border.
This is my code:


<div style="width: 416px; position:absolute; left: 187px; top: 48px; border:1px; border-color:#999999;">
<strong>Lm 117.80 / 274.40 ex Vat <br />
Lm 139.00 / 323.78 inc Vat</strong>
<img style="float:right; position:absolute; left: 233px; top: 5px;" alt="" src="images/backtoproductlist.png" width="180" height="19" /></div>

Thanks

bazz
09-23-2007, 12:44 AM
try



border : 1px solid #999999;


instead of


border:1px; border-color:#999999;


I always use imported stylesheets so maybe that won't work when it's in the html file but it's worth experimenting.

bazz

garydarling
09-23-2007, 08:22 AM
The attribute you are missing is the line type: solid, dashed, ridge, whatever you want it to look like. You get nothing unless you declare it.

Gary



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum