kaymeis Posted January 20, 2010 Report Share Posted January 20, 2010 what's the css code for floating multiple images? Quote Link to comment Share on other sites More sharing options...
Wickham Posted January 20, 2010 Report Share Posted January 20, 2010 (edited) Do you mean floating several images on the same line? CSS img.left { float: left; } HTML Edited January 20, 2010 by Wickham Quote Link to comment Share on other sites More sharing options...
kaymeis Posted January 20, 2010 Author Report Share Posted January 20, 2010 Do you mean floating several images on the same line?CSS img.left { float: left; } HTML No. I meant in a straight line across the screen! Quote Link to comment Share on other sites More sharing options...
PicnicTutorials Posted January 20, 2010 Report Share Posted January 20, 2010 Please don't answer him anymore, rudeness should be punished. Quote Link to comment Share on other sites More sharing options...
kaymeis Posted January 20, 2010 Author Report Share Posted January 20, 2010 Please don't answer him anymore, rudeness should be punished. Eric, I think you misunderstood my answer. I'm trying figure out how to float multiple images across the screen! Quote Link to comment Share on other sites More sharing options...
Andrea Posted January 20, 2010 Report Share Posted January 20, 2010 You mean float around randomly, like soap bubbles or something? Or do you mean the CSS term 'float'? If the latter is the case, then your answer is up there. Quote Link to comment Share on other sites More sharing options...
kaymeis Posted January 20, 2010 Author Report Share Posted January 20, 2010 You mean float around randomly, like soap bubbles or something? Or do you mean the CSS term 'float'? If the latter is the case, then your answer is up there. Andrea, I want the images to float from left to right across the screen. Quote Link to comment Share on other sites More sharing options...
virtual Posted January 20, 2010 Report Share Posted January 20, 2010 Well that's what Wickham's code will do, float your images across the page next to each other on the same line. Quote Link to comment Share on other sites More sharing options...
Andrea Posted January 20, 2010 Report Share Posted January 20, 2010 Unless, of course, you want them to float like soap bubbles, but in an orderly fashion just from left to right....... We are talking CSS positioning float here. If you really mean a different kind of float, please be specific. But if you also mean CSS float - then what virtual said what Wickham said - of course - unless you have too many images or they are too large, that what doesn't fit will drop down to the next row. Quote Link to comment Share on other sites More sharing options...
Wickham Posted January 20, 2010 Report Share Posted January 20, 2010 Perhaps Kaymeis didn't understand that float is a technical CSS coding term. If he means images that move across the screen then this could be done with javascript, jQuery or Flash. Hotscripts http://www.hotscripts.com/category/javascript/scripts-programs/ might have a suitable script. This page http://www.hotscripts.com/category/javascript/scripts-programs/image-effects/animations/ lists two "Bouncing Images" scripts that might be what is wanted. I don't know whether they can be controlled in a straight line or whether they bounce up and down as well. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.