[CSS] Problem mit Abstand bei Firefox und Opera sowie Mindesthöhe bei IE6

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • [CSS] Problem mit Abstand bei Firefox und Opera sowie Mindesthöhe bei IE6

    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:

    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 &copy2008 Flirtix.de</li>
                <
    li id="footer-impressum">Impressum</li>
              </
    ul>
            </
    div>
          </
    div>
      </
    body>
    </
    html
    CSS-Code:

    PHP-Code:
          @charset "ISO-8859-1";

          
    body {
            
    text-aligncenter;
            
    margin0;
          }
     
          
    #container {
            
    text-alignleft;
            
    positionrelative;
            
    padding15px;
            
    width892px;
            
    heightauto;
            
    margin25px auto;
          }

          
    #left-top, #right-top, #left-bottom, #right-bottom, #left, #right, #top, #bottom {
            
    positionabsolute;
            
    displayblock;
          }

          
    #left-top {
            
    width15px;
            
    height15px;
            
    backgroundurl(left_top.gifno-repeat;
            
    top0;
            
    left0;
          }

          
    #right-top {
            
    width15px;
            
    height15px;
            
    backgroundurl(right_top.gifno-repeat;
            
    top0;
            
    right0;
          }

          
    #left-bottom {
            
    width15px;
            
    height15px;
            
    backgroundurl(left_bottom.gifno-repeat;
            
    bottom0;
            
    left0;
          }

          
    #right-bottom {
            
    width15px;
            
    height15px;
            
    backgroundurl(right_bottom.gifno-repeat;
            
    bottom0;
            
    right0;
          }

          
    #top {
            
    width892px;
            
    height15px;
            
    displayblock;
            
    backgroundurl(top.gif);
            
    top0px;
          }

          
    #bottom {
            
    width892px;
            
    height15px;
            
    displayblock;
            
    backgroundurl(bottom.gif);
            
    bottom0px;
          }

          
    #left {
            
    width15px;
            
    heightauto;
            
    displayblock;
            
    backgroundurl(left.gif);
            
    left0px;
            
    top15px;
            
    bottom15px;
          }

          
    #right {
            
    width15px;
            
    heightauto;
            
    displayblock;
            
    backgroundurl(right.gif);
            
    top15px;
            
    right0px;
            
    bottom15px;
          }

          
    #header {
            
    backgroundurl(header_bg.gif);
            
    height100px;
          }

          
    #logo {
            
    positionabsolute;
            
    left46px;
            
    top33px;
          }

          
    #banner {
            
    positionabsolute;
            
    right35px;
            
    top35px;
          }

          
    #mainnav {
            
    height35px;
          }

          
    #mainnav-start, #mainnav-toplists, #mainnav-forum, 
    #mainnav-usearch, #mainnav-help, #mainnav-contact {
            
    displayinline;
            
    positionabsolute;
            
    border-left1px solid #FF3333;
            
    border-right1px solid #800000;
            
    line-height35px;
            
    text-aligncenter;
            
    backgroundurl(mainnav_bg.gif);
            list-
    style-typenone;
            
    color#FFFFFF;
            
    font-weightbold;
            
    font-familyArialTahomasans-serif;
            
    font-size10pt;
          }

          
    #mainnav-start:hover, #mainnav-toplists:hover, #mainnav-forum:hover, 
    #mainnav-usearch:hover, #mainnav-help:hover, #mainnav-contact:hover {
            
    backgroundurl(mainnav_bg_hover.gif);
          }

          
    #mainnav-start {
            
    width:146px;
            
    left15px;
          }

          
    #mainnav-toplists {
            
    width:147px;
            
    left163px;
          }

          
    #mainnav-forum {
            
    width:147px;
            
    left312px;
          }

          
    #mainnav-usearch {
            
    width:147px;
            
    right312px;
          }

          
    #mainnav-help {
            
    width:147px;
            
    right163px;
          }

          
    #mainnav-contact {
            
    width:146px;
            
    right15px;
          }

          
    #menu {
            
    floatright;
            
    width180px;
            
    margin-left5px;
            
    margin-top5px;
            
    margin-bottom5px;
            
    background-color#FFFFFF;
          
    }

          
    #menu-box {
            
    positionabsolute;
            
    right:15px;
            
    top155px;
            
    width178px;
            list-
    style-typenone;
          }

          
    #menu-mailbox, #menu-uonline, #menu-buddiesbans, #menu-credits, #menu-profile, #menu-options {
            
    border1px solid #999999;
            
    width153px;
            
    height21px;
            
    color#000000;
            
    font-familyArialTahomasans-serif;
            
    font-size10pt;
            
    positionabsolute;
            
    right0px;
            
    line-height21px;
            
    padding-left25px;
            
    background-position1px 1px;
            
    background-repeatno-repeat;
          }

          
    #menu-mailbox {
            
    background-imageurl(mailbox.gif);
          }

          
    #menu-mailbox:hover {
            
    background-imageurl(mailbox-hover.gif);
          }

          
    #menu-uonline {
            
    top22px;
            
    background-imageurl(uonline.gif);
          }

          
    #menu-uonline:hover {
            
    background-imageurl(uonline-hover.gif);
          }

          
    #menu-uonlinelist {
            
    border-left1px solid #999999;
            
    border-right1px solid #999999;
            
    right0px;
            
    top44px;
            
    padding-left5px;
            
    width173px;
            
    height252px;
            
    background-imageurl(menu_bg.gif);
            list-
    style-typenone;
            
    color#000000;
            
    font-familyArialTahomasans-serif;
            
    font-size10pt;
            
    positionabsolute;
            
    line-height21px;
            
    overflowauto;
            
    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 {
            
    top296px;
            
    background-imageurl(buddiesbans.gif);
          }

          
    #menu-buddiesbans:hover {
            
    background-imageurl(buddiesbans-hover.gif);
          }

          
    #menu-credits {
            
    top318px;
            
    background-imageurl(credits.gif);
          }

          
    #menu-credits:hover {
            
    background-imageurl(credits-hover.gif);
          }

          
    #menu-profile {
            
    top340px;
            
    background-imageurl(profile.gif);
          }

          
    #menu-profile:hover {
            
    background-imageurl(profile-hover.gif);
          }

          
    #menu-options {
            
    top362px;
            
    background-imageurl(options.gif);
          }

          
    #menu-options:hover {
            
    background-imageurl(options-hover.gif);
          }

          
    #content {
            
    margin-top5px;
            
    margin-bottom5px;
            
    width707px;
            
    min-height385px;
          }

          
    #footer {
            
    height21px;
            
    clearboth;
          }

          
    #footer-agb, #footer-copyright, #footer-impressum {
            
    displayinline;
            
    positionabsolute;
            
    border-left1px solid #FF3333;
            
    border-right1px solid #800000;
            
    text-aligncenter;
            
    backgroundurl(footer_bg.gif);
            list-
    style-typenone;
            
    color#FFFFFF;
            
    font-familyArialTahomasans-serif;
            
    font-size10pt;
            
    height21px;
            
    line-height21px;
          }

          
    #footer-agb:hover, #footer-impressum:hover {
            
    backgroundurl(footer_bg_hover.gif);
          }

          
    #footer-agb {
            
    width146px;
            
    left15px;
            
    font-weightbold;
          }

          
    #footer-copyright {
            
    width594px;
            
    left163px;
          }

          
    #footer-impressum {
            
    width146px;
            
    right15px;
            
    font-weightbold;
          } 
    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?
    Zuletzt geändert von tester_12345; 10.06.2008, 22:10.

  • #2
    Bitte Code so umbrechen, das man nicht scrollen muß.

    Und ich persönlich hab keine Lust, mir das Problem auch nur anzuschauen, solange mir Layerwerbung ins Gesicht gepreßt wird.

    Kommentar


    • #3
      Original geschrieben von pekka
      Bitte Code so umbrechen, das man nicht scrollen muß.

      Und ich persönlich hab keine Lust, mir das Problem auch nur anzuschauen, solange mir Layerwerbung ins Gesicht gepreßt wird.
      So habs jetzt scrollfrei gemacht.
      Die Werbung kann ich leider nicht abstellen, ist bei kilu so.

      Kommentar


      • #4
        Original geschrieben von tester_12345
        Die Werbung kann ich leider nicht abstellen, ist bei kilu so.
        Ach so, sorry. Da hab ich ne kurze Zündschnur
        Moment ich werf mal nen Blick drauf...

        Kommentar


        • #5
          Also ich seh auf die Schnelle nur, daß der Firefox es richtig zu rendern scheint: Das Menü hat die Angabe top: 155px und genau dort stellt es der Firefox dar. Der IE läßt es bereits bei 138px beginnen.

          Kommentar


          • #6
            du meinst glaub ich das menu-div. ich meine das mainnav-div. da gibt es keine top-angabe

            Kommentar


            • #7
              Was ich meine ist das hier:

              Kommentar


              • #8
                Stimmt. Nee dann weiß ich auch nicht

                Kommentar


                • #9
                  setzt mal als erstes ein
                  PHP-Code:
                  *
                  {
                    
                  margin0;
                    
                  padding0;

                  und dann installier dir den firebug, da kannst du sehen, dass das ul in hauptnavigation zu weit nach oben läuft. (siehe anhang)

                  gruß
                  peter
                  Angehängte Dateien
                  Nukular, das Wort ist N-u-k-u-l-a-r (Homer Simpson)
                  Meine Seite

                  Kommentar


                  • #10
                    Danke für die Antwort, im Firefox wird es jetzt richtig angezeigt, aber im Opera bleibt das weiterhin so und im IE6 und Opera werden die Schatten rechts und links nicht angezeigt...

                    Hat jemand ne Lösung?

                    Kommentar


                    • #11
                      Welche Schatten?

                      Opera benötige zumindest ich einen Screen bzw. die Aussage, dass es genauso ist, wie im Firefox im moment (da du es ja online noch nicht geändert hast).

                      mfg

                      Kommentar


                      • #12
                        So, habe es jetzt online geändert und einen Screenshot hochgeladen

                        Screenshot
                        Zuletzt geändert von tester_12345; 13.06.2008, 19:50.

                        Kommentar


                        • #13
                          also bei mir sieht es in allen browsern gleich aus, opera inklusive.

                          gruß
                          peter
                          Nukular, das Wort ist N-u-k-u-l-a-r (Homer Simpson)
                          Meine Seite

                          Kommentar


                          • #14
                            So, habe es jetzt online geändert und einen Screenshot hochgeladen
                            Welche Opera Version? In 9.5 passt es jedenfalls - könnte aber 8.x sein, da ist das nochmal anders.
                            OffTopic:
                            Bette die Hovergrafiken mal zusammen in eine Grafik, dann flackerts im Menu nicht.
                            Die Regeln | rtfm | register_globals | strings | SQL-Injections | [COLOR=silver][[/COLOR][COLOR=royalblue]–[/COLOR][COLOR=silver]][/COLOR]

                            Kommentar

                            Lädt...
                            X