Posted by Mitja Trampus on 11/22/05 10:48
David wrote:
> Leonard Blaisdell wrote:
>
>> You can't put a block element <h2> inside an inline element <a>. Do
>> <h2><a href="welcome.html">Welcome</a></h2> which puts the inline
>> inside the block.
>
> But doing that doesn't result in the output I want in either IE or FF.
> It outputs the 'Welcome' in small letters, compared to the big letters
> of regular h2 format.
>
> Maybe the only way to resolve it is to create a new link class with the
> characteristics of the h2 class,
I haven't tried that, but I suppose setting font-size,
font-family and font-weight to "inherit" for all "a"
elements should do what you want. Just take care that you do
not make the links too much like the surrounding text, or
they will be hard to spot.
[Back to original message]
|