Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- 100% wide links
January 26, 2008, 11:20 pm
rate this thread
You can do this easily in quirks mode but I'm having trouble in
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
<div style="width: 400px;border: 1px solid black">
<a href="" style="width: 100%;background-color: green">should go 100%</a>
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!
- Jonathan N. Little
January 27, 2008, 12:03 am
Re: 100% wide links
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.
<a style="display: block; ...
LITTLE WORKS STUDIO