View Full Version : CSS Aligning images with text float tag
Susie56
02-03-2011, 10:26 PM
I have added an image and text with the H2 tag, set padding in the CSS document but the image is to far away from the line of text. I added the image in the same H2 tag as the text thinking the text would run next to it, but it is to far away. Should I add margin or padding to the image float tag? My website is http://www.i-fordesign.co.uk/projects.html
Appreciate any advice :) Susie
azoomer
02-03-2011, 10:54 PM
I'm not sure where you want the image to be, but if you want to move it to the left, you could use margin-right like this
<img height="131" border="0" width="175" style="float: right; margin-right: 120px;" src="project-images/Lerryn.jpg">
and adjust the px to your needs.
Susie56
02-05-2011, 02:52 PM
Thank you :)
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.