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