Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Oct 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy text to close to the image

    Hello,

    I am not very good at CSS and used this forum to align the text on the right of the Image, but the text is very close to the images, can any one let me know how to put a space(margin) between the text and the image. Below is the code I am using

    #wrap {

    margin: 0px;
    background: #FFFFFF;

    }
    .floatLeft {
    float: left;
    clear: left;
    }





    <div id="wrap">

    <img src="images/xxxx.jpg" alt="" class="floatLeft">

    Text here Text here Text here Text here Text here Text here

    </div>

  • #2
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    Give your picture a margin and play with the desired values:
    Code:
    .floatLeft {
    float: left;
    clear: left;
    margin-right:10px;
    }
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #3
    New to the CF scene
    Join Date
    Oct 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks a million, love this forum!!!!!!!!!


  •  

    Posting Permissions

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