virtual Posted January 23, 2010 Report Posted January 23, 2010 I just discovered with great surprise that this is actually OK, I always thought it wasn't...? Quote
falkencreative Posted January 23, 2010 Report Posted January 23, 2010 That should be fine... They are both block level tags. You just can't wrap inline tags (, etc) around block level tags (, etc) Examples: http://www.webdesignfromscratch.com/html-css/css-block-and-inline.php Quote
Andrea Posted January 23, 2010 Report Posted January 23, 2010 I thought that was a no-no, too. Did you just find that it validates - or better yet, something that explains why it's ok? Quote
PicnicTutorials Posted January 23, 2010 Report Posted January 23, 2010 It's perfectly exceptable do to that. You can almost put anything in the li. In my mega menu I have divs, h2's, p's, etc - all valid... http://www.visibilityinherit.com/code/mega-drop-down-demo.php Quote
virtual Posted January 23, 2010 Author Report Posted January 23, 2010 @Andrea, it validates...Ben's link explains it. Quote
administrator Posted January 23, 2010 Report Posted January 23, 2010 That should be fine... They are both block level tags. You just can't wrap inline tags (, etc) around block level tags (, etc) Yea, I wrote about block level and inline tags many years ago on how-to-build-websites.com. Stefan Quote
administrator Posted January 24, 2010 Report Posted January 24, 2010 I just discovered with great surprise that this is actually OK, I always thought it wasn't...? As long as the tags are well formed, you are fine. Stefan Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.