On 28 Oct 2003 18:39:52 -0800,
jane.earle@dpi.qld.gov.au (jetobe) wrote:
[color=blue]
> I am trying to debug someone's site which has
>
> <h3><a href="www.legislation.qld.gov.au">Queensland Acts</a></h3>[/color]
Which is the proper way to do it.
[color=blue]
> The problem is that the <a> tag is taking precedence and overriding
> the <h3> tags that they want the text to resemble.[/color]
What are you hoping that the H3 *ELEMENT* is going to do? Having the
contents *also* a link means that the text is going to be highlighted as
a link (possibly coloured and underlined), as well as whatever H3
renders as (probably a bigger and bolder font).
Or another way to put that, is what don't you want the A element inside
a H3 element to do?
(H3 meaning a sub-sub-heading, just in case you're trying to do
something oddball with H3 elements, too.)
[color=blue]
> It's problematic because it's a huge site (around 500 pages), it's in
> MS Content Management Server 2002 (which means I can't access more
> than one page at any one time - no global find/replace!, and templates
> mean I have no access to the <head>) and this is occurring throughout
> with all H1, H2, H3 tags that have an <a> within. Also because it's a
> content management server, it's all been done through a user authoring
> interface that automatically nests the tags in this order. Messy!![/color]
Actually it's doing it correctly, which is a nice change.
[color=blue]
> I have tried using the !important tag in external CSS to give the
> heading tags precedence over the <a> but it isn't working. Is there
> any way I can force the <H3> to override the <a> when they are ordered
> like this?[/color]
All I can guess is that you want the content of H3 elements to look the
same whether there's a link, or not, inside them (and that's only a
guess). If that's right, then you want to play with styling the A
elements that are children of H elements, to modify how those particular
A elements will look (without affecting the rest, nor necessitating you
having to make special classes of elements in the HTML). Leave your
styling for your H3 elements alone.
Something like:
h3 > a {text-decoration: none;}
See: <http://www.w3.org/TR/REC-CSS2/selector.html#q1>
<http://www.w3.org/TR/CSS2/text.html#q3>
--
My "from" address is totally fake. (Hint: If I wanted e-mails from
complete strangers, I'd have put a real one, there.) Reply to usenet
postings in the same place as you read the message you're replying to.