image float...text is very near..

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
pleigh
Forum Contributor
Posts: 445
Joined: Wed Jan 19, 2005 4:26 am

image float...text is very near..

Post by pleigh »

question here...i used
style="float:left"
in an image....problem is, in ie, there is some distance between the image and the text....but in firefox, the distance of the image and the text is very, very near....how can i control the margin of the text?

thanks...
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

Works in body and table tags. I dont know if it works is all tags.
Give a trial-and-error for any combination of these :

Code: Select all

margin:auto;
margin-left:auto;
margin-right:auto;
margin-top:auto;
margin-bottom:auto;
Post Reply