472,779 Members | 1,802 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,779 software developers and data experts.

overriding inner nested <font>

Let's say all one can do to override a document's link colors,
<a href="FAQ.aspx"><font color="#0000ff">FAQ</font></a>
is inject things like:
<a href="FAQ.aspx"><span style="color:green"><font
color="#0000ff">FAQ</font></span></a>
only at the <A></Aedges (as I have done above setting WWWOFFLE's
anchor-cached-begin value.)

Which, depending on DOCTYPE, is not strong enough to override the most
inner <fontwhen view in firefox. Nor does color:green!important, nor
<fontitself help as not being deepest nested.
(text-decoration:underline sometimes helps, and background-color seems
to always make it through unscathed.)

Is there anything that can be done here to override the innermost
<fontshort of asking the WWWOFFLE author to change the algorithm to
make sure it is the most inner of all?

Nov 27 '06 #1
3 2317

Dan Jacobson wrote:
Is there anything that can be done here
I asume the nasty HTML is inviolable.

In which case, attach a CSS stylesheet and use a powerful selector
within that to set the properties of the <fonthowever you might wish.
It's rarely hard.

Nov 27 '06 #2
Scripsit Dan Jacobson:
Let's say all one can do to override a document's link colors,
<a href="FAQ.aspx"><font color="#0000ff">FAQ</font></a>
is inject things like:
<a href="FAQ.aspx"><span style="color:green"><font
color="#0000ff">FAQ</font></span></a>
only at the <A></Aedges
So let's assume you have painted yourself in the corner. Is there any
problem with that?

I assume you don't really want to set all links to green color. That would
be both quite easy and quite foolish. Instead, I assume that you want the
normal link colors to take effect, overriding the <fontcrap.
Which, depending on DOCTYPE, is not strong enough to override the most
inner <fontwhen view in firefox.
What makes you think the DOCTYPE incantation has the least impact on this?

And what makes you think there <fonteffect _should_ be overridden by some
enclosing markup? It would be _incorrect_ for a browser to do so, no matter
how clueless <fonttags are from a practical standpoint.
Nor does color:green!important, nor
<fontitself help as not being deepest nested.
I have no idea of what you are talking about. A URL would have helped, as
usual.
Is there anything that can be done here to override the innermost
<fontshort of asking the WWWOFFLE author to change the algorithm to
make sure it is the most inner of all?
Huh? If it's innermost, why make sure it is innermost?

The way to override the default rendering of a <fontelement, or any
element for that matter, is to use a CSS rule that applies to that element.
Setting properties for an enclosing element has no effect unless the inner
inherits some properties.

In this particular case, the problem is that you want the <fontmarkup to
be ignored but don't want (or can't?) remove it. As far as
standards-conforming browsers are considered, that's easy, for the color
issue:
font { color: inherit !important; background: inherit !important; }

This won't work on IE, though.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Nov 27 '06 #3
Dan Jacobson wrote:
Is there anything that can be done here to override the innermost
<fontshort of asking the WWWOFFLE author to change the algorithm to
make sure it is the most inner of all?
How about editing WWWOFFLE's cached files directly to remove the FONT tags

s/\<\/?font [^>]\>//gi;

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

Nov 28 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Matt Adams | last post by:
I want define for a couple of words inside a longer text with different font specifications. I declared it like: ....text before.... <FONT class=aaa> these text should get other attributes...
7
by: Louis. | last post by:
Hi all, One can connect a CSS style to a HTML tag. I want to create a text in the style footer. I can do: <font class="footer">Here is my great footer.</font> However, the <font> tag is...
2
by: Harry | last post by:
how to convert <font/> tab in .NET framework? e.g. if i want to write the follow html in code behind, what i can do? <font class="css">cell 1</font>
2
by: Nicky | last post by:
hi, all I know we can do this by some jscript. But is there a way to do it in asp.net c# code? In our project, users could sumit a piece of html code and I need to remove all html tag out. What's...
1
by: Weixiao Fan | last post by:
as we know , FONT is not availble for XHTML standard . but VS.NET 2003 add it automatically. what can I do to make all the BODY , TD , FONT and so on to body ,td ? and don`t let it add <FONT>...
0
by: Darren Li | last post by:
Hi: Can I stop VS.NET 2003 IDE automatically insert <font> tag into the asp.net web form design view? It just keep inserting that tag with the font I don't want to use. I search document...
3
by: Darren Li | last post by:
Hi: Can I stop VS.NET 2003 IDE automatically insert <font> tag into the asp.net web form design view? It just keep inserting that tag with the font I don't want to use. I search document...
1
by: Jukka K. Korpela | last post by:
This is pretty theoretical, but it might matter if you convert existing HTML documents to more modern style, getting rid of <fontmarkup. One might expect that just removing all attributes from a...
17
by: teser3 | last post by:
I can put out a Word Doc from PHP but if I try and manipulate the font size in the PHP part it outputs a blank Word Document. Here is what I have: <?php $fname="report.doc"; $handle = fopen(...
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.