virtual Posted January 23, 2010 Report Share Posted January 23, 2010 I just discovered with great surprise that this is actually OK, I always thought it wasn't...? Quote Link to comment Share on other sites More sharing options...
falkencreative Posted January 23, 2010 Report Share 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 Link to comment Share on other sites More sharing options...
Andrea Posted January 23, 2010 Report Share 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 Link to comment Share on other sites More sharing options...
PicnicTutorials Posted January 23, 2010 Report Share 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 Link to comment Share on other sites More sharing options...
virtual Posted January 23, 2010 Author Report Share Posted January 23, 2010 @Andrea, it validates...Ben's link explains it. Quote Link to comment Share on other sites More sharing options...
administrator Posted January 23, 2010 Report Share 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 Link to comment Share on other sites More sharing options...
administrator Posted January 24, 2010 Report Share 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 Link to comment Share on other sites More sharing options...
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.