...

View Full Version : text to close to the image



Farakh
10-26-2007, 11:12 AM
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>

Kor
10-26-2007, 11:17 AM
Give your picture a margin and play with the desired values:


.floatLeft {
float: left;
clear: left;
margin-right:10px;
}

Farakh
10-26-2007, 02:40 PM
Thanks a million, love this forum!!!!!!!!!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum