Jump to content

Shortened CSS


kurt.santo

Recommended Posts

I shortened the following CSS:td {font-size: 10px; line-height:120%; font-weight: bold; font-family: Verdana, Geneva, Arial, helvetica, sans-serif; }to:td {font: bold 10px/120% Verdana, Geneva, Arial, helvetica, sans-serif; }The font displays much too big in FF (but fine in IE). What could be the reason?Cheers,Kurt

Link to comment
Share on other sites

Try to keep the line-height on it's own line, like so:

td {font: bold 10px Verdana, Geneva, Arial, helvetica, sans-serif;line-height:120%;}

Link to comment
Share on other sites

Try to keep the line-height on it's own line, like so:
td {font: bold 10px Verdana, Geneva, Arial, helvetica, sans-serif;line-height:120%;}

This is working, cheers:-)In a book from Simon Collison (Beginning CSS Development) it says that you can use shorthand in the form p { font: style variant weight size/line-height family}. He also give an example (which is similar to my given example). But unfortunately it is not working with FF. Kind of weird...Kurt
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...