My site dosent look good in IE, i have tried alot of mods in stylesheet but dont really know how to do. I would like to put the hole site in one div and center the div to make it look good in IE. Anyione who got any good ideas? Right now i only have 1 stylesheet. And none for IE.
Site: getgatsby.se and its only in IE
Code: Select all
<div style="width: 80%; margin: 0px auto">
html {
overflow: -moz-scrollbars-vertical;
margin: 0 auto;
padding: 0;
background: url('../image/background.png') repeat-x top left;
}
* {
font-family: Arial, Helvetica, sans-serif;
margin: 0;
padding: 0;
}
body {
margin: 0 auto;
padding: 0px;
text-align: left;
background: url('../image/background.png') top left repeat-x;
//*background: url('../image/footer.png') bottom left repeat-x;*//
}
body, td, th, input, textarea, select, a {
font-size: 12px;
}
form {
padding: 0;
margin: 0 auto;
display: inline;
}
input, textarea, select {
margin: 3px 0px;
}
a, a:visited {
color: #696969;
text-decoration: underline;
cursor: pointer;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
a img {
border: none;
}
.reviewbutton{
background: url('../image/review.png') no-repeat;
width:85px;
height:20px;
border: none;
margin: 0;
padding: 0 0 5px 0;
color:#FFFFFF;
}
.reviewbutton span{
color:#FFFFFF;
}
p {
margin-top: 0px;
}
/* layout */
#container {
width: 960px;
margin: 0px auto;
text-align: left;
}
#header .div2 {
float: left;
padding-top: 15px;
padding-left: 15px;
}
#header .div3 {
float: right;
padding-top: 7px;
height: 38px;
}
#header .div3 a {
margin-left: 20px;
padding: 1px 0px 2px 20px;
background-repeat: no-repeat;
background-position: left center;
}
#header .div4 {
width: 600px;
clear: right;
float: left;
height: 32px;
padding-right: 14px;
margin-left: 30px;
}
#header .div4 a {
float: left;
margin-right: 2px;
padding-right: 10px;
padding-left: 10px;
height: 18px;
padding-top: 12px;
padding-bottom: 9px;
text-align: center;
color: #FFFFFF;
text-decoration: none;
font-size: 14px;
position: relative;
z-index: 1;
}
#header .div4 a:hover {
text-decoration: underline;
}
#header .div4 a.selected {
text-decoration: underline;
}
#header .div5 {
clear: both;
background: url('../image/header.png') repeat-x;
}
#header .div5 .left {
background: url('../image/header_1_left.png') no-repeat;
width: 5px;
height: 40px;
float: left;
}
#header .div5 .right {
background: url('../image/header_1_right.png') no-repeat;
width: 5px;
height: 40px;
float: right;
}
#header .div5 .center {
height: 40px;
margin:0px;
}
#header .div6 {
clear: both;
margin: 10px 0px 10px 0px;
background: url('../image/logo2.png') no-repeat;
height:260px;
}
#headerlogo {
clear: both;
margin: 10px 0px 10px 0px;
background: url('../image/logo2.png') no-repeat;
height:260px;
}
#header .div6 .left {
background: url('../image/header_2_left.png') no-repeat;
width: 5px;
height: 32px;
float: left;
}
#header .div6 .right {
background: url('../image/header_2_right.png') no-repeat;
width: 5px;
height: 32px;
float: right;
}
#header .div6 .center {
background: url('../image/header_2_center.png') repeat-x;
height: 32px;
margin-left: 5px;
margin-right: 5px;
padding-left: 5px;
padding-right: 5px;
}
#header .div7 {
float:right;
padding-top: 2px;
margin-top: -22px;
height:32px;
}
#header .div8 {
float: left; margin-top: 6px;
}
#header .div9 {
float: right;
margin-right: 100px;
position: relative;
}
#header .div9 .button{
padding: 0px;
width:20px;
height:17px;
background: url('../image/search1.png') top right no-repeat;
text-decoration: none;
color:#FFF;
margin-left: 100px;
position: absolute;
left: 0px;
top: 7px;
}
#header .0 {
float: left;
margin-top: 2px;
}
#search {
padding-top: 7px;
padding-left: 5px;
color: #FFF;
font-weight: bold;
}
#search select {
border: 1px solid #0A5391;
padding: 1px;
}
#search a {
color: #FFF;
}
#search input {
border: 1px solid #171F33;
padding: 2px;
background: url('../image/search.png') repeat-x;
height: 19px;
width: 189px;
}
#breadcrumb {
padding: 7px 0px 0px 0px;
height: 0px;
margin-bottom: 0px;
color: #000000;
}
.switcher {
float: left;
margin-top: 3px;
margin: 0px;
}
.switcher a {
text-decoration: none;
display: block;
}
.switcher .selected {
}
.switcher .selected a {
background: url('../image/arrow_down.png') 116px center no-repeat;
color: #666666;
padding: 2px 5px 2px 0px;
width: 121px;
}
.switcher .selected a:hover {
background: #F0F0F0 url('../image/arrow_down.png') 116px center no-repeat;
}
.switcher .option {
position: absolute;
z-index: 3;
border-left: 1px solid #CCCCCC;
border-right: 1px solid #CCCCCC;
border-bottom: 1px solid #CCCCCC;
background-color: #EEEEEE;
display: none;
width: 131px;
}
.switcher .option a {
color: #000;
padding: 3px 5px 3px 5px;
}
.switcher .option a:hover {
background: #FFC;
}
.switcher img {
position: relative;
top: 1px;
}
#column_left {
float: left;
width: 193px;
margin-right: 10px;
clear: left;
}
/*#column_right {
float: right;
width: 180px;
margin-left: 10px;
clear: right;
}*/
#content . {
width: 960px;
margin: 0px auto;
text-align: left;
}
#content {
width: 760px;
margin-left: 203px;
margin-bottom: 10px;
}
#content .top .left {
background: url('../image/content_top_left.png') no-repeat;
width: 32px;
height: 32px;
float: left;
}
#content .top .left1 {
background: url('../image/left.png') no-repeat;
width: 5px;
height: 32px;
float: left;
}
#content .top .right {
background: url('../image/content_top_right.png') no-repeat;
width: 5px;
height: 32px;
float: right;
}
#content .top .center {
background: url('../image/content_top_center.png') repeat-x;
margin-left: 32px;
margin-right: 5px;
}
#centercategory {
margin-left: 32px;
margin-right: 5px;
}
#content .top h1, .heading {
padding: 8px 0px 8px 0px;
margin:0px 0px 0px 3px;
}
#content h1, .heading {
color: #FFFFFF;
font-size: 14px;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
margin-left: 3px;
}
#content .top, h2{
color: #FFFFFF;
font-size: 14px;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
padding: 8px 0px 8px 0px;
margin:0px 0px 0px 3px;
}
#content .middle {
background: #FFFFFF;
padding: 10px 10px 1px 10px;
min-height: 30px;
}
#content .middle1 {
width: 500px;
padding: 0px;
min-height: 30px;
}
/*
#content .bottom .left {
background: url('../image/content_bottom_left.png') no-repeat;
width: 5px;
height: 5px;
float: left;
}
#content .bottom .right {
background: url('../image/content_bottom_right.png') no-repeat;
width: 5px;
height: 5px;
float: right;
}
#content .bottom .center {
background: url('../image/content_bottom_center.png') repeat-x;
height: 5px;
margin: 0 5px 10px 5px;
}*/
.box {
margin-bottom: 20px;
background: url('../image/categeory.png') no-repeat;
}
.box .top {
padding: 5px 0px 0px 7px;
color: #ffffff;
font-size: 14px;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
}
.box .top img {
float: left;
margin-right: 5px;
padding-top: 0px;
padding-top: 5px;
}
.box .middle {
background: #e1e1e1;
padding: 10px;
}
.box .bottom {
height: 5px;
background: url('../image/box_bottom.png') no-repeat;
}
.success {
padding: 5px 0px;
margin-bottom: 10px;
background: #E4F1C9;
border: 1px solid #A5BD71;
font-size: 11px;
font-family: Verdana, Geneva, sans-serif;
text-align: center;
}
.warning {
padding: 5px 0px;
margin-bottom: 10px;
background: #FFDFE0;
border: 1px solid #FF9999;
font-size: 11px;
font-family: Verdana, Geneva, sans-serif;
text-align: center;
}
.wait {
padding: 5px 0px;
margin-bottom: 10px;
background: #FBFAEA;
border: 1px solid #EFEBAA;
font-size: 11px;
font-family: Verdana, Geneva, sans-serif;
text-align: center;
}
.required {
color: #FF0000;
font-weight: bold;
}
.error {
color: #FF0000;
display: block;
}
.help {
cursor: pointer;
}
.tooltip {
border: 1px solid #FDDA5C;
background: #FBFF95;
padding: 5px;
font-size: 11px;
width: 250px;
}
.clear { /* generic container (i.e. div) for floating buttons */
overflow: hidden;
width: 100%;
}
.button {
padding: 0px;
display: inline-block;
margin:0px;
width:20px;
height:17px;
background: url('../image/search1.png') top right no-repeat;
text-decoration: none;
color:#FFF;
margin:0px;
float:right;
}
.buttonthree {
background: url("../image/reviewleft.png") no-repeat scroll left top transparent;
color: #FFFFFF;
display: inline-block;
margin-right: 5px;
padding-left: 8px;
text-decoration: none;
}
.buttonthree span {
background: url("../image/reviewright.png") no-repeat scroll right top transparent;
color: #FFFFFF;
display: block;
padding: 3px 12px 5px 5px;
}
.button1 {
padding: 0px;
display: inline-block;
margin:0px;
height: 20px;
width: 98px;
background: url('../image/addtocart.png') top right no-repeat;
text-decoration: none;
color:#FFF;
margin:0 0 -5px 20px;
/*float:right;*/
}
.buttons {
background: #F8F8F8;
border: 1px solid #DDDDDD;
padding: 5px;
margin-bottom: 10px;
}
.buttons input {
padding: 0px;
margin: 0px;
}
.buttons table {
width: 100%;
border-collapse: collapse;
}
.buttons table td {
vertical-align: middle;
}
.content {
padding: 10px;
margin-top: 3px;
margin-bottom: 10px;
}
.list {
margin-bottom: 10px;
width: 100%;
}
.list td {
text-align: center;
vertical-align: top;
padding-bottom: 10px;
}
.sort {
margin-bottom: 10px;
background: #F8F8F8;
height: 30px;
width: 100%;
}
.sort .div1 {
float: right;
margin-left: 5px;
padding-top: 6px;
padding-right: 9px;
}
.sort .div2 {
text-align: right;
padding-top: 9px;
}
.sort select {
font-size: 11px;
margin: 0;
padding: 0;
}
.pagination {
display: inline-block;
width: 100%;
background: #F8F8F8;
margin-bottom: 10px;
}
.pagination .links, .pagination .results {
padding: 7px;
}
.pagination .links {
float: left;
}
.pagination .links a {
border: 1px solid #CCCCCC;
padding: 4px 7px;
text-decoration: none;
color: #000000;
}
.pagination .links b {
border: 1px solid #CCCCCC;
padding: 4px 7px;
text-decoration: none;
color: #000000;
background: #FFFFFF;
}
.pagination .results {
float: right;
}
.tabs {
width: 100%;
height: 31px;
margin-bottom: 0px;
}
.tabs a {
float: left;
display: block;
padding: 6px 15px 7px 15px;
margin-right: 2px;
border-top: 1px solid #DDDDDD;
border-bottom: 1px solid #DDDDDD;
border-left: 1px solid #DDDDDD;
border-right: 1px solid #DDDDDD;
background: #FFFFFF url('../image/tab_3.png') repeat-x;
color: #000000;
font-weight: bold;
font-size: 13px;
text-decoration: none;
z-index: 1;
position: relative;
top: 1px;
}
.tabs a.selected {
background: #FFFFFF url('../image/tab_3.png') repeat-x;
border-bottom: 0px;
padding-bottom: 8px;
z-index: 3;
}
.tab_page {
/*border: 1px solid #DDDDDD;*/
background: #FFFFFF;
padding: 10px 10px 30px 10px;
display: block;
z-index: 2;
margin-bottom: 10px;
}
#footer {
width: 960px;
clear: both;
padding-top: 5px;
border-top: 1px solid #DDDDDD;
height: 60px;
}
#footer . {
margin: 0 auto;
text-align: left;
}
#footer .div1 {
color:#FFFFFF;
float:left;
margin:20px 0 0 25px;
text-align:left;
}
#footer .div2 {
float:right;
margin-left:25px;
text-align:left;
color:#ffffff;
}
#footer .div2 ul{
padding-left: 0px;
margin-top: 22px;
margin-bottom: 0px;
color:#FFFFFF;
}
#footer .div2 a{
color:#ffffff;
}
#footer .div2 li{
display:inline;
margin:0;
padding:15px 8px;
}
#footer .div2 .separate{
display:inline;
margin:0;
padding:0;
}
#category ul {
margin-top: 0px;
margin-bottom: 0px;
margin-left: 8px;
padding-left: 12px;
list-style: none;
}
#category ul li{
padding-top: 8px;
}
#information ul {
margin-top: 0px;
margin-bottom: 0px;
margin-left: 8px;
padding-left: 12px;
list-style-type: none;
}
#information ul li {
padding-top: 8px;
}
.cart {
border-collapse: collapse;
width: 100%;
border: 1px solid #EEEEEE;
margin-bottom: 10px;
}
.cart th {
background: #EEEEEE;
padding: 5px;
font-weight: normal;
}
.cart td {
padding: 5px;
}
.tags, .tags a {
font-style: italic;
font-size: x-small;
}
#module_cart .middle {
padding: 5px;
}
.cart_module_total {
padding: 0 3px 0 3px;
font-size: 0.9em;
color: #222;
}
.cart_remove {
margin-top: 3px;
background: url('../image/list_remove_btn.gif') no-repeat left center transparent;
padding-right:10px;
cursor:pointer;
}
.cart_remove_loading {
margin-top: 3px;
background: url('../image/ajax_load.gif') no-repeat transparent;
padding-right:10px;
}
.button_add_small, a.button_add_small:visited {
background: url('../image/button_add_small.png') no-repeat left center transparent;
padding: 0 10px 0 0;
text-decoration: none;
cursor:pointer;
}
.button_add_small1, a.button_add_small1:visited {
margin-top: 3px;
background: url('../image/buynow.png') no-repeat left center transparent;
padding:0px 50px 10px 50px;
text-decoration: none;
cursor:pointer;
}
#content .middle .box {
float: left;
margin: 0 6px 10px 6px;
min-height: 0px;
}
#content .middle .box .middle {
width: 158px;
min-height: 0px;
}
.continuebutton {
background: url('../image/review.png') no-repeat;
width:85px;
height:20px;
border: none;
margin: 0;
padding: 0;
color:#FFFFFF;
}
.category_list {
margin-bottom: 10px;
width: 100%;
}
.category_list th{
background:url('../image/content_top_center.png') repeat-x;
color: #FFFFFF;
font-weight: bolder;
text-align: center;
vertical-align:middle;
}
.category_list .dash {
text-align: center;
vertical-align:middle;
padding-top: 10px;
padding-bottom: 10px;
border-bottom:2px dashed #9a9a9a;
}
.manufacturer li:hover {
cursor: pointer
}
.myaccount ul {
list-style-type: none;
padding-bottom: 15px;
}
.myaccount ul li {
padding-bottom: 2px;
}
.myaccount p {
padding-bottom: 5px;
}
.middle .list tr{
border-bottom: 1px solid black;
}
.latest .button1 {
margin: 0px;
}
</div>s