html - Stop text wrapping -
on following jsfiddle:
http://jsfiddle.net/oshirowanen/4fgkj/
here snippet of html have been html post here if posted whole thing:
<div id="main"> <div class="inner"> <ul class="column"> <li class="one"> <ul> <li><a href="#" class="link">side menu</a></li> <li><a href="#" class="link">side menu</a></li> <li><a href="#" class="link">side menu</a></li> </ul> </li> <li class="two"> <ul> <li class="main_content"> <p>content goes here</p> </li> </ul> </li> </ul> <div class="clearfix"></div> </div> </div>
you see have menu , content. problem don't want content wrap around menu.
how stop happening?
first of all, don't use li
content, it's used displaying lists (such menus). second - answer question - structure might want, , quite regularly used:
html:
<div class="wrapper"> <div class="header"> header </div> <div class="wrapright"> <div class="right"> right </div> </div> <div class="left"> left </div> <div class="footer"> footer </div> </div>
css:
.wrapper{ width: 90%; margin: 0 auto; } .header{ float: left; width: 100%; background-color: #f4f4f4 } .wrapright{ float: left; width: 100%; background-color: #cfcfcf } .right{ margin-left: 220px; background-color: #afeeee; height: 200px; } .left{ float: left; width: 200px; margin-left: -100%; background-color: #98fb98; height: 200px; } .footer{ float: left; width: 100%; background-color: #f4f4f4; } body { padding: 0px; margin: 0px; }
of course, you'll have adjust css change background colour, padding,... , html adjust content. think you'll able figure out.
Comments
Post a Comment