html - 3 divs won't align in a horizontal row -


i've tried , looked @ many relevant discussions on here nothing has helped. i'm designing through dreamweaver , when @ design in d.w 3 divs in row in ie browser divs in column.

html

      div class="container"> <div id="news" class="fluid">   <div align="center">news</div>     <div align="center">volunteers heart of community<br>     volunteers wanted in our 3 charity shops in worthing. read more..</div>    </div> </div> <div id="events" class="fluid"> <div align="center">"events"</div>   </div>      <div id="newsletter" class="fluid">        <div align="center"></div>    </div>   </div> 

css

.container { width: 100%; margin: 0 auto; display: block; text-align: center; clear: none;    }      #news { width: 32.2033%; clear:none;     background-color: rgba(232,138,12,0.57);     }       #events { clear:none; display: inline-block; margin: 0 auto;       width: 33.7288%; background-color: rgba(20,18,241,1.57);     }     #newsletter { background-color: rgba(16,203,225,1.57);       width: 20.2033%;    clear:none;       } 

the url http://www.worthingscope.org.uk/newindex.html great many thanks.

first, remove clear: none; wherever have it; it's not doing useful. second, user j08691 mentioned, there more 3 divs here, it's not 100% clear ones want aligned horizontally. assume it's ones .fluid class, however. can this:

.fluid {     float: left; } 

jsfiddle example


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -