html - ul/li items not displaying correctly in a div -
i have code css code, trying display html (below) inside div
/* extended features */ .four-col { float:left; width:25%; } .four-col h3{ font-size:17px; } .four-col ul{ margin:10px 0 10px -10px; list-style-image:url(../images/icon_tick1.png); } .four-col li{ font-weight:bold; padding:1px 0; <div class="four-col"> <h3>account features</h3> <ul> <li>unlimited mysql 5 databases</li> <li>unlimited ftp accounts</li> <li>ssh</li> <li>php 5.3, 5.4 & 5.5</li> <li>pear</li> <li>zend guard loader</li> <li>ioncube loader</li> <li>ruby on rails</li> <li>perl</li> <li>cgi</li> <li>python</li> <li>server side includes</li> <li>curl</li> <li>gd2</li> </ul> </div><!-- four-col --> <div class="four-col"> <ul> <li>cron jobs</li> <li>imagemagick</li> <li>zend framework</li> <li>ffmpeg</li> <li>flv2tools</li> <li>lame mp3 encoder</li> <li>libogg & libvorbis</li> <li>mplayer & mencoder</li> </ul> <h3>control panel features</h3> <ul> <li>latest cpanel</li> <li>softaculous</li> <li>rvsitebuilder pro</li> <li>r1soft cdp backups</li> <li>cloudflare cdn plugin</li> <li>custom error pages</li> </div><!-- four-col --> <div class="four-col"> <ul> <li>ip deny manager</li> <li>hotlink protection</li> <li>password protect directories</li> <li>redirects</li> <li>phpmyadmin</li> </ul> <h3>email features</h3> <ul> <li>unlimited pop3 accounts</li> <li>unlimited auto responders</li> <li>unlimited e-mail forwarders</li> <li>web mail</li> <li>mailing lists</li> <li>spam assassin</li> <li>smtp</li> <li>imap</li> <li>spf & domainkeys</li> </ul> </div><!-- four-col --> <div class="four-col"> <h3>domains & ip addresses</h3> <ul> <li>unlimited sub domains</li> <li>unlimited add-on domains</li> <li>unlimited parked domains</li> <li>dedicated ip ($1.95/mo)</li> </ul> <h3>web reports & statistics</h3> <ul> <li>awstats</li> <li>webalizer</li> <li>logaholic</li> <li>access logs</li> <li>error logs</li> <li>bandwidth usage</li> <li>diskspace usage</li> </ul> </div><!-- four-col --> but outside div not displaying right height - visible has border on it
here fiddle full code: http://jsfiddle.net/lwpmn/
i want four-col div display inside web_hosting_extended_features div
simply add overflow: hidden .tabcontent element:
.tabcontent { /* other css untouched */ overflow: hidden; } or can add clear: both element before closing tag of same element (in case used br, element do):
<div class="tabcontent" id="web_hosting_extended_features-1"> <!-- content removed --> <br /> <!-- four-col --> </div> br { clear: both; }
Comments
Post a Comment