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

One peice of CSS formatting only working on IE

Status
Not open for further replies.

DaRNCaT

Technical User
Dec 18, 2002
566
NZ
I am upgrading a website someone else has built, and have discovered that one peice of CSS only works on IE, and the site looks quite messy without it working. I can't see why it won't work, can anyone tell me if it is wrong, or if there would be a hack so firefox mozilla and opera look good too.

here is the CSS (from an attached css sheet, the rest works fine)

Code:
.text_border {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
	padding-left: 5px;
	list-style-position: outside;
	list-style-image: url(../images/bullets/sq_1b.gif);
	border-right: 1px solid #D4D7EA;
	border-bottom: 1px solid #D4D7EA;
	border-left: 1px solid #D4D7EA;
}

And here is how it is being used.

Code:
<td width="149" height="22" class="text_border">
									<div align="left">
										<img src="../images/bullets/cart_s.gif" width="13" height="11">
										<a href="[URL unfurl="true"]https://www.domainnamelinkhere.php">The[/URL] Link Here</a></div>
									</td>

If anyone can shed some light on this I'd be greatful, it's got me stumped.
Thanks.

----------------------------------------
Sometimes, when my code just won't behave, I take it outside and make it listen to britney spears music, and when it comes back it's really well behaved. I wonder if it's suffering from post tramatic stress syndrome now..
 
Fixed, I found an extra } in the css file...... funny how IE ignored it, but REAL browsers had a fit... :)

(I should have checked that first, but just assumed because the previous designer had been a professional.....don't they say assumtion is the mother of all.<insertwordshere>.)

----------------------------------------
Sometimes, when my code just won't behave, I take it outside and make it listen to britney spears music, and when it comes back it's really well behaved. I wonder if it's suffering from post tramatic stress syndrome now..
 
funny how IE ignored it, but REAL browsers had a fit

Surely you mean "Funny how IE worked when it shouldn't have done, while all the real browsers correctly choked on malformed and buggy CSS"? ;o)

Dan

[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top