User2037455357 posted
Hello There.
I have the following markup with 2 divs that are side by side. But they are Float left and Right, with an another div wrapped round to try and center the divs next to each other
on the page. How do I bring the 2 divs in the middle whilst still keeping them side by side.
<!DOCTYPE html>
<html>
<style>
</style>
<div style="text-align:center;">
<div style="float: left;">
<span>div1</span>
<select size="5">
<option value="c1">India</option>
<option value="c2">US</option>
<option value="c3">UK</option>
<option value="c4">Australia</option>
</select>
</div>
<div style="float: right;">
<span>div2</span>
<select size="5">
<option value="r1">1</option>
<option value="r2">2</option>
<option value="r3">3</option>
<option value="r4">4</option>
</select>
</div>
</div>
</html>
Kind Regards
Rob