Results 1 to 3 of 3

Thread: CSS Aligning images with text float tag

  1. #1
    Join Date
    Jan 2011
    Location
    Cornwall, England
    Posts
    27
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default CSS Aligning images with text float tag

    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

  2. #2
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    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
    Code:
    <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.

  3. The Following User Says Thank You to azoomer For This Useful Post:

    Susie56 (02-05-2011)

  4. #3
    Join Date
    Jan 2011
    Location
    Cornwall, England
    Posts
    27
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    Thank you

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •