-
☆ A M B ☆
- 24,524 Posts
Why do you need to do that? For CSS? It is not valid to have <li> tags inside of <a> tags. Nor is it ever necessary.
What are you trying to accomplish?
-
☆ A M B ☆
- 117 Posts
My intentions are to set a fixed width to the <li> using CSS, and make the whole <li> a link so that the user can click on the whole <li> not just the text to go to another page.
-
☆ A M B ☆
- 24,524 Posts
li a {display: block;} will take care of that; the <a> tag will expand to take up all the space it can. You’ll probably also need to float them since display: block will normally cause them to display one beneath the other, like any other block-level elements.