Mumrik
06-03-2012, 02:12 PM
Hello I have a problem making the ap div scrolling element thingy align to the center of a...table cell I'm using. Well here is the code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>BrightHotel</title>
<link href="SC.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body {
background-image: url(Bilder/Bakgrund.png);
}
#apDiv1 {
position:absolute;
width:1121px;
height:auto;
z-index:1;
overflow: scroll;
left: 150px;
top: 313px;
vertical-align: auto;
text-align: left;
}
</style>
</head>
<body>
<table width="100%" border="1" align="center" cellpadding="0">
<tr>
<th height="892" class="Background" scope="col"><p><img src="" alt="" name="Header" width="95%" height="202" id="Header" /></p>
<table width="95%" height="62" border="1" align="center" cellpadding="0">
<tr>
<td width="100%" align="center"><img src="" alt="" name="Valkommen" width="280" height="46" id="Valkommen" /> <img src="" alt="" name="Aktiviteter" width="280" height="46" id="Valkommen2" /> <img src="" alt="" name="Rum" width="280" height="46" id="Valkommen3" /> <img src="" alt="" name="Kontakta" width="280" height="46" id="Valkommen4" /></td>
</tr>
</table>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<div id="apDiv1">
<p> </p>
</div>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p></th>
</tr>
</table>
</body>
</html>
Keep in mind that I'm working in dreamweaver and don't really have any knowledge about code. It's also strange because when I preview it inside Dreamweaver it looks good. But when I open it in chrome the scrolling window isn't aligned to the center. I have tried to fiddle around using percent values and pixels and whatnot. But nothing seems to make it work. If you want I can send you the html file too. Anyone who know how to fix it?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>BrightHotel</title>
<link href="SC.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body {
background-image: url(Bilder/Bakgrund.png);
}
#apDiv1 {
position:absolute;
width:1121px;
height:auto;
z-index:1;
overflow: scroll;
left: 150px;
top: 313px;
vertical-align: auto;
text-align: left;
}
</style>
</head>
<body>
<table width="100%" border="1" align="center" cellpadding="0">
<tr>
<th height="892" class="Background" scope="col"><p><img src="" alt="" name="Header" width="95%" height="202" id="Header" /></p>
<table width="95%" height="62" border="1" align="center" cellpadding="0">
<tr>
<td width="100%" align="center"><img src="" alt="" name="Valkommen" width="280" height="46" id="Valkommen" /> <img src="" alt="" name="Aktiviteter" width="280" height="46" id="Valkommen2" /> <img src="" alt="" name="Rum" width="280" height="46" id="Valkommen3" /> <img src="" alt="" name="Kontakta" width="280" height="46" id="Valkommen4" /></td>
</tr>
</table>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<div id="apDiv1">
<p> </p>
</div>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p></th>
</tr>
</table>
</body>
</html>
Keep in mind that I'm working in dreamweaver and don't really have any knowledge about code. It's also strange because when I preview it inside Dreamweaver it looks good. But when I open it in chrome the scrolling window isn't aligned to the center. I have tried to fiddle around using percent values and pixels and whatnot. But nothing seems to make it work. If you want I can send you the html file too. Anyone who know how to fix it?