Forum Moderators: not2easy
Here's my css:
#menu{
padding: 2px;
float: left;
font-size: 200%;
font-weight: bold;
margin-right: 10px;
}
#content{
float: left;
}
And here's the html:
<div id="content"><div id="menu"><img src="someimage.jpg" width="232" height="150"><br>
"lorem ipsum dolor sit amet..."</div>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</div>
I know that everything is behaving how it should, but I'd love to find a way for the text to only be as wide as the image without forcing users to put br's in their captions. Any advice would really be appreciated.
A floated box must have an explicit width (assigned via the 'width' property, or its intrinsic width in the case of replaced elements).