Multiple Floats In Css For Two Pages

liunx

Guest
NONEif you just want to float the image there is no point to the div. Also, if it is slightly indented to the right when floating it left im guessing you have either a padding or margin to it

img.floatlt {
float: left;
width: __px
height: __px
margin: 0;
padding-left: 0;
}


<img src=http://www.webdeveloper.com/forum/archive/index.php/"filename.jpg/gif" class="float" alt="image 1">

that should do it for you if i understood what you want correctly :)NONESurely, if you use 'float:right' they will be right-aligned whatever size they are...?

One thing I'd say to you is rather than saying "what would happen if...?" - just try it and see for yourself. Of course, you don't want to replace your current page if you don't know if the code is good, but you can always save it under a different filename until you're sure it's OK to replace your current file.

Good luck anyway.NONE
 
Back
Top