PDA

View Full Version : div border troubles



bberry91
18 Nov 2010, 06:57 AM
I am trying to put a border on the left and right side of this div. for some reason, it won't take it though:


<div style="border-left:#CCC; border-right:#CCC; width:50%">
<h3 style="font-weight:bold"><img src="Images/image_icon.png" width="85" height="70" /> Title Here</h3>
<p>Blah blah blah...</p>
</div>

Wickham
18 Nov 2010, 07:44 AM
You need to code the width and type as well as the color, like:-


<div style="border-left: 2px solid #CCC; border-right:2px solid #CCC; width:50%">
<h3 style="font-weight:bold"><img src="Images/image_icon.png" width="85" height="70" /> Title Here</h3>
<p>Blah blah blah...</p>
</div>