For some reason, my image that I load though my post does not load centered. It loads at the top left of the page like there is no css on the page whatsover. I have gone over the code several of times but I can not figure out what is wrong with it.
The following code is my index.php
<?php $i = urlencode($_GET['i']);
$image = str_replace("%2F", "/", $i);
?>
<head>
<title>RizzelDazz Images</title>
<Style type=css>
*
{
padding: 0;
margin: 0;
}
#over
{
position:absolute;
width:100%;
height:100%;
text-align: center; /*handles the horizontal centering*/
}
/*handles the vertical centering*/
.Centerer
{
display: inline-block;
height: 100%;
vertical-align: middle;
}
.Centered
{
display: inline-block;
vertical-align: middle;
}
</style>
</head>
<body>
<div id="over">
<span class="Centerer">
<?php if($i=="") { echo ""; } else { echo"<img src='/../images" . $image . ".jpg'/>"; } ?>
</span>
</div>
</body>