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; } 

live demo


of course, you'll have adjust css change background colour, padding,... , html adjust content. think you'll able figure out.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -