You're just floating the image to the right, and not really specifying anything else for it to do.
What you can do is create a class the the image, say "bottom-right."
Code:
img.bottom-right{
border: 0;
padding: 0;
margin-left: 10px;
margin-top: 10px;
float: right;
}
The margin left/top has a 10px which allows the text to wrap the image on the top and left side without running straight into the image. You can change it for more space or less space.
And in your image you would just have (remember with XHTML Trans 1.0, you have to list an alt attribute, as well as the closing backslash.)
Code:
<img src="image.gif" class="bottom-right" alt="image" />
Since you are using an XHTML 1.0 Trans doctype, you might want to create stylesheet.css, and put all of your CSS in that file, then link it in your header. And don't forget that you need to close your linebreaks: <br />
Last edited by Riane : 06-29-2007 at 11:28 AM.
|