I can provide screen shots later if needed (I’m on a computer that only has IE, so I can’t show comparision shots). I’ve got two problems.
On my front page, the navbar (text links) has to overlap the header image a bit, so I bumped the .navbar and following divs up a bit. In Safari and Firefox it looks great. In IE7 it’s up too far.
The stylesheet code is:
.bar {font-size: 12pt;
text-decoration:none;
font-weight:bold;
padding-top:5px;
width:798px;
height:50px;}
The HTML code is (not including all the following divs that are also bumped up):
<body>
<div class="wrapper">
<div style="height:187px;width:798px;">
<img src="pagepics/header.gif" height="216" width="800" align="left" alt="Silver's Kids logo" />
</div>
<div class="bar" style="position:relative;top:-35px">
Home | <a href="about.htm">About</a> |
<a href="archive.htm">Archive</a> |
<a href="cast.htm">Cast</a> |
<A href="gallery.htm">Gallery</a> |
<a href="contact.htm">Contact</a> |
<a href="links.htm">Links</a>
<Br />Updated Randomly, mostly weekends.
<hr />
</div>
So how do I get IE to display this properly?
The second problem is on most of my pages, I have a floating image on the right that starts in the header and continues into the body, then I have another floating image in the body on the right. The text and stuff is supposed to be between them, and of course, it looks great in Firefox and Safari. In IE, the text drops down below the floating image on the right.
Stylesheet code:
img.over {float:right;
position:relative;
z-index:2;
height:400px;
margin-left:5px;
margin-bottom:35px;
top:-6px;clear:right;}
img.side {float:left;
position:relative;
width:57px;
left:-10px;
margin-bottom:15px}
div.page {width:750px;
position:relative;
left:-10px;
padding-left:57px;}
HTML code:
<body>
<div class="wrapper">
<!--start header-->
<div style="height:196px;width:798px;">
<img src="pagepics/header2.gif" height="186" width="396" align="left" alt="Silver's Kids logo" style="position:relative;left:-4px" />
<img src="pagepics/skitty.gif" class="over" height="400" />
</div>
<div class="bar" style="position:relative;top:-20px">
<A href="home.htm">Home</a> | About | <a href="archive.htm">Archive</a> | <a href="cast.htm">Cast</a> | <A href="gallery.htm">Gallery</a> | <a href="contact.htm">Contact</a> | <a href="links.htm">Links</a>
<hr />
</div>
<!--end header-->
<div class="bg" style="position:relative;top:-25px"><!-- page content -->
<img src="pagepics/about.gif" class="side" />
<div class="page">(Text goes here)</div>
Feel free to nitpick my coding too. It’s been a while and I’m basically teaching myself (again I ask, really, what was wrong with tables? sigh)