Forum Moderators: not2easy
To try to help you, I think it's easiest to go a few steps back first. I kinda hope you do know it and this is all redundant, but to make sure. It'll make your life a lot easier.
div instead of tables and frames
This might be the purist approach, but it'll save you a lot of frustration. There's one div I'd always add: a wrapper encompassing all content in the <body>, it's a way out of some bugs("features") of IE.
I've the impression (I might be mistaken) you're trying to develop CSS using IE. That's like swimming upstream, not the best way to learn.
I think the easiest and the least frustrating path is to develop in any browser but IE (choices are plenty: safari, firefox, opera, ...).
But then it'll look horribly broken in IE: yes. But IE has another feature to allow us to save it without having to expose the trouble it created to the rest of the browsers: conditional comments.
It's basically a -fully ignored- comment for all browsers but the versions of IE that you target.
While it's not a vertical menu: try here to see some of the points I touched in action: [webmasterworld.com...]
in IE6. If I use float:left; it disappears altogether
If that doesn't do it, please try posting some (minimal) code to see where you're at that's still got the problem in it.
I'm now not sure what I want to do so here goes.
I'm an old-co cobol developer with an interest in other things. I've developed a web-site for a small business I run. I developed it in firefox & seamonkey in linux & firefox, seamonkey, IE7 & opera in windows. i don't have a version of IE6 at home.It all looked fine until I showed it to my boss at work in IE6!
Now I have no CSS, HTML, Javascript experience. Everything I got I got from google and W3C. My code is unashamedly cribbed (in places). I try to understand as much as possible, but I make mistakes.
So here is (roughly) what I have.
My stylesheet is
body {
background:#FFFFFF;
margin:9px 9px 0 9px;
padding:0;}
p {background-color: transparent;
color: 663366;
font-family: sans-serif;
font-size:11pt;
margin-left: 15px}
#level0 {
background:#FFFFFF;
width:99%;}
#level1 {
padding-left:9px;
background:#FFFFFF;}
#level2 {
background:#FFFFFF;
position:relative;}
#main {
margin-right:9em;
margin-left:215px;
padding-right:9px;
background:#FFFFFF;}
#topBar{
background:#FFFFFF;}
#lftBar {
float:left;
line-height: 1.2em;
width:200px;
left:9px;}
#rgtBar {
position:absolute;
width:9em;
top:0;
right:0;}
#main h1 {
margin:0;
padding-left:.3em;
font: Georgia, "Times New Roman", Times, serif;
color:#609;
background:#FFFFFF;}
#main {
font: Verdana, Helvetica, Arial;}
#main dt {
font-weight:bold;
font-size:120%;
font: Georgia, "Times New Roman", Times, serif;
margin-top:.8em}
#rgtBar h3 {
margin:0;
padding:0px;
background:#FFFFFF;
font-weight:bold;
font-size:1em;
color:#FF0000;
font: Georgia, "Times New Roman", Times, serif;
text-align:center;}
I have a set of pages, all with the same basic layout and a different main content. It seemed the easiest way to do what i wanted. The main page looks pretty much like this
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<meta name="description" content="">
<meta name="keywords" content="">
<title> - index</title>
<link href="myCSS.css" rel="stylesheet" type="text/css">
<script language="JavaScript">
<!--//BEGIN Script
function new_window(url) {
link =
window.open(url,"Link","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=440,height=340,left=130,top=30");
}
//END Script-->
</script>
</head>
<body>
<div id="level0">
<div id="level1">
<div id="topBar">
<p>
<img src="" width="200" height="150">
<img src="" width="50%" height="150" >
<img src="" width="200" height="150">
</p>
</div>
<div id="level2">
<div id="lftBar">
<ul>
<br></br>
<li><a href="</a></li>
<br></br>
<li><a href="</a></li>
<br></br>
<li><a href="</a></li>
<br></br>
<li><a href="</a></li>
<br></br>
<li><a href="</a></li>
<br></br>
</ul>
</div>
<div id="rgtBar">
<h3>New for July 2008</h3>
<p> <a href="</a><p>
<br><br>
<h3>Special Offer for Autumn 2008</h3>
<p> <a href="</a></p>
</div>
<div id="main">
<h1></h1>
<h3></h3>
<p> </p>
I've tried downloading IE6 to my laptop but it won't install alongside IE7 - don't know how to get round that.
I'm more than happy to take comments and criticisms of my code. I've had to guess most of the way through.
I would like to learn properly and am open to (v. cheap) suggestions as to how to do this.