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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Border not working right in div tag

Status
Not open for further replies.

sogc

Technical User
Jun 8, 2004
34
CA
I'm adding a border around a div tag. The div tag is a specified width. In IE the border works fine, that is, it wraps around the full 150px width. But in FF the border wraps around the text, making it variable. Why is this?

Here is my CSS code.
Code:
.collectionsmenu2
{
width:150px;
padding:5px;
font-size:8pt;
border: 1px solid black
}
 
Correction.

The tag is a SPAN tag. And it is inside a TD tag.
 
Found Solution.

Bad coding on my part. I had no need for a span tag, since I can apply formatting to the TD tag.

All works well now.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top