- This topic is empty.
-
AuthorPosts
-
January 23, 2009 at 11:33 am #24033
H2oskier
MemberHey guys,
Two quick problems.
My main navigation as well as my entire page-wrap section of my website has shifted left in IE (6 & 7). Firefox is of course working as expected. I’d like the navigation centered across the header bar, and the page-wrap to align directly underneath the page header. I’ve seen a lot of posts recently similar to this topic but I’ve not been able to figure it out. I figure it’s because I’m using a float & margins? I’m just not sure what I need to do to replace these.
I have added the following code, now recognizing IE needs it’s own style sheet.
Code:Here’s the link to the site:
http://kluesenerwedding.com/test.htmlThanks for any help. Sorry for what seems like a simple question.
Here’s the CSS
Code:/* CSS Document *//*basic elements */
body {
font-size: 12px;
font-family: Verdana, Arial, Helvetica, sans-serif;
background-image: url(background_diagnal.gif);
}.clear {
clear: both;
}div#page-wrap {
width: 800px;
margin: 0 auto;
}.centeredImage {
text-align:center;
margin-top:0px;
margin-bottom:0px;
padding:0px;
}/* specific divs */
ul#pageHeader {
background-image: url(header.gif);
background-repeat: no-repeat;
height:150px;
width:800px;
list-style: none;
}
ul#pageHeader li{
display: inline;
width: 160px;
float: left;
margin-top: 125px;
}
ul#pageHeader li a {
font: Georgia;
font-weight: bold;
font-size: 14px;
color: #FFFFFF;
text-align: center;
text-decoration: none;
}
ul#pageHeader li a:hover, ul#pageHeader li a:active {
text-decoration: underline;
}
ul#pageHeader li a:visited {
color: #FFFFFF;
}ul#pageContent {
font: Georgia, “Times New Roman”, Times, serif;
font-size: 12px;
color: #999999;
text-align: center;
list-style: none;
}div#main-content {
background: #FFFFFF;
border: 1px dotted #CBC9C9;
padding-top: 10px;
padding-bottom: 25px;
}
div#main-content div#left-col {
float: left;
width: 400px;
padding-left: 5px;
padding-top: 10px;
text-align: center;
}
div#main-content div#right-col {
float: right;
width: 385px;
padding-right: 5px;
padding-top: 10px;
text-align: center;
}div#main-content div#right-col div#image {
padding-top: 0px;
padding-left: 55px;
padding-right: 0px;
}div#main-content div#left-col div#photos {
text-align: center;
display: block;
padding-bottom: 10px;
}
div#main-content div#image {
padding-top: 25px;
padding-bottom: 25px;
text-align: center;
}
div#main-content div#pics {
padding-top: 10px;
padding-bottom: 10px;
text-align: center;
}
div#main-content div#left-col div#pics {
padding-top: 0px;
padding-left: 15px;
padding-right: 0px;
}
div#main-content div#right-col div#pics {
padding-top: 0px;
padding-left: 0px;
padding-right: 15px;
}div#main-content a, div#main-content a:hover, div#main-content a:hover, div#main-content a:visited {
font: Georgia;
font-weight: bold;
font-size: 13px;
color: #565556;
text-decoration: underline;
}h1 {
color: #CE12A1;
font: Georgia, “Times New Roman”, Times, serif;
font-size: 20px;
text-align: center;
}h2 {
color: #999999;
font: Georgia, “Times New Roman”, Times, serif;
font-size: 15px;
text-align: center;
font-weight: bold;
}p {
color: #565556;
font: Georgia, “Times New Roman”, Times, serif;
font-size: 13px;
margin-left: 5px;
margin-right: 5px;
}
h3 {
color: #565556;
font: Georgia, “Times New Roman”, Times, serif;
font-size: 13px;
text-align: center;
font-weight: normal;
margin-right: 200px;
margin-left: 200px;
} -
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.