You are here: Re: Formatting links « HTML « IT news, forums, messages
Re: Formatting links

Posted by Neredbojias on 11/22/05 13:32

With neither quill nor qualm, David quothed:

> 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. The code I posted displays as I want, it just gives a
> warning, though, and I thought I'd try to resolve that.
>
> (You can try it yourself and see the difference I'm talking about.)
>
> Maybe the only way to resolve it is to create a new link class with the
> characteristics of the h2 class, but that is disappointing, to say the
> least. I was hoping for something a little more elegant to give a link the
> characteristics of another class, except underlined and such. But maybe
> the 'underlined and such' makes it so a new link class is the only way. Is
> it only (mis)fortunate that my hack works?

You could try this:

<a href="welcome.html" style="display:block"><h2>Welcome</h2></a>

Of course:

a) I haven't tried it myself.
b) You may still get the error msg.
c) It may not work anyway.
d) Don't use my name unless you send money.

--
Neredbojias
Contrary to popular belief, it is believable.

 

Navigation:

[Reply to this 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

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