I have this css code to make an exit screen for my website. However, i cannot get the text and images to be center aligned in the webpage in a fullscreen div.
Any ideas??
My Code:
Regards,
Martin
Computing Help And Info:
Any ideas??
My Code:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[/URL]
<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml">[/URL]
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
BODY{
text-align:center;
}
#exitOK{
position: absolute;
top: 100px;
left: 0;
width: 100%;
height: 100%;
z-index: 100;
text-align: center;
vertical-align:middle;
line-height: 0;
background-color:#000000;
/* filter */
opacity: 0.6;
filter:alpha(opacity: 60);
-moz-opacity: 0.6;
-khtml-opacity: 0.6;
/*font etc */
color:#FFFFFF;
font-family:"Courier New", Courier, monospace;
font-size:18px;
}
#exitOKinner{
margin: auto 33% auto 33%;
}
</style>
</head>
<body>
<div id="exitOK">
<div id="exitOKinner"> <img src="" width="200" height="50" />
<p>Are you sure you wish to exit the product??</p>
<p> </p>
<p><img src="" width="50" height="20" alt="YES" /> <img src="" width="50" height="20" alt="NO" /></p>
</div>
</div>
<img src="[URL unfurl="true"]http://www.webrevolt.biz/work/phirax/v5/images/splash_january_2007.png"[/URL] width="840" height="195" /> <a href="javascript:exitHM();">[X] EXIT</a>
</body>
</html>
Regards,
Martin
Computing Help And Info: