Forum Moderators: not2easy
I have created a Test page so you can see what is happening. There are supposed to be two thumbnail-link images on the left and one 350x345 image (of a street sign) in the center. Below is the code I am using on the Test Page. Thank you so much for any ideas you might have.
Here is the code from the Test Page:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Visuals TEST</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
body {
background-color:#552b00;
}
a:link {
color:#ffc;
}
a:visited {
color:#ff9;
}
a:hover {
color:#fff;
}
a:active {
color:#ff9;
}
#map_holder {
position:relative;
width:800px;
margin:auto;
}
#layer1 {
position:absolute;
left:5px; /*this value may require resetting*/
top:120px; /*this value may require resetting*/
z-index:1;
width:169px;
height:324px;
overflow:auto;
}
#layer1 h1 {
font-size:24px;
color:#fff;
}
#layer1 p {
color:#fff;
}
#layer2 {
position:absolute;
left:280px; /*this value may require resetting*/
top:115px; /*this value may require resetting*/
z-index:2;
width:400px;
height:374px;
overflow:hidden;
}
#map_holder img {
position:absolute;
left:0;
top:0;
z-index:0;
width:800px;
height:550px;
border:0 solid;
}
</style>
</head>
<body>
<div id="map_holder">
<div id="layer1">
<p align="center"><a href="test1.htm">text link 1<br><img src="photo_icon2.jpg" width="90" height="90"></a></p><br><br>
<p align="center"><a href="test2.htm">text link 2<br><img src="video_icon2.jpg" width="90" height="90"></a></p>
</div>
<div id="layer2">
<img src="http://example.com/images/musician_street_pic_web1.jpg" width="350" height="345">
</div>
</div>
</body>
</html>
[edited by: tedster at 1:08 am (utc) on Feb. 19, 2008]
[edit reason] no personal links, thanks [/edit]
All the code is still the same, I just removed the "width:800px;
height:550px;" declaration per your suggestion.
#map_holder img {
position:absolute;
left:0;
top:0;
z-index:0;
border:0 solid;
#map_holder img {
position:absolute;
border:0 solid;
}
The only problem now is that the image placement is funky in Safari. I've got it to look and work great in IE and Firefox but Safari is displacing the images in LAYER#1 to the left by about 200px. Once again I have validated the code but I cannot figure what makes Safari interpret the CSS code differently than every other major browser. I am trying my best to only use the bare essentials of code to clean up any confusion among browsers.
Here is what I have now:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Visuals TEST</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
body {
background-color:#552b00;
}
a:link {
color:#ffc;
}
a:visited {
color:#ff9;
}
a:hover {
color:#fff;
}
a:active {
color:#ff9;
}
img {
border: 2px solid #ffffff;
}
#map_holder {
position:relative;
width:800px;
margin:auto;
}
#layer1 {
position:absolute;
left:-40px; /*this value may require resetting*/
top:120px; /*this value may require resetting*/
z-index:1;
width:190px;
height:324px;
overflow:auto;
}
#layer1 h1 {
font-size:24px;
color:#fff;
}
#layer1 p {
color:#fff;
}
#layer2 {
position:absolute;
left:310px; /*this value may require resetting*/
top:115px; /*this value may require resetting*/
z-index:2;
width:400px;
height:374px;
overflow:hidden;
}
#map_holder img {
position:absolute;
border:0 solid;
}
</style>
</head>
<body>
<div id="map_holder">
<div id="layer1">
<p align="center"><a href="http://test.com/test1.htm">text link 1<br><img src="http://example.com/images/photo_icon2.jpg" width="90" height="90"></a></p><br><br><br><br><br><br>
<p align="center"><a href="http://test.com/test2.htm">text link 2<br><img src="http://example.com/images/video_icon2.jpg" width="90" height="90"></a></p>
</div>
<div id="layer2">
<img src="http://example.com/images/musician_street_pic_web1.jpg" width="350" height="345">
</div>
</div>
<center><img src="http://example.com/visuals_template.jpg" border=0 usemap="#menu" alt=""></center>
</body>
</html>