Thursday, August 8, 2013

display: inline-block;

...in CSS will make a div snug up around the text inside of it. Leave off a specification for width! Use white-space: nowrap; to keep text from wrapping.

No comments:

Post a Comment