View Single Post
Old 11-07-2012, 10:52 PM   PM User | #12
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,613
Thanks: 5
Thanked 865 Times in 842 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
No, I wasn’t saying that setting them to display as inline element is wrong per se, I meant that putting lis into anchors is wrong, even if you make them display: inline with CSS.
The HTML validator doesn’t care about CSS styles, it only cares about the HTML, and the only valid way is to put the anchors inside the list items, not vice versa. How you make the items look with CSS doesn’t matter. And setting display: inline on them is perfectly fine.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Users who have thanked VIPStephan for this post:
LearningCoder (11-07-2012)