Reply to Re: 100% wide links

Your name:

Reply:


Posted by dorayme on 10/25/83 12:01

In article <13png19c1boa1df@corp.supernews.com>,
Jeff <jeff@spam_me_not.com> wrote:

> I'd like to specify the width of a link. (This would be for a menu).
>
> You can do this easily in quirks mode but I'm having trouble in
> standards mode.
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
>
> <div style="width: 400px;border: 1px solid black">
> <a href="" style="width: 100%;background-color: green">should go 100%</a>
> </div>
>
> What's the trick? The end desired result is to do this using lists,
> I've shown the div as it simplifies the example.
>

Add display: block; to the style for the anchor.

--
dorayme

[Back to original 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

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