Mickster
28-09-2008, 11:52 AM
Yes, I know what <center> does, so please read before you post.
I want to get an image to go in the center (vertically and horizontally) of the page. To get it vertically I had to cut the image in two, but what do I do to this to get it to center horizontally? This is the code:
<div style="align: center; margin-left: auto; margin-right: auto; width: 600;">
<img src="images/splashpostbetatop.png" style="position: absolute; bottom: 50%;"/>
<img src="images/splashpostbetabot.png" style="position: absolute; top: 50%;"/>
</div>
I've added <center> tags but that pushes it towards the right and not the middle. Help!!
EDIT: This is what it looks like: http://www.tehupload.com/uploads/0595dfdd13c3901htijt.png
I want to get an image to go in the center (vertically and horizontally) of the page. To get it vertically I had to cut the image in two, but what do I do to this to get it to center horizontally? This is the code:
<div style="align: center; margin-left: auto; margin-right: auto; width: 600;">
<img src="images/splashpostbetatop.png" style="position: absolute; bottom: 50%;"/>
<img src="images/splashpostbetabot.png" style="position: absolute; top: 50%;"/>
</div>
I've added <center> tags but that pushes it towards the right and not the middle. Help!!
EDIT: This is what it looks like: http://www.tehupload.com/uploads/0595dfdd13c3901htijt.png