Hi all, could someone please help me. I am trying to put three divs side by side but the middle div has to have a margin-left:auto and margin-right:auto to stretch with the browser window.
I would like to have the right div look the same as the left div (all divs should be in one straight line). At the moment the right div gets pushed down bellow the middle div.
HTML
CSS
any help would be appreciated
I would like to have the right div look the same as the left div (all divs should be in one straight line). At the moment the right div gets pushed down bellow the middle div.
HTML
Code:
<div class="left">left</div> <div class="middle">middle</div> <div class="right">right</div>
Code:
.left { width:150px; height:16px; float:left; border-style:solid; } .middle { background-image:url(); background-repeat:repeat-x; height:16px; margin-right:auto; margin-left:auto; border-style:dotted; } .right { width:150px; height:16px; float:right; border-style:solid; }
Comment