another_designer — 2006-10-19T13:23:39-04:00 — #1
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!
vgarcia — 2006-10-19T13:50:17-04:00 — #2
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.
another_designer — 2006-10-19T15:26:45-04:00 — #3
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.
vgarcia — 2006-10-19T15:46:10-04:00 — #4
<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
another_designer — 2006-10-20T07:59:34-04:00 — #5
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.