Hallo Community!
Ich hab folgendes Problem:
Ich habe ein Design mit CSS erstellt (http://flirtix.kilu.de/design/). Im Internet Explorer 7 sieht das alles wunderbar aus nur ist im Firefox und Opera ein Abstand zwischen header und der roten menüleiste. Wie bekomme ich den Weg? Ich post mal den HTML- und den CSS-Code:
HTML-Code:
CSS-Code:
Ich meine das hängt mit dem padding des container-div zusammen aber ich kann nicht auf diesen verzichten. Auch der Versuch noch ein zweites "container"-div (habs natürlich anders genannt) um die anderen div-Elemente einzurahmen so dass der padding nicht auf die inneren div-elemente wie menu und navigation angewandt wird ist gescheitert. Zudem fällt mir gerade auf, dass der internet explorer 6 den css-befehl min-height nicht umsetzt. was kann ich da machen?
Ich hab folgendes Problem:
Ich habe ein Design mit CSS erstellt (http://flirtix.kilu.de/design/). Im Internet Explorer 7 sieht das alles wunderbar aus nur ist im Firefox und Opera ein Abstand zwischen header und der roten menüleiste. Wie bekomme ich den Weg? Ich post mal den HTML- und den CSS-Code:
HTML-Code:
PHP-Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>neu</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div id="container">
<span id="left-top"></span>
<span id="top"></span>
<span id="right-top"></span>
<span id="left"></span>
<span id="right"></span>
<span id="left-bottom"></span>
<span id="bottom"></span>
<span id="right-bottom"></span>
<div id="header">
<img src="logo.gif" id="logo">
<img src="banner.jpg" id="banner">
</div>
<div id="mainnav">
<ul>
<li id="mainnav-start">Start</li>
<li id="mainnav-toplists">Toplisten</li>
<li id="mainnav-forum">Forum</li>
<li id="mainnav-usearch">User-Suche</li>
<li id="mainnav-help">Hilfe</li>
<li id="mainnav-contact">Kontakt</li>
</ul>
</div>
<div id="menu">
<ul id="menu-box">
<li id="menu-mailbox">Mailbox (1)</li>
<li id="menu-uonline">User online (10):</li>
<li id="menu-uonlinelist">test</li>
<li id="menu-buddiesbans">Buddies & Bans</li>
<li id="menu-credits">Credits</li>
<li id="menu-profile">Profil</li>
<li id="menu-options">Einstellungen</li>
</ul>
</div>
<div id="content">
text
</div>
<div id="footer">
<ul>
<li id="footer-agb">AGB</li>
<li id="footer-copyright">Copyright © 2008 Flirtix.de</li>
<li id="footer-impressum">Impressum</li>
</ul>
</div>
</div>
</body>
</html>
PHP-Code:
@charset "ISO-8859-1";
body {
text-align: center;
margin: 0;
}
#container {
text-align: left;
position: relative;
padding: 15px;
width: 892px;
height: auto;
margin: 25px auto;
}
#left-top, #right-top, #left-bottom, #right-bottom, #left, #right, #top, #bottom {
position: absolute;
display: block;
}
#left-top {
width: 15px;
height: 15px;
background: url(left_top.gif) no-repeat;
top: 0;
left: 0;
}
#right-top {
width: 15px;
height: 15px;
background: url(right_top.gif) no-repeat;
top: 0;
right: 0;
}
#left-bottom {
width: 15px;
height: 15px;
background: url(left_bottom.gif) no-repeat;
bottom: 0;
left: 0;
}
#right-bottom {
width: 15px;
height: 15px;
background: url(right_bottom.gif) no-repeat;
bottom: 0;
right: 0;
}
#top {
width: 892px;
height: 15px;
display: block;
background: url(top.gif);
top: 0px;
}
#bottom {
width: 892px;
height: 15px;
display: block;
background: url(bottom.gif);
bottom: 0px;
}
#left {
width: 15px;
height: auto;
display: block;
background: url(left.gif);
left: 0px;
top: 15px;
bottom: 15px;
}
#right {
width: 15px;
height: auto;
display: block;
background: url(right.gif);
top: 15px;
right: 0px;
bottom: 15px;
}
#header {
background: url(header_bg.gif);
height: 100px;
}
#logo {
position: absolute;
left: 46px;
top: 33px;
}
#banner {
position: absolute;
right: 35px;
top: 35px;
}
#mainnav {
height: 35px;
}
#mainnav-start, #mainnav-toplists, #mainnav-forum,
#mainnav-usearch, #mainnav-help, #mainnav-contact {
display: inline;
position: absolute;
border-left: 1px solid #FF3333;
border-right: 1px solid #800000;
line-height: 35px;
text-align: center;
background: url(mainnav_bg.gif);
list-style-type: none;
color: #FFFFFF;
font-weight: bold;
font-family: Arial, Tahoma, sans-serif;
font-size: 10pt;
}
#mainnav-start:hover, #mainnav-toplists:hover, #mainnav-forum:hover,
#mainnav-usearch:hover, #mainnav-help:hover, #mainnav-contact:hover {
background: url(mainnav_bg_hover.gif);
}
#mainnav-start {
width:146px;
left: 15px;
}
#mainnav-toplists {
width:147px;
left: 163px;
}
#mainnav-forum {
width:147px;
left: 312px;
}
#mainnav-usearch {
width:147px;
right: 312px;
}
#mainnav-help {
width:147px;
right: 163px;
}
#mainnav-contact {
width:146px;
right: 15px;
}
#menu {
float: right;
width: 180px;
margin-left: 5px;
margin-top: 5px;
margin-bottom: 5px;
background-color: #FFFFFF;
}
#menu-box {
position: absolute;
right:15px;
top: 155px;
width: 178px;
list-style-type: none;
}
#menu-mailbox, #menu-uonline, #menu-buddiesbans, #menu-credits, #menu-profile, #menu-options {
border: 1px solid #999999;
width: 153px;
height: 21px;
color: #000000;
font-family: Arial, Tahoma, sans-serif;
font-size: 10pt;
position: absolute;
right: 0px;
line-height: 21px;
padding-left: 25px;
background-position: 1px 1px;
background-repeat: no-repeat;
}
#menu-mailbox {
background-image: url(mailbox.gif);
}
#menu-mailbox:hover {
background-image: url(mailbox-hover.gif);
}
#menu-uonline {
top: 22px;
background-image: url(uonline.gif);
}
#menu-uonline:hover {
background-image: url(uonline-hover.gif);
}
#menu-uonlinelist {
border-left: 1px solid #999999;
border-right: 1px solid #999999;
right: 0px;
top: 44px;
padding-left: 5px;
width: 173px;
height: 252px;
background-image: url(menu_bg.gif);
list-style-type: none;
color: #000000;
font-family: Arial, Tahoma, sans-serif;
font-size: 10pt;
position: absolute;
line-height: 21px;
overflow: auto;
scrollbar-base-color:#EFEFEF;
scrollbar-3d-light-color:#EFEFEF;
scrollbar-arrow-color:#EFEFEF;
scrollbar-darkshadow-color:#EFEFEF;
scrollbar-face-color:#C6C6C6;
scrollbar-highlight-color:#EFEFEF;
scrollbar-shadow-color:#EFEFEF;
scrollbar-track-color:#EFEFEF;
background-color: #EFEFEF;
}
#menu-buddiesbans {
top: 296px;
background-image: url(buddiesbans.gif);
}
#menu-buddiesbans:hover {
background-image: url(buddiesbans-hover.gif);
}
#menu-credits {
top: 318px;
background-image: url(credits.gif);
}
#menu-credits:hover {
background-image: url(credits-hover.gif);
}
#menu-profile {
top: 340px;
background-image: url(profile.gif);
}
#menu-profile:hover {
background-image: url(profile-hover.gif);
}
#menu-options {
top: 362px;
background-image: url(options.gif);
}
#menu-options:hover {
background-image: url(options-hover.gif);
}
#content {
margin-top: 5px;
margin-bottom: 5px;
width: 707px;
min-height: 385px;
}
#footer {
height: 21px;
clear: both;
}
#footer-agb, #footer-copyright, #footer-impressum {
display: inline;
position: absolute;
border-left: 1px solid #FF3333;
border-right: 1px solid #800000;
text-align: center;
background: url(footer_bg.gif);
list-style-type: none;
color: #FFFFFF;
font-family: Arial, Tahoma, sans-serif;
font-size: 10pt;
height: 21px;
line-height: 21px;
}
#footer-agb:hover, #footer-impressum:hover {
background: url(footer_bg_hover.gif);
}
#footer-agb {
width: 146px;
left: 15px;
font-weight: bold;
}
#footer-copyright {
width: 594px;
left: 163px;
}
#footer-impressum {
width: 146px;
right: 15px;
font-weight: bold;
}
Kommentar