Using inline-block display without the content floating left

r3dnet

New Member
I want the width of a div element to be equal to the width of the content inside it, and also (and more importantly) that any content after this div does not start to the right of the div(as though the div was \[code\]float:left;\[/code\]), but display below the current div. I know one way is that after this div, I create another empty div and set \[code\]clear:both;\[/code\], but in my case that would not be very preferable.
 
Back
Top