What\'s the best way to add a caption below an image? The image and its caption will be floated right, and the text on the caption needs to wrap -- a 200x200px image should
The basic idea is to make one my caption
Now you simply set two styles. One for the img tag and the other for the p tag for the photo class. Create a class name it photo: padding: 10px;} Conclusion:
1. A div with an tag and tag.
.photo {float: right;width: 210px;margin: 0 10px 10px 10px;}
img.photo {float: right;margin-left: 10px;margin-bottom: 10px;border: 1px solid #666;
tag and a tag.
2. Div should have one class with different styles for and tag.