I am struggling to line up more than five div tags on the same line. Here is my CSS:
<style>
#yes { float: left; width: 18%; margin:1px; }
</style>
Example of HTML code:
echo '<div id="yes">'.'<b>'.'Job Title: '.'</b></div>'.'<br />';
When I try to adjust the width
and margin
, they still don't align on the same line.
Check out what I'm experiencing here:
Can someone help me understand why this is happening?