You are here: Re: CSS bolding text problem « HTML « IT news, forums, messages
Re: CSS bolding text problem

Posted by Mitja Trampus on 12/28/05 16:56

Joe Blow wrote:
> I am trying to eliminate the use of tables, which i have used for the
> navigation at wiavic.org.au
>
> Is it possible to define a maximum "cell" width (which is currently
> used) for each anchor so that the movement can be eliminated?

Not directly, because anchors are inline-level elements by
default (i.e., they're part of a line, not a box like e.g. a
paragraph). To specify width, first use display:block to
turn the anchors into blocks/boxes, then e.g. width:10%.

Alternatively, put each "a" into a "li" which is block-level
by default, and specify width for li. In this case (which is
semantically better), you'll have to use float:left and
list-style-type: none on li's so they'll make a horizontal
menu instead of a vertical one.

 

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

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