Jump to content
Stef's Coding Community
kaymeis

floating multiple images

Recommended Posts

Do you mean floating several images on the same line?

CSS

img.left { float: left; }

 

HTML




Edited by Wickham

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

Well that's what Wickham's code will do, float your images across the page next to each other on the same line.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...