Jump to content

inserting multiple images in html5


oldnewbi

Recommended Posts

I know how to place an image in my html5 code and position it absolutely with css. the problem is i want to use several more images on my site and every time I load a new image it replaces the previous one. bottom line, how do i go about loading more than 1 image without it replacing the previous one. thanks

Link to comment
Share on other sites

Are you saying you use position: absolute; like img.myclass {position: absolute: top: 100px; left: 100px;} and all new lap over the previous? well that is why you should not use position: absolute; that is what its main purpose is. Just add img tag side by side, they are inline elements and act as text, and if you want to position left or right use float: left or right respectively.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...