I need to insert a thumbnail into an HTML paragraph within a layer using Dreamweaver 8. Can anyone tell me how to do this and keep the paragraph to stay flush against the right of the thumbnail?
Thanks a lot!
Do you want the text to flow by the image if the paragraph gets too long, or do you want the left margin of the paragraph to continue?
For the former, just use CSS to float the image left.
For the latter, use CSS to add a left margin to the paragraph, then float the image left.
I want the thumbnail to show up on the left and the paragraph to go flush against the right side of the thumbnail then continue down the table/layer.
I accomplished this by doing align left in the properties menu of Dreamweaver. I don't know if this is the correct way of doing it yet. I have to learn how to use a float. That will be tonight.
<p><img style="float: left;" src="picture.jpg" alt="Thumbnail description" />
Your paragraph text here.
For all intents and purposes it does the same thing as align="left", but you should be using CSS for this sort of thing nowadays*.
*please put your CSS in an external file and don't use inline styles like I just did
Why shouldn't I use inline styles as oppossed to exertnal files.
I'm re-designing a major website and using both inline styles and exertal css files.
This topic is now closed. New replies are no longer allowed.