Sean_Burgess
Jul 14th, 2009, 11:24 PM
Hello all,
I'm having a problem with a new layout I'm setting up. Here is an example page - http://www.idsa.org/index_new.htm
Page looks fine in Safari and Firefox, but in IE the whole DIV called main_body drops down below the one named sidebar if you resize the page so that it is narrower than the wrapping DIV called content_wrapper.
I've seen a lot of people having the same issue, but haven't been able to implement any fixes that actually work yet. What am I doing wrong?
Here's my style sheet:
@charset "UTF-8";
/* CSS Document */
<style type="text/css">
#outerWrapper {
width: 100%;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: auto;
}
#header {
background-image: url(../images_new/Header_Background.jpg);
background-repeat: repeat-x;
height: 93px;
width: 100%;
}
#header_content {
width: 1050px;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: 0px;
}
#contentWrapper {
width: 1050px;
overflow: hidden;
float: left;
}td img {display: block;}#Media_Box img {
margin-right: 5px;
}
td img {display: block;}
#main_body {
width: 882px;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: 130px;
padding-right: 15px;
padding-left: 24px;
padding-top: 20px;
padding-bottom: 20px;
}
#Front_Page_Headlines {
width: 325px;
height: auto;
float: left;
background-image: url(../images_new/Latest_IDSA_News.jpg);
background-repeat: no-repeat;
padding-top: 30px;
}
#Front_Top_Content_Wrapper {
width: 100%;
height: auto;
overflow: hidden;
}
#Horizontal_Divider {
background-image: url(../images_new/Horizontal_Divider.jpg);
background-repeat: no-repeat;
height: 30px;
width: 839px;
}
#footer {
background-image: url(../images_new/Footer_Background.jpg);
background-repeat: repeat-x;
height: 68px;
width: 100%;
margin-top: 20px;
clear: both;
}
#footer_content {
width: 920px;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: 130px;
height: 48px;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #FFF;
padding-top: 20px;
padding-left: 24px;
}
#footer_content a {
color: #FFF;
text-decoration: none;
}
#footer_content a:hover {
color: #CCC;
text-decoration: underline;
}
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 13px;
color: #000;
}
#sidebar {
float: left;
width: 130px;
}
h1 {
font-family: Arial, Helvetica, sans-serif;
font-size: 23px;
color: #333;
}
h2 {
font-family: Arial, Helvetica, sans-serif;
font-size: 17px;
color: #000;
}
h3 {
font-family: Arial, Helvetica, sans-serif;
font-size: 15px;
color: #900;
}
.Latest_News_Summary {
font-family: Arial, Helvetica, sans-serif;
font-size: 13px;
}
#main_body a {
font-weight: bold;
color: #900;
text-decoration: none;
}
#main_body a:hover {
font-weight: bold;
color: #900;
text-decoration: underline;
}
</style>
#Front_Top_Divider {
background-image: url(../images_new/Vertical_Spacer.jpg);
height: 325px;
width: 3px;
padding-right: 5px;
padding-left: 5px;
float: left;
}
#Front_IDEA_Image {
height: 397px;
width: 503px;
margin-left: 338px;
}
#Front_Bottom_Content_Wrapper {
width: 100%;
height: auto;
overflow: visible;
}
#Front_Bottom_Left_Column {
width: 325px;
float: left;
}
#Media_Box {
background-image: url(../images_new/Media_Box_Header.gif);
background-repeat: no-repeat;
width: 315px;
border: 1px solid #333;
background-color: #94C00E;
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
padding-top: 55px;
padding-right: 5px;
padding-bottom: 5px;
padding-left: 5px;
}
#Front_Bottom_Right_Column {
width: 478px;
margin-left: 370px;
background-image: url(../images_new/Intro_Header.jpg);
background-repeat: no-repeat;
padding-top: 80px;
}
h4 {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
color: #333;
}
#Poll {
width: 100%;
background-image: url(../images_new/Poll_Header.jpg);
background-repeat: no-repeat;
padding-top: 30px;
margin-top: 20px;
height: auto;
}
#Twitter_Feed {
width: 100%;
background-image: url(../images_new/Twitter_Header.jpg);
background-repeat: no-repeat;
padding-top: 30px;
margin-top: 20px;
height: auto;
}
#twitter_div {
list-style-type: none;
}
#twitter_div li {
list-style-type: square;
padding-bottom: 10px;
}
#Intro {
width: 100%;
font-size: 16px;
}
#Member_Box {
background-image: url(../images_new/Member_Box_Header.jpg);
background-repeat: no-repeat;
width: 458px;
background-color: #FF903A;
margin-top: 20px;
padding-top: 60px;
padding-right: 10px;
padding-bottom: 10px;
padding-left: 10px;
height: 300px;
border: 1px solid #A5581F;
}
#Social_Networks {
height: 39px;
width: 478px;
margin-top: 30px;
}
#Member_Box_Left_Column {
float: left;
width: 230px;
padding-right: 10px;
height: auto;
}
.Latest_News_Headline {
font-family: Arial, Helvetica, sans-serif;
font-size: 15px;
color: #900;
}
#Member_Box_Right_Column {
height: 300px;
width: 218px;
margin-left: 240px;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
#Member_Divider {
background-image: url(../images_new/Member_Divider.jpg);
float: left;
height: 300px;
width: 10px;
}
h5 {
font-size: 14px;
}
.Member_Box_Text {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
#Member_Box_Right_Column img {
margin-right: 5px;
}
#Member_Headlines {
width: 325px;
height: auto;
float: left;
background-image: url(../images_new/Latest_Member_News.gif);
background-repeat: no-repeat;
padding-top: 30px;
}
#Media_Headlines {
width: 325px;
height: auto;
float: left;
background-image: url(../images_new/Latest_Media_News.gif);
background-repeat: no-repeat;
padding-top: 30px;
}
#subNav_Member {
width: 1000px;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: 142px;
padding-right: 15px;
padding-left: 0px;
padding-top: 0px;
padding-bottom: 20px;
}
#subNav_Public {
width: 810px;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: 243px;
padding-right: 15px;
padding-left: 0px;
padding-top: 0px;
padding-bottom: 20px;
}
#Member_Box_Public {
background-image: url(../images_new/Public_Member_Box_Header.jpg);
background-repeat: no-repeat;
width: 458px;
background-color: #FF903A;
margin-top: 20px;
padding-top: 60px;
padding-right: 10px;
padding-bottom: 10px;
padding-left: 10px;
height: 330px;
border: 1px solid #A5581F;
}
#subNav_Media {
width: 710px;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: 344px;
padding-right: 15px;
padding-left: 0px;
padding-top: 0px;
padding-bottom: 20px;
}
#Promotions_Advertising_Box {
background-image: url(../images_new/Promotions_Advertising.gif);
background-repeat: no-repeat;
width: 305px;
border: 1px solid #333;
background-color: #94C00E;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
padding-top: 35px;
padding-right: 10px;
padding-bottom: 10px;
padding-left: 10px;
}
#Member_Box_Media {
background-image: url(../images_new/Member_Box_Header_Media.jpg);
background-repeat: no-repeat;
width: 458px;
background-color: #FF903A;
margin-top: 20px;
padding-top: 60px;
padding-right: 10px;
padding-bottom: 10px;
padding-left: 10px;
height: 300px;
border: 1px solid #A5581F;
}
#Image_Download_Box {
width: 100%;
background-image: url(../images_new/Media_Image_Download_Header.gif);
background-repeat: no-repeat;
padding-top: 30px;
margin-top: 20px;
height: auto;
}
.Right_Sidebar {
background-color: #A1A5BA;
padding: 10px;
float: right;
width: 200px;
}
.SmallText {
font-size: 10px;
}
I'm having a problem with a new layout I'm setting up. Here is an example page - http://www.idsa.org/index_new.htm
Page looks fine in Safari and Firefox, but in IE the whole DIV called main_body drops down below the one named sidebar if you resize the page so that it is narrower than the wrapping DIV called content_wrapper.
I've seen a lot of people having the same issue, but haven't been able to implement any fixes that actually work yet. What am I doing wrong?
Here's my style sheet:
@charset "UTF-8";
/* CSS Document */
<style type="text/css">
#outerWrapper {
width: 100%;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: auto;
}
#header {
background-image: url(../images_new/Header_Background.jpg);
background-repeat: repeat-x;
height: 93px;
width: 100%;
}
#header_content {
width: 1050px;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: 0px;
}
#contentWrapper {
width: 1050px;
overflow: hidden;
float: left;
}td img {display: block;}#Media_Box img {
margin-right: 5px;
}
td img {display: block;}
#main_body {
width: 882px;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: 130px;
padding-right: 15px;
padding-left: 24px;
padding-top: 20px;
padding-bottom: 20px;
}
#Front_Page_Headlines {
width: 325px;
height: auto;
float: left;
background-image: url(../images_new/Latest_IDSA_News.jpg);
background-repeat: no-repeat;
padding-top: 30px;
}
#Front_Top_Content_Wrapper {
width: 100%;
height: auto;
overflow: hidden;
}
#Horizontal_Divider {
background-image: url(../images_new/Horizontal_Divider.jpg);
background-repeat: no-repeat;
height: 30px;
width: 839px;
}
#footer {
background-image: url(../images_new/Footer_Background.jpg);
background-repeat: repeat-x;
height: 68px;
width: 100%;
margin-top: 20px;
clear: both;
}
#footer_content {
width: 920px;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: 130px;
height: 48px;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #FFF;
padding-top: 20px;
padding-left: 24px;
}
#footer_content a {
color: #FFF;
text-decoration: none;
}
#footer_content a:hover {
color: #CCC;
text-decoration: underline;
}
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 13px;
color: #000;
}
#sidebar {
float: left;
width: 130px;
}
h1 {
font-family: Arial, Helvetica, sans-serif;
font-size: 23px;
color: #333;
}
h2 {
font-family: Arial, Helvetica, sans-serif;
font-size: 17px;
color: #000;
}
h3 {
font-family: Arial, Helvetica, sans-serif;
font-size: 15px;
color: #900;
}
.Latest_News_Summary {
font-family: Arial, Helvetica, sans-serif;
font-size: 13px;
}
#main_body a {
font-weight: bold;
color: #900;
text-decoration: none;
}
#main_body a:hover {
font-weight: bold;
color: #900;
text-decoration: underline;
}
</style>
#Front_Top_Divider {
background-image: url(../images_new/Vertical_Spacer.jpg);
height: 325px;
width: 3px;
padding-right: 5px;
padding-left: 5px;
float: left;
}
#Front_IDEA_Image {
height: 397px;
width: 503px;
margin-left: 338px;
}
#Front_Bottom_Content_Wrapper {
width: 100%;
height: auto;
overflow: visible;
}
#Front_Bottom_Left_Column {
width: 325px;
float: left;
}
#Media_Box {
background-image: url(../images_new/Media_Box_Header.gif);
background-repeat: no-repeat;
width: 315px;
border: 1px solid #333;
background-color: #94C00E;
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
padding-top: 55px;
padding-right: 5px;
padding-bottom: 5px;
padding-left: 5px;
}
#Front_Bottom_Right_Column {
width: 478px;
margin-left: 370px;
background-image: url(../images_new/Intro_Header.jpg);
background-repeat: no-repeat;
padding-top: 80px;
}
h4 {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
color: #333;
}
#Poll {
width: 100%;
background-image: url(../images_new/Poll_Header.jpg);
background-repeat: no-repeat;
padding-top: 30px;
margin-top: 20px;
height: auto;
}
#Twitter_Feed {
width: 100%;
background-image: url(../images_new/Twitter_Header.jpg);
background-repeat: no-repeat;
padding-top: 30px;
margin-top: 20px;
height: auto;
}
#twitter_div {
list-style-type: none;
}
#twitter_div li {
list-style-type: square;
padding-bottom: 10px;
}
#Intro {
width: 100%;
font-size: 16px;
}
#Member_Box {
background-image: url(../images_new/Member_Box_Header.jpg);
background-repeat: no-repeat;
width: 458px;
background-color: #FF903A;
margin-top: 20px;
padding-top: 60px;
padding-right: 10px;
padding-bottom: 10px;
padding-left: 10px;
height: 300px;
border: 1px solid #A5581F;
}
#Social_Networks {
height: 39px;
width: 478px;
margin-top: 30px;
}
#Member_Box_Left_Column {
float: left;
width: 230px;
padding-right: 10px;
height: auto;
}
.Latest_News_Headline {
font-family: Arial, Helvetica, sans-serif;
font-size: 15px;
color: #900;
}
#Member_Box_Right_Column {
height: 300px;
width: 218px;
margin-left: 240px;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
#Member_Divider {
background-image: url(../images_new/Member_Divider.jpg);
float: left;
height: 300px;
width: 10px;
}
h5 {
font-size: 14px;
}
.Member_Box_Text {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
#Member_Box_Right_Column img {
margin-right: 5px;
}
#Member_Headlines {
width: 325px;
height: auto;
float: left;
background-image: url(../images_new/Latest_Member_News.gif);
background-repeat: no-repeat;
padding-top: 30px;
}
#Media_Headlines {
width: 325px;
height: auto;
float: left;
background-image: url(../images_new/Latest_Media_News.gif);
background-repeat: no-repeat;
padding-top: 30px;
}
#subNav_Member {
width: 1000px;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: 142px;
padding-right: 15px;
padding-left: 0px;
padding-top: 0px;
padding-bottom: 20px;
}
#subNav_Public {
width: 810px;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: 243px;
padding-right: 15px;
padding-left: 0px;
padding-top: 0px;
padding-bottom: 20px;
}
#Member_Box_Public {
background-image: url(../images_new/Public_Member_Box_Header.jpg);
background-repeat: no-repeat;
width: 458px;
background-color: #FF903A;
margin-top: 20px;
padding-top: 60px;
padding-right: 10px;
padding-bottom: 10px;
padding-left: 10px;
height: 330px;
border: 1px solid #A5581F;
}
#subNav_Media {
width: 710px;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: 344px;
padding-right: 15px;
padding-left: 0px;
padding-top: 0px;
padding-bottom: 20px;
}
#Promotions_Advertising_Box {
background-image: url(../images_new/Promotions_Advertising.gif);
background-repeat: no-repeat;
width: 305px;
border: 1px solid #333;
background-color: #94C00E;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
padding-top: 35px;
padding-right: 10px;
padding-bottom: 10px;
padding-left: 10px;
}
#Member_Box_Media {
background-image: url(../images_new/Member_Box_Header_Media.jpg);
background-repeat: no-repeat;
width: 458px;
background-color: #FF903A;
margin-top: 20px;
padding-top: 60px;
padding-right: 10px;
padding-bottom: 10px;
padding-left: 10px;
height: 300px;
border: 1px solid #A5581F;
}
#Image_Download_Box {
width: 100%;
background-image: url(../images_new/Media_Image_Download_Header.gif);
background-repeat: no-repeat;
padding-top: 30px;
margin-top: 20px;
height: auto;
}
.Right_Sidebar {
background-color: #A1A5BA;
padding: 10px;
float: right;
width: 200px;
}
.SmallText {
font-size: 10px;
}