Jump to content
|Topic||Stats||Last action by|
|Woman sues over rejected '8THEIST' license plate||
|Microsoft wants to make the Xbox One more like the Xbox 360||
|Texting Driver Who Slammed Cyclist: I, Like, 'Just Don't Care'||
|Make your own Windows 8.1.1 Guide||
|SpaceX Dragon CRS-3 (ISS mission thread)||
Posted 27 February 2013 - 20:28
Posted 27 February 2013 - 20:33
Posted 27 February 2013 - 20:34
Posted 27 February 2013 - 20:39
"li" (list items) are the only valid child elements for "ul" and "ol" elements.
You can always change the anchor tags to display "block" or "inline-block". That will allow you to give them dimensions, and it will allow you to achieve the "whole li is clickable" functionality that you want.
Can't you set the LI to have zero padding, and then make the LI and the A block elements.
When you float the LI, they should collapse, but still be block level.
What part do you want center? The UL or each LI? Or just the text inside the LI?
You might need to force a width onto both the LI and A so that they take the same space up.
A link would help.....
Posted 27 February 2013 - 21:16
Posted 27 February 2013 - 21:18