June 13, 201115 yr When I insert pictures into my CSS they only seem to stack on top of one another leaving a huge gap on the right hand side of my container. How would I be able to move them around?
June 13, 201115 yr A screenshot or a link to what you are talking about would be helpful for us to figure out whats wrong.
June 13, 201115 yr Author sorry for the wait. basically where it is all stacked up i would like to move the second picture to the right.
June 13, 201115 yr Author oh and ignore the fact that you can't see the bottom picture i can fix that easily
June 15, 201115 yr Looks like normal document flow. If you want to move them around try giving the parent container a relative position and the images absolute position. Then you can position them using top, right, bottom, left attributes with pixel or percent values. Its a bit complicated to explain positioning. Maybe you can find a tutorial on it? Good luck.
June 15, 201115 yr Author Okay yeah I will give it a go. I keep drifting in and out of different ideas at the moment so I'm trying everything at once until I manage to find something that works haha. Thanks a lot.
June 15, 201115 yr You can float each image either to the left or right so they can be side by side. Just make sure you add overflow to the parent container to contain the floats. Here are some CSS Declarations: .arentContainer { oveflow: hidden; } img { float: left; } Hope this helps.
June 17, 201115 yr Author oh I didn't see the reply i'll give this a go and see how it comes out thank you!
June 17, 201115 yr You can float each image either to the left or right so they can be side by side. Just make sure you add overflow to the parent container to contain the floats. Here are some CSS Declarations: .arentContainer { oveflow: hidden; } img { float: left; } That's basically OK except that img is an inline element http://htmlhelp.com/reference/html40/inline.html so it should be converted to a block element. Floated elements should have sizes (some modern browsers don't seem to need this), so if your images are different sizes you may have to create classes with fdifferent sizes. .arentContainer { oveflow: hidden; } img { float: left; display: block; width: ??px; height: ??px; } You may need to add side padding or side margin to keep them apart.
Create an account or sign in to comment