|
Postioning an image with CSS in DreamweaverFloating ( Positioning ) an image to either the left or right of a block of text is very simple to do with CSS and Dreamweaver, however beginners often have problems with this simple concept, this tutorial will show you just how easy this is to achieve. View Dreamweaver basics in video format: Beginners Dreamweaver Tutorial Videos.1. Create a DIV Tag To create our div element we go to Insert > Layout Objects > Div Tag Dreamweaver adds the div element to our page.
2. Insert the image Next we insert our image: by clicking on Insert > Image
The image is now nested inside our Div tag, if we text it displays toward the bottom of the image, not really what we want, we want to text to sit nicely on the left of the image. Open up the code view by clicking on the code button top left Your image tag will look something like this:- <img src="images/multi-user-cds.jpg" width="268" height="229"> Add this to the image tag style=”float:left;” Your image tag should now read:-
So the text does not butt right up to the image, we just need to add a margin left parameter to the text div tag: The finished code should look like this:-
And that’s it, that’s how simple it really is |