100% wide links

100% wide links

am 27.01.2008 00:20:05 von jeff

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.

"http://www.w3.org/TR/html4/strict.dtd">





What's the trick? The end desired result is to do this using lists,
I've shown the div as it simplifies the example.

I think this wraps up my days worth of questions!

Thanks,
Jeff

Re: 100% wide links

am 27.01.2008 01:03:58 von lws4art

Jeff 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.
>
> > "http://www.w3.org/TR/html4/strict.dtd">
>
>


>
>

>
> What's the trick? The end desired result is to do this using lists,
> I've shown the div as it simplifies the example.

What you have won't work because A elements are inline elements and do
not have a width property. What you can do is make it display as block
then it would have a width.

> "http://www.w3.org/TR/html4/strict.dtd">
>
>

>
>

>
> 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

Re: 100% wide links

am 27.01.2008 04:19:49 von jeff

Jonathan N. Little wrote:
> Jeff 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.
>>
>> >> "http://www.w3.org/TR/html4/strict.dtd">
>>
>>


>>
>>

>>
>> What's the trick? The end desired result is to do this using lists,
>> I've shown the div as it simplifies the example.
>
> What you have won't work because A elements are inline elements and do
> not have a width property. What you can do is make it display as block
> then it would have a width.
>
>

>
>

For navigation menus div is out, lists are in.
http://css.maxdesign.com.au/listamatic/

--
Berg