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

styles in Firefox 1

Status
Not open for further replies.

TheConeHead

Programmer
Aug 14, 2002
2,106
US
Why does this not work in Firefos - shows fine in IE:

Code:
<STYLE>
  .contentnavbs {color: #ffffff; font-family: arial; font-size: 8pt; font-weight:bold;}
</style>

<td class="contentnavbs" colspan="2">
not closed
</td>

This is obviously cut-down but is the basic idea - the text "not closed" shows as black and the default Times font...

[conehead]
 
typing exactly this into a new html file shows up fine for both browsers:
Code:
<STYLE>
  .contentnavbs {color: #ff0000; font-family: arial; font-size: 8pt; font-weight:bold;}
</style>
<table>
<tr>
<td class="contentnavbs" colspan="2">
not closed
</td>
</tr>
</table>

Perhaps you should show more of your code because something else is probably going on. Do you have other styles for td objects?

-kaht

How much you wanna make a bet I can throw a football over them mountains?
sheepico.jpg
 
here's all ot it:

Code:
<STYLE>
	.nav {text-decoration: none; font-family: verdana; color:#ffffff; font-size:9pt;padding:2pt;}
	.navblk {text-decoration: none; font-family: verdana; color:#000000; font-size:9pt;padding:2pt;}
	.tnav {text-decoration: none; font-family: verdana; color:#ffffff; font-size:8pt;padding:1pt;}
	.pnav {color: #ffffff; font-family: arial; font-size: 8pt; text-decoration: none;}
	.Tcontent {color: #000000; font-family: arial; font-size: 8pt; margin-left: 10pt;}
	.TcontentNM {color: #000000; font-family: arial; font-size: 8pt; }
	.TcontentR {color: #ff0000; font-family: arial; font-size: 8pt; margin-left: 10pt;}
	.content {color: #000000; font-family: arial; font-size: 10pt; }
	.contentw {text-decoration: none; color: #ffffff; font-family: arial; font-size: 10pt; }
	.contents {color: #000000; font-family: arial; font-size: 8pt; }
	.contentsi {color: #000000; font-family: arial; font-size: 8pt; font-style:italic;}
	.contentsw {{text-decoration: none; color: #ffffff; font-family: arial; font-size: 8pt; }
	.contentb {color: #000000; font-family: arial; font-size: 9pt; font-weight:bold;}
	.contentbw {color: #ffffff; font-family: arial; font-size: 9pt; font-weight:bold;}
	.contentbws {color: #ffffff; font-family: arial; font-size: 8pt; font-weight:bold;}
	.contentbr {color: #ff0000; font-family: arial; font-size: 9pt; font-weight:bold;}
	.contentbs {color: #000000; font-family: arial; font-size: 8pt; font-weight:bold;}
	.contentnavbs {color: #ffffff; font-family: arial; font-size: 8pt; font-weight:bold;}
	.contenti {color: #000000; font-family: arial; font-size: 9pt; font-style:italic;}
	.register {color: #ffffff; font-family: arial; font-size: 8pt; }
	.login {color: #ffffff; font-family: arial; font-size: 8pt; }
	.toolHead {color: #000000; font-family: arial; font-size: 10pt; font-weight: bold; margin-top:5pt;}
	.pageHead {color: #000000; font-family: arial; font-size: 14pt; font-weight: bold;}
	.news {color: #000000; font-family: arial; font-size: 10pt; line-height: 175%;}
	.newsDate {color: #000000; font-family: arial; font-size: 8pt;}
	.foot {color: #000000; font-family: arial; font-size: 7pt; }
	.head {color: #000000; font-family: arial; font-size: 10pt; font-weight: bold;}
	.note {color: #000000; font-family: arial; font-size: 7pt; }
	.error {text-decoration: none; color: #ff0000; font-family: arial; font-size: 10pt; font-weight: bold;}
	.errorSm {color: #ff0000; font-family: arial; font-size: 7pt; }
	.errorSm2 {color: #ff0000; font-family: arial; font-size: 7pt; }
	.action {color: #ff0000; font-family: arial; font-size: 9pt; font-weight: bold;}
	a {color: #000000;}
	.shead {color: #ffffff; font-family: arial; font-size: 9pt; font-weight: bold; font-style: italic; background-color: #36517e; padding:3pt;}
	.shead2 {color: #36517e; font-family: arial; font-size: 9pt; font-weight: bold; font-style: italic;  }
	.sheadOff {color: #ffffff; font-family: arial; font-size: 7pt; font-weight: bold; font-style: italic; background-color: #36517e; padding:2pt;}
	.stable {border: #000000 1px solid;}
	.subhead1 {color: #ffffff; font-family: arial; font-size: 10pt; font-weight: bold;}
	.subhead2 {color: #ffffff; font-family: arial; font-size: 8pt; font-weight: bold;}
	.seeMore {color: #ff0000; font-family: arial; font-size: 8pt;  font-weight: italic;}
	input.submit	{
	border: 1px solid #000000;
	color: #f5f5f5;
	background-color : #36517e;
	

}
.title {font-family: arial; font-weight: bold; background-color : #36517e; color:#ffffff; padding: 2pt; font-size: 12; text-decoration:none;}
.titles {font-family: arial; background-color : #36517e; color:#ffffff; padding: 2pt; font-size: 12; text-decoration:none;}
.stitle {font-family: arial;  background-color : #000000; color:#ffffff; padding: 2pt; font-size: 12; text-decoration:none;}
.step {color: #36517e; font-family: arial; font-size: 13pt; font-weight: bold; font-style:italic;}
.thead {font-family: arial; text-decoration: none; color:#ffffff; font-weight: bold; background-color:#36517e; font-size: 11; padding:2pt;}
</style>

[conehead]
 
Wow, good eye. I took one look at that wall of unindented/one-liner mess and moved on.

-kaht

How much you wanna make a bet I can throw a football over them mountains?
sheepico.jpg
 
Probably pasting it into something like Dreamweaver/Top Style (anything with colourisation options for CSS) might have picked it up too.

I never use these programs... and was stumped on a similar problem recently. A colleague pasted it into Dreamweaver and pointed out the error in seconds.

I'm still not rushing out to buy Dreamweaver... but it's another tool that might be of value in similar situations. Thing is, you never know if it's a "similar situation" until it's been solved [smile]

Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
i tried using the css validator with his css, but it crapped out all five times i submitted it - i guess there was too much to chug through. so i manned up and eyeballed it.



*cLFlaVA
----------------------------
[tt]I already made like infinity of those at scout camp...[/tt]
[URL unfurl="true"]http://www.coryarthus.com/[/url]
[banghead]
 
Oh dear, using $$$$ Dreamweaver for it's syntax highlighting capabilities (is it good for anything else?!) [lol]

Personally, I use TextPad: free to try, UK £16.50 / US $30.00 to buy.

Or there's JEdit, or plenty of other free syntax-highlighting text editors.

---
Marcus
better questions get better answers - faq581-3339
accessible web design - zioncore.com
 
The one thing that I wish TextPad did that it doesn't - When you hover over a curly brace { I wish it would highlight the closing brace } kinda like how the netbeans pagckage does that comes bundled with the java sdk. Wonder if you could write a plug-in to do that in textpad, never even looked into it.....

-kaht

How much you wanna make a bet I can throw a football over them mountains?
sheepico.jpg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top