Hallo zusammen,
habe folgendes Problem: Ich bin dabei, eine Web-Applikation zu schreiben. Habe also HTML- und CSS-Dateien und soweit funktioniert auch alles so wie es soll. Naja, außer im Internet Explorer :-( Verwende die Version 8, aber in Version 7 hat es auch nicht funktioniert. Kann mir einer sagen, wieso er das macht, bzw. was ich im CSS(?) falsch gemacht habe?
Hier mein CSS-Code:
/* CSS für IE, Computer, min-width: 961px */
html {
height: 101%;
} //hatte anstatt html auch schon * probiert, geht aber auch nicht
body {
background: #333;
color: white;
font-family: Helvetica;
font-size: 14px;
margin: 0;
padding: 0;
}
#wrapper {
width: 600px;
margin: auto;
border: #ffcc00 solid 5px;;
}
#kopf {
background: #333;
text-align: center;
text-shadow: 0px 1px 0px #ffcc00;
border-bottom: 1px solid #666;
}
#kopf #img{
background: white url("../images/bild.png") top right no-repeat;
height: 23px;
color: #222;
display: block;
font-size: 20px;
font-weight: bold;
padding: 10px 0;
}
#kopf h2 {
margin-right: 10px;
margin-left: 12px;
font-size: 140%;
}
#navi {
margin-right: 10px;
margin-left: 12px;
}
#navi ul {
list-style: none;
padding: 0;
}
#navi ul li a {
background: #fff;
border: 1px solid #d9d9d9;
color: #222;
display: block;
font-size: 17px;
font-weight: bold;
margin-bottom: -1px;
padding: 12px 10px;
text-decoration: none;
}
#navi ul li span {
background: #ddd;
}
#navi ul li a img {
float: right;
}
#navi ul li:first-child a {
-webkit-border-top-right-radius: 10px;
-webkit-border-top-left-radius: 10px;
}
#navi ul li:last-child a {
-webkit-border-bottom-right-radius: 10px;
-webkit-border-bottom-left-radius: 10px;
}
#inhalt img {
border: 1px solid #222;
-webkit-border-radius: 5px;
text-align: center;
}
#inhalt #bild img {
border: 1px solid #222;
-webkit-border-radius: 5px;
text-align: center;
margin: 0;
padding: 0;
}
#inhalt #karte img {
width:273px;
margin: auto;
}
#inhalt {
margin-right: 10px;
margin-left: 12px;
}
#inhalt ul li {
list-style-type: none;
}
#inhalt ul li a {
color: #ffcc00;
text-decoration: none;
}
#liste {
display: none;
border: 1px solid #bbb;
width: 100%;
background: #333;
color: white;
padding: 0 3px 10px 3px;
margin-right: 3px;
}
#liste hr{
color: #333;
}
#inhalt #none{
background: #333;
color: white;
font-weight: bold;
padding: 6px 5px 0 5px;
margin: 0;
}
.button {
width: 120px;
padding: 5px 16px 3px;
border-radius: 16px;
-webkit-border-radius: 16px;
-moz-border-radius: 16px;
position: relative;
font-family: Lucida Sans, Helvetica, sans-serif;
font-weight: 800;
color: #fff;
text-shadow: rgba(10,10,10,0.5) 1px 2px 2px;
text-align: center;
vertical-align: middle;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.aqua {
background-color: #fc0;
background-image: -webkit-gradient(linear, 0% 0%, 0% 90%, from(rgba(28, 91, 155, 0.8)), to(rgba(108, 191, 255, 0.9)));
background-image: -moz-linear-gradient(90deg, rgba(108, 191, 255, 0.9) rgba(28, 91, 155, 0.8);
border-top-color: #8ba2c1;
border-right-color: #5890bf;
border-bottom-color: #4f93ca;
border-left-color: #768fa5;
box-shadow: rgba(66,140,240,0.5) 0px 10px 16px;
-webkit-box-shadow: rgba(66,140,240,0.5) 0px 10px 16px;
-moz-box-shadow: rgba(66,140,240,0.5) 0px 10px 16px;
}
#location {
display: none;
}
#footer {
background: #fff;
border-top: 1px solid #666;
color: #222;
display: block;
font-size: 10px;
font-weight: bold;
padding: 50px 0;
text-align: center;
height: 20px;
}
Und meine HTML-Struktur:
<!DOCTYPE html>
<html>
<head>
<title>Titel</title>
<script type="text/javascript" language="JavaScript" src="functions.js">
</script>
<script type="text/javascript" language="JavaScript" src="http://code.jquery.com/jquery-1.5.1.js">
</script>
<link rel="stylesheet" type="text/css" media="screen and (min-width: 961px)" href="css/computer.css">
<link rel="stylesheet" type="text/css" media="only screen and (max-width: 960px)" href="css/mobile.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
<!--[if IE]>
<link rel="stylesheet" type="text/css" media="screen and (min-width: 961px)" href="css/ie.css">
<link rel="stylesheet" type="text/css" media="only screen and (max-width: 960px)" href="css/mobile_ie.css">
<![endif]-->
</head>
<body>
<div id="wrapper">
<div id="kopf">
<div id="img"></div>
</div>
<div id="navi">
<ul>
<li></li>
<li></li>
<li></li>
</ul>
</div>
<div id="inhalt">
</div>
<div id="footer">
</div>
</div>
</body>
</html>
Ich hoffe, mir kann einer von euch weiterhelfen...
Noch was: Gestern hat er es mal für einen "Durchlauf" lang angezeigt. Dann hab ich eine Kleinigkeit im CSS geändert (weiß aber nicht mehr was) und dann ging es nicht mehr - bis jetzt :-(
Danke schon mal für eure Antworten.
LG
it-girl