tutorials.de Buch-Aktion 05/2012
ERLEDIGT
NEIN
ANTWORTEN
1
ZUGRIFFE
943
EMPFEHLEN
  • An Twitter übertragen
  • An Facebook übertragen
AUF DIESES THEMA
ANTWORTEN
  1. #1
    blubber02 blubber02 ist offline Grünschnabel
    Registriert seit
    Aug 2007
    Beiträge
    4
    Hallo leute ich habe ich Problem mit den IE6.

    Alle Browser stellen meine DIV-Container richtig dar, bis aus den IE6.
    Das Problem liegt darin, dass die "float: right" Position einer DIV an das Browserfenster gebunden wird.
    Wie schaffe ich es die DIV an den überliegenden Container zu binden?

    Hier ein Bild was passiert wenn ich die fenstergröße des IE6 verkleinere und dann ganz nach rechts scrolle:
    http://www.imagebanana.com/img/lgl9o7ee/ie6.png

    Und hier ein Bild wie es aussehen soll:
    http://www.imagebanana.com/img/2c60lrt/firefox.png

    Code:
    PHP-Code:

    <div id="main" class="clearfix">

      <
    div id="top" class="clearfix">
        <
    div id="abstandhalter">
          <
    span>MIDDLE-Abstandhalter für IE6</span>
        </
    div>
        <
    div id="banner_1">
             <
    span>Banner-1</span>
        </
    div>
        <
    div id="banner_2">
             <
    span>Banner-2</span>
        </
    div>
      </
    div>
    </
    div
    CSS
    PHP-Code:
    <style>
    body {
      
    width100%;
      
    margin0px;
    }

    #abstandhalter {
    border1px solid;
      
    width969px;
      
    displayblock;
      
    /*line-height: 0px;*/
    }

    #main {
    border1px solid;
      
    width100%;
      
    min-width969px;
      
    heightauto;
      
    font-size0px;
    }

    #top {
    border1px solid;
      
    width100%;
      
    min-width969px;
      
    heightauto;
      
    displayblock;
    }

    #banner_1 {
    border1px solid;
      
    floatleft;
      
    width650px/***********714***********/
      
    height206px;
    }

    #banner_2 {
    border1px solid;
      
    floatright;
      
    width255px;
      
    height206px;
      
    clearright;
    }

    /*Hintergrund für das linke Menü*/
    #middle_1 {
    border1px solid #FF0000;
      
    width100%;
      
    min-width969px;
      
    heightauto;
      
    displayblock;
    }

    /*Hintergrund für das rechte Menü*/
    #middle_2 {
    border1px solid #00FF00;
      
    width100%;
      
    min-width969px;
      
    heightauto;
      
    displayblock;
    }

    #left {
    border1px solid #00FFFF;
      
    floatleft;
      
    width20%;
      
    min-width173px;
      
    heightauto;
    }

    #left_abstandhalter {
    border1px solid;
      
    width173px;
      
    displayblock;
      
    /*line-height: 0px;*/
    }

    #left_top {
    border1px solid;
      
    width173px;
      
    height16px;
    }

    #left_content {
    border1px solid;
      
    width173px;
      
    heightauto;
    }

    #center {
    border1px solid;
      
    floatleft;
      
    width55%;
      
    heightauto;
      
    clearright;
    }

    #right {
    border1px solid;
      
    floatright;
      
    width200px;
      
    min-width160px;
      
    height200px;
      
    clearright;
    }

    span {
      
    font-size13px;
      
    line-height15px;
    }

    /*Clearfix*/
    .clearfix:after {
      
    content"";
      
    displayblock;
      
    height0px;
      
    font-size0px;
      
    clearboth;
      
    visibilityhidden;
    }

    .
    clearfix {
      
    displayinline-block;
    }

    /* Hides from IE-mac \*/
    html .clearfix {
      
    height1%;
    }
    .
    clearfix {
      
    displayblock;
    }
    /* End hide from IE-mac */

    </style

    Ich danke schonmal für die Hilfe.

    LG Andreas
     

  2. #2
    Maik Tutorials.de Gastzugang
    Hi,

    die Ursache des Problems dürfte in den min-width-Regeln (insbesondere für #main u. #top) liegen, die der IE6 nicht interpretiert.

    Also muß hier ein Workaround herhalten.

    Am einfachsten, weil ohne großen Arbeitsaufwand im bestehenden Code, mittels http://code.google.com/p/ie7-js/.

    Ansonsten, wenn Javascript nicht zum Einsatz kommen soll / darf, mit http://www.brunildo.org/test/min-widthS.html.

    mfg Maik
     

Ähnliche Themen

  1. float:right und float:left Probleme
    Von xGutaxJungex im Forum CSS
    Antworten: 7
    Letzter Beitrag: 22.08.09, 15:16
  2. 64bit Hex Float in Dezimal Float
    Von benurb im Forum PHP
    Antworten: 4
    Letzter Beitrag: 13.03.09, 17:05
  3. Antworten: 14
    Letzter Beitrag: 28.09.08, 11:00
  4. Antworten: 2
    Letzter Beitrag: 01.03.06, 13:43
  5. Antworten: 3
    Letzter Beitrag: 19.11.04, 09:40