tutorials.de Buch-Aktion 05/2012
ERLEDIGT
JA
ANTWORTEN
2
ZUGRIFFE
1157
EMPFEHLEN
  • An Twitter übertragen
  • An Facebook übertragen
DIESES THEMA IST
GESCHLOSSEN
  1. #1
    Merbi Tutorials.de Gastzugang
    Hallihallo,

    habe ein Problem. Der Bereich content passt sich nicht an die Größe des jeweiligen Inhalts an.

    Code index.php:

    Code :
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    
    <body>
     
     
    <div id="header">   
     
        <h1>Donrather Getränkemarkt</h1>
     
    </div>
     
        <div id="menue">
        <ul>
         <li><a href="index.php?id=home.php">Startseite</a></li>
         <li><a href="#">Wir über uns</a></li>
         <li><a href="#">Service</a></li>
         <li><a href="index.php?id=sortiment.php">Sortiment</a></li>
         <li><a href="index.php?id=angebote.php">Angebote der Woche</a></li>
         <li><a href="index.php?id=contact.php">Kontakt</a></li>
         <li><a href="index.php?id=partner.php">Partner</a></li>
         <li><a href="#">Links</a></li>
         <li><a href="index.php?id=impressum.php">Impressum</a></li>
        </ul>
        </div>
     
     
    <div id="main">
     
     
    <div id="content">
     
     
    <div class="news_entry">
     
            <strong>Sortiment</strong>
    </div>
         
    <div>
            <br>
            <strong>Kühlhänger</strong><br><br>
     
            75€ | <a href="template/images/haenger.jpg" target="_blank">Bild</a><br><br>
     
            <strong>Klapptheke</strong><br><br>
     
            75€ | <a href="template/images/theke.jpg" target="_blank">Bild</a><br><br>
     
    </div>
     
    </div>
     
     
    </div>
     
    <div id="footer">
     
        
    </div>
     
    </body>


    Code stylesheet:

    Code :
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    
    body {
        background-color : #1F2680;
        font-size : 8pt;
        font-family : Lucida Sans Unicode, Verdana, Arial !important;
        color : #247DD7;
        margin : 0;
    }
     
    a {
        color: #FFFFFF;
        background-color: #0099ff;
    }
        
    a:hover {
        color: #FFFFFF;
        background-color: #0099ff;
    }
     
     
    /* --- Navigation --- */
     
     
    #nav {
        width: 100%;
    }
     
     
    #menue {
        background-color: #1F2680;
        width: 100%;    
    }
     
    #menue li {
         display: inline; 
    }
     
    #menue li a {
         background-color: #1F2680;
         color: #FFFFFF;
         padding: 3px 1em;
         margin-left: 3px;
         border: 1px solid #1F2680;
         border-bottom: 0;
         text-decoration: none; 
    }
     
    #menue li a:hover {
         background-color: #1F2680;
         color: #FFFFFF;
         padding: 3px 1em;
         margin-left: 3px;
         border: 1px solid #FFFFFF;
         border-bottom: 0;
         border-top: 0;
         text-decoration: none; 
    }
     
     
        
    /* --- content stuff --- */
     
     
    #main {
        background-color: #0099ff;
        color: #FFFFFF;
        margin-right: 35px;
        margin-left: 35px;
        height: 450px;
    }
     
     
    #header {
        background-color: #0099ff;
        color: #FFFFFF;
        margin-right: 35px;
        margin-left: 35px;
        margin-top: 20px;
    }
     
    #news {
        position: relative;
        width: 200px;
        float: right;
        margin-right: 50px;
        margin-top: 20px;
    }
     
    #content {
        height: 100%;
        width: 450px;
        margin-left: 50px;
        padding-top: 20px;
    }
     
    #footer {
        height: 35px;
        background-color: #1F2680;
    }
     
    .news_entry {
        border-bottom: 1px solid #1F2680;                       
    }
     
    .insert {
        width: 300px;
    }

    MFG Daniel
     

  2. #2
    Maik Tutorials.de Gastzugang
    Hi,

    richte mal mit min-height für die umschliessende Box #main eine Mindesthöhe von 450px ein, denn nur der IE behandelt die height-Eigenschaft als "Mindesthöhe" und dehnt die Box aus, wenn der Inhalt die vorgegebene Höhe überschreitet, und hänge anschliessend height:auto !important an, damit die modernen Browser die nachfolgende height-Deklaration "ignorieren".

    Code :
    1
    2
    3
    4
    5
    6
    7
    8
    9
    
    #main {
            background-color: #0099ff;
            color: #FFFFFF;
            margin-right: 35px;
            margin-left: 35px;
            [b]min-height: 450px;[/b] /* moderne Browser */
            [b]height: auto !important;[/b] /* moderne Browser */
            height: 450px; /* IE */
    }
     

  3. #3
    Merbi Tutorials.de Gastzugang
    100000Dank

    Das mit min-height hatte ich auch schon getestet aber nicht in verbindung mit height:auto.



    MFG Daniel
     

Ähnliche Themen

  1. Antworten: 0
    Letzter Beitrag: 19.04.08, 02:30
  2. Div passt sich nicht an Inhalt an
    Von ecology im Forum CSS
    Antworten: 10
    Letzter Beitrag: 25.08.07, 18:53
  3. Antworten: 22
    Letzter Beitrag: 22.06.07, 23:44
  4. firefox passt groese nicht an
    Von zerwi im Forum HTML & XHTML
    Antworten: 3
    Letzter Beitrag: 30.05.05, 08:18
  5. Inhalt vom Iframe passt sich nicht an..
    Von seven-php im Forum HTML & XHTML
    Antworten: 3
    Letzter Beitrag: 03.02.04, 21:28