Reply to Re: overriding inline styles?

Your name:

Reply:


Posted by Frank Olieu on 02/01/06 03:31

_John Salerno_ skrev | wrote | écrivit (31-01-2006 22:38):

> Concerning the joys of working with someone else's markup: Is there a
> way to have my external stylesheet override the inline fonts (and other
> deprecated style elements) that are in these other html files?

I'm not exactly sure what you mean here... but if you're thinking of <font>
tags, then yes, you can override them in your external CSS:

font {font-family:sans-serif;...}

Depending on the document's markup, you could even be more specific:

p.myclass font {font-family:sans-serif;text-decoration:underline;...;}
td font {font-family:monospace;color:red;...;}
font[size="4"] {font-size:1em;}
... and so on.

Not very elegant, but it works...

--
Venlig hilsen | Kind regards | Cordialement
Frank

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация