Rehevkor
07-27-2006, 01:26 PM
Now that I've finished most of my website, I'm going to try getting it compatible with IE. I need some help with the first issue.
I have headline divs on various parts of my website (http://www.halcyonflow.com) that are partially overlapped by icons on the right side, which is the way I want them. However, this doesn't seem to work in IE; it simply renders the image above and forces the headline div down to the next line. How can I get this working in IE as well as Firefox?
This is the code snippet that displays the headline bar and the image (via PHP):
echo "<div class=\"content\">";
echo "<div id=\"imgRight\"><img src=\"media/".$row->icon.".gif\" alt=\"".$row->icon."\" /></div>";
echo "<div class=\"headline\"><h4>".$datetime." > ".$row->headline."</h4></div>";
The "content" class in base.css:
.content {
position:relative;
width:auto;
min-width:120px;
margin:0px 170px 20px 180px;
overflow:hidden;
z-index:3;
}
The "headline class in base.css:
.headline {
position:relative;
width:100%;
min-width:120px;
padding:1px;
padding-top:0px;
z-index:4;
}
#imgRight in base.css:
#imgRight {
position:relative;
float: right;
padding-right:10px;
padding-bottom:5px;
z-index:5;
}
Any advice would be appreciated.
I have headline divs on various parts of my website (http://www.halcyonflow.com) that are partially overlapped by icons on the right side, which is the way I want them. However, this doesn't seem to work in IE; it simply renders the image above and forces the headline div down to the next line. How can I get this working in IE as well as Firefox?
This is the code snippet that displays the headline bar and the image (via PHP):
echo "<div class=\"content\">";
echo "<div id=\"imgRight\"><img src=\"media/".$row->icon.".gif\" alt=\"".$row->icon."\" /></div>";
echo "<div class=\"headline\"><h4>".$datetime." > ".$row->headline."</h4></div>";
The "content" class in base.css:
.content {
position:relative;
width:auto;
min-width:120px;
margin:0px 170px 20px 180px;
overflow:hidden;
z-index:3;
}
The "headline class in base.css:
.headline {
position:relative;
width:100%;
min-width:120px;
padding:1px;
padding-top:0px;
z-index:4;
}
#imgRight in base.css:
#imgRight {
position:relative;
float: right;
padding-right:10px;
padding-bottom:5px;
z-index:5;
}
Any advice would be appreciated.