CSS ser underligt ud i alle windows baserede browsere
HejJeg har siddet og bygget en side op, og tjekket den løbende i Firefox på Mac og alt ser fint ud. Så ville jeg tjekke den i Internet Explorer og andre browsere i Windows, og så var den gal. Ifølge W3 så er min CSS helt i orden, og jeg kan heller ikke selv forstå hvad problemet er. For det første er det som om at IE ikke helt kan forstå at jeg vil ha arial som font + at den skal være bold nogle steder. For det andet laver den rod i min menulinje (den grå linie). Denne skulle være 20 px høj, og jeg bruger padding til at placere teksten i midten, men så er det at IE bare laver menulinjen højere.
Min CSS kode:
a:link {
color: #F2A000;
text-decoration: none;
}
a:visited {
color: #F2A000;
text-decoration: none;
}
a:active {
color: #F2A000;
text-decoration: none;
}
a:hover {
color: #F2A000;
text-decoration: none;
}
.maintable {
background-color: #FFFFFF;
border: 5px solid white;
}
.bg {
background-color: #8D8D8D;
}
.header {
background-image: url(images/header.jpg);
background-repeat: no-repeat;
}
.content {
border-right: 5px solid white;
border-top: 5px solid white;
}
.content_right {
border-top: 5px solid white;
}
.menu {
background-color: #5B5B5B;
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
font-style: normal;
font-weight: bold;
color: #FFFFFF;
font-variant: normal;
padding: 5px 0px 0px 25px;
}
.news {
background-color: #F2A000;
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
font-style: normal;
font-weight: bold;
color: #FFFFFF;
font-variant: normal;
padding: 5px 0px 0px 5px;
}
.catchline {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 22px;
font-style: normal;
line-height: 26px;
font-weight: normal;
font-variant: normal;
color: #000000;
padding: 25px 0px 0px 25px;
}
.content_text {
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
font-style: normal;
font-weight: normal;
line-height: 16px;
color: #000000;
font-variant: normal;
padding: 25px 25px 0px 25px;
}
.headlines {
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
font-style: normal;
font-weight: bold;
color: #F2A000;
font-variant: normal;
}
.news_content {
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
font-style: normal;
font-weight: normal;
line-height: 12px;
color: #000000;
font-variant: normal;
padding: 10px 5px 15px 5px;
}
.newsmail {
background-color: #5B5B5B;
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
font-style: normal;
font-weight: bold;
color: #FFFFFF;
font-variant: normal;
padding: 5px 0px 0px 5px;
}
.newsmail_content {
padding: 15px 5px 15px 5px;
}
.contact {
background-color: #5B5B5B;
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
font-style: normal;
color: #FFFFFF;
font-variant: normal;
padding: 5px 0px 0px 5px;
font-weight: bold;
}
.contact_content {
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
font-style: normal;
font-weight: normal;
line-height: 16px;
color: #000000;
font-variant: normal;
padding: 15px 5px 15px 5px;
}
.footer {
background-color: #FFFFFF;
}
