Re: overriding inline styles?
_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
.
Relevant Pages
- Re: overriding inline styles?
... > Concerning the joys of working with someone else's markup: ... > a way to have my external stylesheet override the inline fonts (and ... (alt.html) - overriding inline styles?
... 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? ... (alt.html) - Re: OT: Crap at Windows Start Up
... it's, er, 'typewriter' font. ... Of course, but it can still produce a printed letter, just that it ... but messing with markup is hardly for everyone. ... When the technique is referred to as "inserting codes", ... (uk.media.tv.misc) - Re: Wont align right in Firefox
... In this case, for example, it is impossible to know from the copy of markup whether the line break in "vertical-align" was added by your newsreader or an error on your page itself. ... You might have encountered a genuine Firefox bug that is triggered by absolute positioning, but even without that, it would be best to consider a simpler approach than three nested absolutely positioned elements. ... After posting the URL of a real design and explaining what you are really trying to do, you might - while waiting for useful answers - solve some _real_ problems that you have created, such as the use of 11px font size for crucial information. ... (alt.html) - Re: OT: Crap at Windows Start Up
... er, 'typewriter' font. ... My old 8-bit thing can handle pictures and rotate text (not that I usually ... 350-page manual, with images, program code with ... but messing with markup is hardly for everyone. ... (uk.media.tv.misc) |
|