![]() |
Arranging Images in a Div
So I am working on a project and need some help, I need to figure out how to arrange images in a div using anything possible, javascript, html, css whatever. So I have a div with a background image of this template http://us.battle.net/d3/static/image...arian-male.jpg now what I have is php code that generates images and puts them in the div, as you would expect there is a helmet image, a chest armor image, weapon etc etc. but they are all just aligned left to right. Now currently they are just images but I can change it so that they are all divs or anything, I just have no idea how to do it, the closest I have come to having success was using literal page breaks and spaces to move the images in the correct area but it didnt exactly work. Not sure what I can do here, any help would be great! Thanks
|
You could use absolute positioning :
Wrap it all up with : Code:
* {Then make individual locations for each image like: Code:
#mainstay2Also though, Remember if you are jsut tthrowing images out into divs, you may want to make image containers for themselves , And ALSO sometimes when you throw images out to div it will be Reverse to the way you want it to come out. duno if this helps, if you really had to you could just make old HTML4 TABLES and partition in but i'd realy suggest using div ABSOLUTE positioning |
or yeah just add an images div:
Code:
and could have it in page like Code:
html |
| All times are GMT +1. The time now is 01:28 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.