Reputation: 83680
How can I put div inline and set constant width to it?
My example, which doesn't work proper: http://jsfiddle.net/fl00r/AtJFT/
Upvotes: 3
Views: 6206
Reputation: 41675
Working example: http://jsfiddle.net/AtJFT/6/
2 changes:
display: inline-block
Upvotes: 8
Reputation: 32158
if you need fixed width you will have you keep it block element, this is the idea ... all the inline elements expands depending on the content
Upvotes: 0