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!

form label css in firefox

Status
Not open for further replies.

snowneil

Programmer
Mar 22, 2006
40
GB
Code:
form label {
   font-size: 8px;
   font-weight: bold;
   color: #376EB1;
   font-family: Verdana, Arial, Helvetica, sans-serif;
   width: 100px;
}

This works fine in IE but doesn't do anything in Firefox, could anyone shed some light on a reason or work around? Thanks
 
Sorry my fault it does work usually.

It wasn't working in this case because my form was inside table.

The css i think would of needed a change so i just put the form tags outside the table and left the form elements inside.

Now it works.
 
You'd probably be better off putting the form back inside the table and changing your CSS to


Code:
table form label {
   font-size: 8px;
   font-weight: bold;
   color: #376EB1;
   font-family: Verdana, Arial, Helvetica, sans-serif;
   width: 100px;
}

Though there are problems when addressing elements within tables. I'm suprised it didn't work before though.

<honk>*:O)</honk>
Foamcow Heavy Industries - Web site design in Cheltenham and Gloucester
Ham and Jam - British & Commonwealth forces mod for Half Life 2
 
When you say it doesn't work, what exactly do you mean? It is hard to debug if you don't give us detailed information. I would've guessed there was something else that was the matter and not a simple form in a table.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top