The second div is under the first. How to make them on the same line? let's say I make a slider:
<style> .content{ width: 400px; height: 300px; overflow: hidden; } .content div{ width: 400px; height: 300px; } </style><div class="content"> <div id="slide1"> </div> <div id="slide2" style="margin-left: 400px"> </div></div>
(I change the margin to -400 and 0, respectively)