Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

borders using the div tag 1

Status
Not open for further replies.

blues77

Programmer
Jun 11, 2002
230
CA
I'm having trouble putting a border around a section of my document i have sectioned off using a div tag. right now my code looks like this:

<div border=2 style=&quot;position:absolute; left:15px; top:1500px; width:100%; height:350px; z-index:4&quot;>

I don't even know if this is possible. if it is please let me know.


thanks
 
Try this:

<div style=&quot;border-left:6px solid green; border-right:3px solid red; border-top:15px solid blue; border-bottom:1px solid yellow; position:absolute; left:15px; top:1500px; width:100%; height:350px; z-index:4&quot;>your div</div>

maybe this is better:

<style>
div.style1
{
border-left:3px solid green;
border-right:3px solid red;
border-top:3px solid blue;
border-bottom:3px solid yellow;
position:absolute;
left:15px;
top:1500px;
width:100%;
height:350px;
z-index:4;
}
</style>

<div class=&quot;style1&quot;>your div</div>

Hope this helps,
Erik
<!-- My sport: Boomerang throwing !!
This year I will participate at the World Championships in Germany. (!! Many Happy Returns !! -->
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top