Hi,
I finally took the plunge and went from HMTL 2.0 to XML & CSS and everything was fine. Then along comes IE7
and my divs are not posting properly. All of my new websites are now messed up and I don't know why. So you can see what I mean, check out www.hogwildsunday.info
I have copied the css file so you can see it.
What do I need to change? Anything I am reading online says the problem is the result of cheating to make it work in IE6. I didn't realize I was cheating. I thought I was using the right codes.
I also have two other working sites each with problems. nlccbelmont.org also has the div issue. In dave-and-anya.com it is a link issue. The links are supposed to be a certain width wide and aligned to the right. In order for the the links to be on separate lines, I had to put in a page break and they are not aligning to the right.
Thanks, Mary
hogwild.css
body { background-color: black }
h1, h2, h3, h4, h5 { font-family: arial; font-weight:bold; text-align:center; }
h1 { font-size: 3em; color:silver; }
h2 { font-size: 2em; color:#ffbb33; }
h3 { font-size: 1.75em; color:#cc99ff; }
h4 { font-size: 1.5em; color:white; }
h5 { font-size: 1.5em; color:red; }
h6 { font-size: 1.25em; color:white; }
.red { color: red; }
.silver { color: silver; }
.white { color: white; }
.black { color: black; }
.purple { color: #cc99ff; }
.gold {color: #ffbb33; }
.yellow { color: yellow; }
.left {text-align: left; }
.center {text-align: center; }
.right {text-align: right; }
.justify {text-align: justify; }
.large {font-size: 1.25em; font-weight: bold; }
.small { font-size: .8em; }
.clearl {clear: left;}
.clearr {clear: right;}
.clearb {clear: both;}
.caps {font-variant: small-caps; }
p {
font-family:arial;
font-size:1em;
color:white;
text-align:left;
}
p.one {
font-family:arial;
font-size: 1em;
color:white;
text-align:right;
}
p.two {
font-family:arial;
font-size:1em;
color:#cc99ff;
text-align:left;
}
p.three {
font-family:arial;
font-size:1em;
color:#000000;
text-align:left;
}
p.four {
font-family:arial;
font-size:.8em;
color:#ffffff;
text-align:left;
}
p.five {
font-family:arial;
font-size:.8em;
color: #cc99ff;
text-align:center;
}
p.bold {
font-family:tahoma;
font-size: 1.25em;
font-weight:bold;
color:red;
text-align:center;
}
a { font-family: tahoma, arial; size: 1.25em; text-align: left; text-decoration: none; }
a:link {color:red; } /* an unvisited link */
a:visited {color:#ffbb33; } /* a visited link */
a:hover {color:silver; } /* a link with the mouse hovering over it */
a:active {color:white; } /* the current link */
div.sides {
z-index: 1;
background: url("images/flamel.gif") no-repeat fixed;
top: 0;
left: 0;
width:100%;
height: 100%;
}
div.page {
position: relative;
margin-left:auto;
margin-right:auto;
width: 800px;
height: 100%;
}
div.sidebar1 {
position:absolute;
z-index:35;
background-color:#333333;
text-align: left;
top:0;
right:5;
width:180px;
height:210px;
padding-left:5px;
padding-top:5px;
padding-bottom: 5px;
border-right:silver ridge;
border-left:silver ridge;
border-top:silver ridge;
border-bottom:silver ridge;
border-width:5px;
}
div.sidebar2 {
position:absolute;
z-index:35;
background-color:#333333;
text-align: left;
bottom:5;
right:5;
width:170px;
height:200px;
padding-left:10px;
padding-top:10px;
border-right:silver ridge;
border-left:silver ridge;
border-top:silver ridge;
border-bottom:silver ridge;
border-width:5px;
}
div.date {
position:absolute;
z-index:40;
text-align: right;
top:0px;
right:150px;
width:400px;
height:100px;
padding-left:5px;
padding-top:5px;
}
div.main1 {
position: absolute;
z-index: 30;
background-color: black;
text-align: left;
top: 5;
left: 10%;
width: 70%;
height: 90%;
overflow: auto;
padding-left: 5px;
padding-right: 5px;
}
div.main2 {
position:absolute;
z-index:40;
top:220;
right:125;
width:300px;
height:200px;
padding-left:10px;
padding-top:10px;
}
div.main3 {
position:absolute;
z-index:40;
top:250;
right:125;
width:300px;
height:200px;
padding-left:10px;
padding-top:10px;
}
div.feature {
position:absolute;
z-index:35;
top: 270;
left:22%;
width:200px;
height:140px;
padding-left:10px;
padding-top:10px;
border-right:#ffbb33 ridge;
border-left:#ffbb33 ridge;
border-top:#ffbb33 ridge;
border-bottom:#ffbb33 ridge;
border-width:5px;
}
div.feature2 {
position:absolute;
z-index:35;
top: 265;
left:20%;
width:250px;
height:140px;
padding-left:5px;
padding-right:5px;
padding-top:5px;
padding-bottom:5px;
border-right:#ffbb33 ridge;
border-left:#ffbb33 ridge;
border-top:#ffbb33 ridge;
border-bottom:#ffbb33 ridge;
border-width:5px;
}
div.menu {
position: absolute;
z-index: 36;
top: 5;
left: 5;
width: 140px;
height: 90%;
text-align: left;
padding-left: 2px;
padding-right: 2px;
}
div.cost {
position: absolute;
z-index: 36;
top: 5;
right: 5;
width: 50px;
height: 90%;
padding-left: 2px;
padding-right: 2px;
}
div.schedule {
position:absolute;
z-index:35;
background-color:#ffbb33;
bottom:10;
left:25;
width:300px;
height:150px;
padding-left:10px;
padding-top:10px;
border-right:#990099 ridge;
border-left:#990099 ridge;
border-top:#990099 ridge;
border-bottom:#990099 ridge;
border-width:5px;
}
div.friends {
position:absolute;
z-index:25;
background-color:#000000;
top:10;
right:15;
width:175px;
height:300px;
padding-left:10px;
padding-top:10px;
border-right:#990099 ridge;
border-left:#990099 ridge;
border-top:#990099 ridge;
border-bottom:#990099 ridge;
border-width:5px;
}
div.photo {
position: absolute;
z-index: 35;
top: 250;
left: 80;
text-align:center;
width: 400px;
height: 300px;
border-right:red ridge;
border-left:red ridge;
border-top:red ridge;
border-bottom:red ridge;
border-width:5px;}
div.update {
position: absolute;
z-index: 35;
background-color:#000000;
top: 225;
right: 5;
overflow: auto;
text-align:left;
width: 290px;
height: 330px;}
div.main {
position:absolute;
z-index:35;
top:10;
left:10;
width:80%;
height:100%;
padding-left:10px;
padding-top:10px;
}
div.footer {
position:absolute;
z-index:35;
left: 0px;
bottom:10px;
width:100%;
height:30;
padding-left:10px;
padding-right:10px;
padding-top:10px;
padding-bottom:10px;
}
img.logo {
position:absolute;
z-index:5;
top:20px;
left:0px;
}
img.bike {
position:absolute;
z-index:15;
top:200px;
left:0px;
}
img.road {
position:absolute;
z-index:1;
top:250px;
right:10px;
}
*.alt { background-color:#990099;
border:6px;
}
I finally took the plunge and went from HMTL 2.0 to XML & CSS and everything was fine. Then along comes IE7
I have copied the css file so you can see it.
What do I need to change? Anything I am reading online says the problem is the result of cheating to make it work in IE6. I didn't realize I was cheating. I thought I was using the right codes.
I also have two other working sites each with problems. nlccbelmont.org also has the div issue. In dave-and-anya.com it is a link issue. The links are supposed to be a certain width wide and aligned to the right. In order for the the links to be on separate lines, I had to put in a page break and they are not aligning to the right.
Thanks, Mary
hogwild.css
body { background-color: black }
h1, h2, h3, h4, h5 { font-family: arial; font-weight:bold; text-align:center; }
h1 { font-size: 3em; color:silver; }
h2 { font-size: 2em; color:#ffbb33; }
h3 { font-size: 1.75em; color:#cc99ff; }
h4 { font-size: 1.5em; color:white; }
h5 { font-size: 1.5em; color:red; }
h6 { font-size: 1.25em; color:white; }
.red { color: red; }
.silver { color: silver; }
.white { color: white; }
.black { color: black; }
.purple { color: #cc99ff; }
.gold {color: #ffbb33; }
.yellow { color: yellow; }
.left {text-align: left; }
.center {text-align: center; }
.right {text-align: right; }
.justify {text-align: justify; }
.large {font-size: 1.25em; font-weight: bold; }
.small { font-size: .8em; }
.clearl {clear: left;}
.clearr {clear: right;}
.clearb {clear: both;}
.caps {font-variant: small-caps; }
p {
font-family:arial;
font-size:1em;
color:white;
text-align:left;
}
p.one {
font-family:arial;
font-size: 1em;
color:white;
text-align:right;
}
p.two {
font-family:arial;
font-size:1em;
color:#cc99ff;
text-align:left;
}
p.three {
font-family:arial;
font-size:1em;
color:#000000;
text-align:left;
}
p.four {
font-family:arial;
font-size:.8em;
color:#ffffff;
text-align:left;
}
p.five {
font-family:arial;
font-size:.8em;
color: #cc99ff;
text-align:center;
}
p.bold {
font-family:tahoma;
font-size: 1.25em;
font-weight:bold;
color:red;
text-align:center;
}
a { font-family: tahoma, arial; size: 1.25em; text-align: left; text-decoration: none; }
a:link {color:red; } /* an unvisited link */
a:visited {color:#ffbb33; } /* a visited link */
a:hover {color:silver; } /* a link with the mouse hovering over it */
a:active {color:white; } /* the current link */
div.sides {
z-index: 1;
background: url("images/flamel.gif") no-repeat fixed;
top: 0;
left: 0;
width:100%;
height: 100%;
}
div.page {
position: relative;
margin-left:auto;
margin-right:auto;
width: 800px;
height: 100%;
}
div.sidebar1 {
position:absolute;
z-index:35;
background-color:#333333;
text-align: left;
top:0;
right:5;
width:180px;
height:210px;
padding-left:5px;
padding-top:5px;
padding-bottom: 5px;
border-right:silver ridge;
border-left:silver ridge;
border-top:silver ridge;
border-bottom:silver ridge;
border-width:5px;
}
div.sidebar2 {
position:absolute;
z-index:35;
background-color:#333333;
text-align: left;
bottom:5;
right:5;
width:170px;
height:200px;
padding-left:10px;
padding-top:10px;
border-right:silver ridge;
border-left:silver ridge;
border-top:silver ridge;
border-bottom:silver ridge;
border-width:5px;
}
div.date {
position:absolute;
z-index:40;
text-align: right;
top:0px;
right:150px;
width:400px;
height:100px;
padding-left:5px;
padding-top:5px;
}
div.main1 {
position: absolute;
z-index: 30;
background-color: black;
text-align: left;
top: 5;
left: 10%;
width: 70%;
height: 90%;
overflow: auto;
padding-left: 5px;
padding-right: 5px;
}
div.main2 {
position:absolute;
z-index:40;
top:220;
right:125;
width:300px;
height:200px;
padding-left:10px;
padding-top:10px;
}
div.main3 {
position:absolute;
z-index:40;
top:250;
right:125;
width:300px;
height:200px;
padding-left:10px;
padding-top:10px;
}
div.feature {
position:absolute;
z-index:35;
top: 270;
left:22%;
width:200px;
height:140px;
padding-left:10px;
padding-top:10px;
border-right:#ffbb33 ridge;
border-left:#ffbb33 ridge;
border-top:#ffbb33 ridge;
border-bottom:#ffbb33 ridge;
border-width:5px;
}
div.feature2 {
position:absolute;
z-index:35;
top: 265;
left:20%;
width:250px;
height:140px;
padding-left:5px;
padding-right:5px;
padding-top:5px;
padding-bottom:5px;
border-right:#ffbb33 ridge;
border-left:#ffbb33 ridge;
border-top:#ffbb33 ridge;
border-bottom:#ffbb33 ridge;
border-width:5px;
}
div.menu {
position: absolute;
z-index: 36;
top: 5;
left: 5;
width: 140px;
height: 90%;
text-align: left;
padding-left: 2px;
padding-right: 2px;
}
div.cost {
position: absolute;
z-index: 36;
top: 5;
right: 5;
width: 50px;
height: 90%;
padding-left: 2px;
padding-right: 2px;
}
div.schedule {
position:absolute;
z-index:35;
background-color:#ffbb33;
bottom:10;
left:25;
width:300px;
height:150px;
padding-left:10px;
padding-top:10px;
border-right:#990099 ridge;
border-left:#990099 ridge;
border-top:#990099 ridge;
border-bottom:#990099 ridge;
border-width:5px;
}
div.friends {
position:absolute;
z-index:25;
background-color:#000000;
top:10;
right:15;
width:175px;
height:300px;
padding-left:10px;
padding-top:10px;
border-right:#990099 ridge;
border-left:#990099 ridge;
border-top:#990099 ridge;
border-bottom:#990099 ridge;
border-width:5px;
}
div.photo {
position: absolute;
z-index: 35;
top: 250;
left: 80;
text-align:center;
width: 400px;
height: 300px;
border-right:red ridge;
border-left:red ridge;
border-top:red ridge;
border-bottom:red ridge;
border-width:5px;}
div.update {
position: absolute;
z-index: 35;
background-color:#000000;
top: 225;
right: 5;
overflow: auto;
text-align:left;
width: 290px;
height: 330px;}
div.main {
position:absolute;
z-index:35;
top:10;
left:10;
width:80%;
height:100%;
padding-left:10px;
padding-top:10px;
}
div.footer {
position:absolute;
z-index:35;
left: 0px;
bottom:10px;
width:100%;
height:30;
padding-left:10px;
padding-right:10px;
padding-top:10px;
padding-bottom:10px;
}
img.logo {
position:absolute;
z-index:5;
top:20px;
left:0px;
}
img.bike {
position:absolute;
z-index:15;
top:200px;
left:0px;
}
img.road {
position:absolute;
z-index:1;
top:250px;
right:10px;
}
*.alt { background-color:#990099;
border:6px;
}