tutorials.de Buch-Aktion 05/2012
ERLEDIGT
JA
ANTWORTEN
14
ZUGRIFFE
500
EMPFEHLEN
  • An Twitter übertragen
  • An Facebook übertragen
DIESES THEMA IST
GESCHLOSSEN
  1. #1
    wachteldonk wachteldonk ist offline Mitglied Brokat
    Registriert seit
    Aug 2007
    Beiträge
    280
    Hallo,

    ich versuch jetzt seit einer Ewigkeit divs mit scrollbalken auf die richtige Höhe zu bringen aber es will nicht klappen. Auf dem beiliegenden Screenshot habe ich die Probleme markiert und hier der Code. Hat jemand eine Problemlösung?

    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
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
     
     
    <head>
    <title>teste 3.0</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
     
     
     
    <style type="text/css">
    <!--
    body {
        margin: 0;
        font-family:Arial, Verdana;
        font-size: 13px;
        color:black;
        background-color: #FFFFFF;
    }
     
     
    .NavigationFrame {
        position:fixed;
        width:100%;
        height:30px;
        left:0;
        top: 0; 
        z-index:1000;
        background-color:#bbbbbb;
    }
     
    .ContentFrame {
        background-color:#cccccc;
        position:fixed;
        width:100%;
        height:100%;
        top: 30px; 
        right: 0px;
        left: 0px;
        bottom: 26px; 
    }
     
    .FooterFrame {
        position:fixed;
        width:100%;
        height:26px;
        bottom: 0px; 
        left: 0; 
        background-color:#cccccc;
        background-image:url(includes/templates/standard/images/background_footer.png);
        background-repeat:repeat-x;
     
    }
     
    .Footertext {
        width:100%;
        height:26px;
        background-image:url(includes/templates/standard/images/footertext.png);
        background-repeat:no-repeat;
        background-position:right;
        bottom:0px;
        left:0px;
    }
     
     
    /* Einzene Elemente */
    .ListObject {
        width:30%;
        float:left;
        
     
     
        position:fixed;
        top: 30px; 
        right: 0px;
        left: 0px;
        bottom: 26px; 
    }
    .ListInnerObject {
        overflow:auto;
        background-color:white;
        height:100%;
        border: 2px solid black;
        border-style:inset;
        padding:2px 4px 2px 4px;
        margin: 2px 0px 2px 4px;
    }
     
    .ContentObject {
        width:70%;
        
     
        position:fixed;
        top:30px;
        left:30%;
        bottom:26px;
        
    }
     
    .ContentInnerObject {
        overflow:auto;
        background-color:white;
        border: 2px solid black;
        height:100%;
        border-style:inset;
        padding:2px 4px 2px 4px;
        margin: 2px 0px 2px 4px;
    }
     
     
     
     
     
     
    /* Navigation */
    ul#Navigation .Logo {
        background-image:url(includes/templates/standard/images/logo.png);
        background-repeat:no-repeat;
        width:130px;
        height:30px;
    }
     
    ul#Navigation .Logo:hover {
        background-color:transparent;
    }
     
    ul#Navigation {
        text-align: center;
        z-index:1000;
        width: 100%;    
        margin: 0;
        padding: 0;
        min-height:30px;
        height:30px;
        color:white;
        background-color:#cccccc;
        background-image:url(includes/templates/standard/images/menubackground.png);
        background-repeat:repeat-x;
    }
     
    ul#Navigation li {
        z-index:1000;
        list-style: none;
        float: left;
        display:block;
        position:relative;
        margin:0px;
        padding: 5px 10px 5px 10px;
        overflow:visible;
        cursor:pointer;
        color:white;
        text-align:left;
     
    }
     
    ul#Navigation li ul {
        z-index:1000;
        margin: 0; 
        padding: 0;
        position: absolute;
        display: none;
        width:100%;
        top:26px;
        left:-1px;
        border:1px solid white;
    }
     
    ul#Navigation li ul li {
        z-index:1000;
        float: none;
        display: block;
        margin:0;
        padding: 3px 10px 3px 10px;
        background-color:#E40303;
        cursor:pointer;
        border-top: 1px solid white;
    }
     
    ul#Navigation li:hover {
        z-index:1000;
        background-color:white;
        color:black;
    }
     
    ul#Navigation li:hover ul {
        z-index:1000;
        display: block;
    }
     
    ul#Navigation a {
        z-index:1000;
        text-decoration: none;
        color: white;
        display:block;
    }
     
     
     
     
     
     
     
     
     
     
     
     
    /* Links */
    a{
        color:black;
        text-decoration:none;
    }
     
    a:hover {
        text-decoration:underline;
    }
     
    -->
    </style>
     
    </head>
    <body>
        <div class="NavigationFrame"  id="NavigationFrame">
            <ul id="Navigation">
                
                
                <li class="Logo">
                </li>
                
     
                <li onClick="document.location.href='http://www.test.de'">Hilfe
                  <ul style="width:160px;">
                    <li onClick="document.location.href='http://www.test.de'">Hilfreiche Links</li>
                    <li onClick="document.location.href='http://www.test.de'">Zur  Homepage</li>
                    <li onClick="document.location.href='http://www.test.de'">&Uuml;ber</li>
                  </ul>
                </li>
                <li onClick="document.location.href='http://www.test.de'">Abmelden
                  <ul style="width:140px;">
                    <li onClick="document.location.href='http://www.test.de'">Abmelden / Logout</li>
                  </ul>
                </li>
            </ul>
        </div>
        <div class="ContentFrame" id="ContentFrame">
            <div class="MainContent" ID="MainContent">
                <div class="ListObject" ID="ListFrame">
                    <div class="ListInnerObject">
                        Liste<br />
                        Zeile1<br />
                        Zeile2<br>
                        Zeile3<br />
                        Zeile4<br />
                        Zeile5<br>
                        Zeile6<br />
                        Zeile1<br />
                        Zeile2<br>
                        Zeile3<br />
                        Zeile4<br />
                        Zeile5<br>
                        Zeile6<br />
                        Zeile1<br />
                        Zeile2<br>
                        Zeile3<br />
                        Zeile4<br />
                        Zeile5<br>
                        Zeile6<br />
                        Zeile1<br />
                        Zeile2<br>
                        Zeile3<br />
                        Zeile4<br />
                        Zeile5<br>
                        Zeile6<br />
                        Zeile1<br />
                        Zeile2<br>
                        Zeile3<br />
                        Zeile4<br />
                        Zeile5<br>
                        Zeile6<br />
                        Zeile1<br />
                        Zeile2<br>
                        Zeile3<br />
                        Zeile4<br />
                        Zeile5<br>
                        Zeile6<br />
                        Zeile1<br />
                        Zeile2<br>
                        Zeile3<br />
                        Zeile4<br />
                        Zeile5<br>
                        Zeile6<br />
                        Zeile1<br />
                        Zeile2<br>
                        Zeile3<br />
                        Zeile4<br />
                        Zeile5<br>
                        Zeile6<br />
                        Zeile1<br />
                        Zeile2<br>
                        Zeile3<br />
                        Zeile4<br />
                        Zeile5<br>
                        Zeile6<br />
                        Zeile1<br />
                        Zeile2<br>
                        Zeile3<br />
                        Zeile4<br />
                        Zeile5<br>
                        Zeile6<br />
                        Zeile7<br />
                        Zeile8<br />
                        Zeile9<br />
                        Zeile10<br />
                        Zeile11<br />
                    </div>
                </div>
                <div class="ContentObject" ID="ContentFrame">
                    <div class="ContentInnerObject">
                        Zeile1<br />
                        Zeile2<br>
                        Zeile3<br />
                        Zeile4<br />
                        Zeile5<br>
                        Zeile6<br />
                        Zeile1<br />
                        Zeile2<br>
                        Zeile3<br />
                        Zeile4<br />
                        Zeile5<br>
                        Zeile6<br />
                        Zeile1<br />
                        Zeile2<br>
                        Zeile3<br />
                        Zeile4<br />
                        Zeile5<br>
                        Zeile6<br />
                        Zeile1<br />
                        Zeile2<br>
                        Zeile3<br />
                        Zeile4<br />
                        Zeile5<br>
                        Zeile6<br />
                        Zeile1<br />
                        Zeile2<br>
                        Zeile3<br />
                        Zeile4<br />
                        Zeile5<br>
                        Zeile6<br />
                        Zeile1<br />
                        Zeile2<br>
                        Zeile3<br />
                        Zeile4<br />
                        Zeile5<br>
                        Zeile6<br />
                        Zeile1<br />
                        Zeile2<br>
                        Zeile3<br />
                        Zeile4<br />
                        Zeile5<br>
                        Zeile6<br />
                        Zeile1<br />
                        Zeile2<br>
                        Zeile3<br />
                        Zeile4<br />
                        Zeile5<br>
                        Zeile6<br />
                        Zeile1<br />
                        Zeile2<br>
                        Zeile3<br />
                        Zeile4<br />
                        Zeile5<br>
                        Zeile6<br />
                        Zeile1<br />
                        Zeile2<br>
                        Zeile3<br />
                        Zeile4<br />
                        Zeile5<br>
                        Zeile6<br />
                    </div>
                </div>
            </div>
        </div>
    <div class="FooterFrame"  id="FooterFrame">
        <div class="Footertext" id="Footertext"></div>
    </div>
    </body>
    </html>
    Miniaturansicht angehängter Grafiken Miniaturansicht angehängter Grafiken Layout und div in passender Höhe-mypic.jpg  
    Geändert von wachteldonk (26.08.07 um 01:06 Uhr)
     

  2. #2
    Maik Tutorials.de Gastzugang
    Hi,

    dass die unteren Pfeile der Scrollbalken im nichtsichtbaren Bereich des Browserfensters verschwinden, liegt an der Kombination der Positionierung der DIVs vom oberen Fensterrand (top:30px) und ihrer deklarierten 100%-Höhe.

    Das CSS-Tutorial Tabellenloses Basislayout mit fixierten und separat scrollbaren Blöcken wird dir da sicherlich weiterhelfen.
     

  3. #3
    wachteldonk wachteldonk ist offline Mitglied Brokat
    Registriert seit
    Aug 2007
    Beiträge
    280
    Hallo,

    ich habe mal etwas rumgespieltaber es klappt irgendwie nicht. Ich habe den geänderten Code mal oben aktualisiert. Jetzt geht unter IE7 die Scrollingbars nicht mehr und die Borderstyles werden auch nicht richtig interpretiert siehe inset/outset

    hast du noch eine Idee?
     

  4. #4
    Maik Tutorials.de Gastzugang
    Versuch es mal hiermit:

    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
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    
    <?xml version="1.0" encoding="iso-8859-1"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Test</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
     
    <style type="text/css">
    <!--
    body {
    margin: 0;
    font-family:Arial, Verdana;
    font-size: 13px;
    color:black;
    background-color: #FFFFFF;
    overflow:hidden;
    }
     
     
    .NavigationFrame {
    position:absolute;
    width:100%;
    height:30px;
    left:0;
    top:0;
    z-index:1000;
    background-color:#bbbbbb;
    }
     
    .ContentFrame {
    background-color:#cccccc;
    position:absolute;
    width:100%;
    top:30px;
    right: 0px;
    left: 0px;
    bottom:26px;
    }
     
    * html .ContentFrame {
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    }
     
    .FooterFrame {
    position:absolute;
    width:100%;
    height:26px;
    bottom: 0px;
    left: 0;
    background-color:#cccccc;
    background-image:url(includes/templates/standard/images/background_footer.png);
    background-repeat:repeat-x;
    }
     
    .Footertext {
    width:100%;
    height:26px;
    background-image:url(includes/templates/standard/images/footertext.png);
    background-repeat:no-repeat;
    background-position:right;
    bottom:0px;
    left:0px;
    }
     
     
    /* Einzene Elemente */
    .ListObject {
    width:30%;
    overflow:auto;
    background-color:white;
    position:absolute;
    top: 30px;
    right: 0px;
    left: 0px;
    bottom: 26px;
    }
     
    * html .ListObject {
    position:absolute;
    top:0px;
    right:0px;
    height:100%;
    border-top:26px solid #fff;
    border-bottom:26px solid #fff;
    }
     
    .ContentObject {
    width:70%;
    overflow:auto;
    position:absolute;
    top:30px;
    right:0;
    bottom:26px;
    }
     
    * html .ContentObject {
    position:absolute;
    top:0;
    right:0;
    width:70%;
    height:100%;
    border-top:26px solid #fff;
    border-bottom:26px solid #fff;
    }
     
    /* Navigation */
    ul#Navigation .Logo {
    background-image:url(includes/templates/standard/images/logo.png);
    background-repeat:no-repeat;
    width:130px;
    height:30px;
    }
     
    ul#Navigation .Logo:hover {
    background-color:transparent;
    }
     
    ul#Navigation {
    text-align: center;
    z-index:1000;
    width: 100%;
    margin: 0;
    padding: 0;
    min-height:30px;
    height:30px;
    color:white;
    background-color:#cccccc;
    background-image:url(includes/templates/standard/images/menubackground.png);
    background-repeat:repeat-x;
    }
     
    ul#Navigation li {
    z-index:1000;
    list-style: none;
    float: left;
    display:block;
    position:relative;
    margin:0px;
    padding: 5px 10px 5px 10px;
    overflow:visible;
    cursor:pointer;
    color:white;
    text-align:left;
     
    }
     
    ul#Navigation li ul {
    z-index:1000;
    margin: 0;
    padding: 0;
    position: absolute;
    display: none;
    width:100%;
    top:26px;
    left:-1px;
    border:1px solid white;
    }
     
    ul#Navigation li ul li {
    z-index:1000;
    float: none;
    display: block;
    margin:0;
    padding: 3px 10px 3px 10px;
    background-color:#E40303;
    cursorointer;
    border-top: 1px solid white;
    }
     
    ul#Navigation li:hover {
    z-index:1000;
    background-color:white;
    color:black;
    }
     
    ul#Navigation li:hover ul {
    z-index:1000;
    display: block;
    }
     
    ul#Navigation a {
    z-index:1000;
    text-decoration: none;
    color: white;
    display:block;
    }
     
    /* Links */
    a{
    color:black;
    text-decoration:none;
    }
     
    a:hover {
    text-decoration:underline;
    }
     
    -->
    </style>
     
    </head>
    <body>
    <div class="NavigationFrame" id="NavigationFrame">
    <ul id="Navigation">
     
     
    <li class="Logo">
    </li>
     
     
    <li onClick="document.location.href='http://www.test.de'">Abmelden
    <ul style="width:140px;">
    <li onClick="document.location.href='http://www.test.de'">Abmelden / Logout</li>
    </ul>
    </li>
    </ul>
    </div>
    <div class="ContentFrame" id="ContentFrame">
    <div class="MainContent" ID="MainContent">
    <div class="ListObject" ID="ListFrame">
    Liste<br />
    Zeile1<br />
    Zeile2<br>
    Zeile3<br />
    Zeile4<br />
    Zeile5<br>
    Zeile6<br />
    Zeile1<br />
    Zeile2<br>
    Zeile3<br />
    Zeile4<br />
    Zeile5<br>
    Zeile6<br />
    Zeile1<br />
    Zeile2<br>
    Zeile3<br />
    Zeile4<br />
    Zeile5<br>
    Zeile6<br />
    Zeile1<br />
    Zeile2<br>
    Zeile3<br />
    Zeile4<br />
    Zeile5<br>
    Zeile6<br />
    Zeile1<br />
    Zeile2<br>
    Zeile3<br />
    Zeile4<br />
    Zeile5<br>
    Zeile6<br />
    Zeile1<br />
    Zeile2<br>
    Zeile3<br />
    Zeile4<br />
    Zeile5<br>
    Zeile6<br />
    Zeile1<br />
    Zeile2<br>
    Zeile3<br />
    Zeile4<br />
    Zeile5<br>
    Zeile6<br />
    Zeile1<br />
    Zeile2<br>
    Zeile3<br />
    Zeile4<br />
    Zeile5<br>
    Zeile6<br />
    Zeile1<br />
    Zeile2<br>
    Zeile3<br />
    Zeile4<br />
    Zeile5<br>
    Zeile6<br />
    Zeile1<br />
    Zeile2<br>
    Zeile3<br />
    Zeile4<br />
    Zeile5<br>
    Zeile6<br />
    Zeile7<br />
    Zeile8<br />
    Zeile9<br />
    Zeile10<br />
    Zeile11<br />
     
    </div>
    <div class="ContentObject" ID="ContentFrame">
    Zeile1<br />
    Zeile2<br>
    Zeile3<br />
    Zeile4<br />
    Zeile5<br>
    Zeile6<br />
    Zeile1<br />
    Zeile2<br>
    Zeile3<br />
    Zeile4<br />
    Zeile5<br>
    Zeile6<br />
    Zeile1<br />
    Zeile2<br>
    Zeile3<br />
    Zeile4<br />
    Zeile5<br>
    Zeile6<br />
    Zeile1<br />
    Zeile2<br>
    Zeile3<br />
    Zeile4<br />
    Zeile5<br>
    Zeile6<br />
    Zeile1<br />
    Zeile2<br>
    Zeile3<br />
    Zeile4<br />
    Zeile5<br>
    Zeile6<br />
    Zeile1<br />
    Zeile2<br>
    Zeile3<br />
    Zeile4<br />
    Zeile5<br>
    Zeile6<br />
    Zeile1<br />
    Zeile2<br>
    Zeile3<br />
    Zeile4<br />
    Zeile5<br>
    Zeile6<br />
    Zeile1<br />
    Zeile2<br>
    Zeile3<br />
    Zeile4<br />
    Zeile5<br>
    Zeile6<br />
    Zeile1<br />
    Zeile2<br>
    Zeile3<br />
    Zeile4<br />
    Zeile5<br>
    Zeile6<br />
    Zeile1<br />
    Zeile2<br>
    Zeile3<br />
    Zeile4<br />
    Zeile5<br>
    Zeile6<br />
    </div>
    </div>
    </div>
    <div class="FooterFrame" id="FooterFrame">
    <div class="Footertext" id="Footertext"></div>
    </div>
    </body>
    </html>
     

  5. #5
    wachteldonk wachteldonk ist offline Mitglied Brokat
    Registriert seit
    Aug 2007
    Beiträge
    280
    Da wirft er einen PHP Fehler. Ist der Syntax der ersten Zeile wirklich so richtig?

    Parse error: syntax error, unexpected T_STRING in /var/www/web1/html/testversion_make/_layout/index3.php on line 1

    Was hast due eigentlich geändert?

    Bei mir werden jetzt die Rahmen oben und unten riesig
    Geändert von wachteldonk (26.08.07 um 01:39 Uhr)
     

  6. #6
    Maik Tutorials.de Gastzugang
    Anstelle der XML-Deklaration, die dazu dient, den IE (<7) in den Quirksmodus zu versetzen, damit der "Workaround" in ihm überhaupt funktioniert, kannst du auch einen HTML-Kommentar setzen:

    Code :
    1
    
    <!-- put IE into Quirksmode -->

    Ändere mal für die Klase .ContentFrame die obere und untere Positionsangabe auf null, damit der Rahmen nicht größer erscheint:

    Code :
    1
    2
    3
    4
    5
    6
    7
    8
    9
    
    .ContentFrame {
    background-color:#cccccc;
    position:absolute;
    width:100%;
    top: 0;
    right: 0px;
    left: 0px;
    bottom: 0;
    }
    Was ich geändert habe?

    In Anlehnung an das empfohlene CSS-Tutorial habe ich den Positionierungswert fixed durch absolute ersetzt, aus den Klassen .ContentFrame, .ListObject, ContentObject die height:100%-Deklaration entfernt, sowie folgende * html-Selektoren für den IE hinzugefügt:

    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
    
    * html .ContentFrame {
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    }
     
    * html .ListObject {
    position:absolute;
    top:0px;
    right:0px;
    height:100%;
    border-top:26px solid #fff;
    border-bottom:26px solid #fff;
    }
     
    * html .ContentObject {
    position:absolute;
    top:0;
    right:0;
    width:70%;
    height:100%;
    border-top:26px solid #fff;
    border-bottom:26px solid #fff;
    }
     

  7. #7
    wachteldonk wachteldonk ist offline Mitglied Brokat
    Registriert seit
    Aug 2007
    Beiträge
    280
    Die Erweiterungen für den IE, sind aber nur für IE6 und kleiner? Mein IE7 zeigte die Seite eigentlich richtig an.
    Jetzt gibts aber leider doch noch ein paar Probleme

    Wenn ich im IE den rechten Browerscrollbalken mit

    *{overflow:hidden;}

    deaktiviere, verschwindet zwar die Scrollbar im IE (ganz rechts) aber jetzt werden meine Pulldownmenüs nicht mehr angezeigt. Ne Idee?


    dann will ich die jetztigen Scrollboxen noch mit einem Rand versehen. Wenn ich das overflow:auto in den beiden Elementen entferne, eine weiteres Div einfüge und es dann we im obigen Code mit den inner Classen evrsehe geht auf einmal garnix mehr. Komishc ist auch as wenn ich für diese Elemente 100% als breite eingebe. der Scrollbalken ganz verschwindet. Obwohl er bei 90 % noch auftaucht und noch genug Platz da ist um 100% zu zeigen

    Noch eine Frage:
    Wenn ich das angebe

    .ListObject {
    width:30%;
    overflow:auto;
    background-color:white;
    position:absolute;
    top: 4px;
    right: 6px;
    left: 6px;
    bottom: 4px;
    border:10px;
    }

    krieg ichzwar oben und unten schöne Ränder aber er verschiebt sich auch nach rechts und der rechte frame bleibt da wo er ist Nicht ganz so gut. Das alles nur im IE7 aber im Firefox tut sich garnix Keine Ränder,.. nix



    Die ganze Sache soll allerdings eh nur im Firefox ab 1.5 udn IE7 laufen.
    Geändert von wachteldonk (26.08.07 um 02:44 Uhr)
     

  8. #8
    Maik Tutorials.de Gastzugang
    Zitat Zitat von wachteldonk Beitrag anzeigen
    Wenn ich im IE den rechten Browerscrollbalken mit

    *{overflow:hidden;}

    deaktiviere, verschwindet zwar die Scrollbar im IE (ganz rechts) aber jetzt werden meine Pulldownmenüs nicht mehr angezeigt. Ne Idee?
    Code :
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    
    .NavigationFrame {
    position:absolute;
    width:100%;
    height:30px;
    left:0;
    top: 0;
    z-index:1000;
    background-color:#bbbbbb;
    [b]overflow:visible;[/b]
    }
     

  9. #9
    wachteldonk wachteldonk ist offline Mitglied Brokat
    Registriert seit
    Aug 2007
    Beiträge
    280
    ok, Danke.

    Jetzt nur noch das Problem mit den Rändern. Im Firefox zeigt er garnix an Im IE zerschießt er alles bei Rändern auf der Horizontalen
     

  10. #10
    Maik Tutorials.de Gastzugang
    Gemäß dem CSS-Boxmodell wird u.a. die border-Eigenschaft zur width-Eigenschaft eines Elements hinzugezählt, was seine "tatsächliche" Boxenbreite ergibt.

    Folglich müsstest du 20 Pixel (linker + rechter Rahmen) von den 30% abziehen, um auf die gewünschte 30%-Breite zu kommen - das funktioniert aber genauso gut (perfekt), wie die Äpfel von den Birnen zu subtrahieren.

    Du kannst dir ja mal diesen "Annäherungsversuch" anschauen, bei dem von mir die bisherigen Positionsangaben um 10px "eingerückt", sowie die Breitenangaben verringert wurden, um an den Flanken einen Rand (Rahmen) zu erzeugen:

    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
    
    .ContentFrame {
    [b]background:#ffff00;[/b] /* um Rand zu visualisieren */
    position:absolute;
    width:100%;
    top:0;
    left:0;
    bottom:0;
    }
     
    .ListObject {
    [b]width:28.5%;[/b]
    overflow:auto;
    background:#fff;
    position:absolute;
    [b]top:40px;
    left:10px;
    bottom:36px;[/b]
    }
     
    .ContentObject {
    [b]width:68.5%;[/b]
    overflow:auto;
    background:#ccc;
    position:absolute;
    [b]top:40px;
    right:10px;
    bottom:36px;[/b]
    }
    Das Modell hab ich erfolgreich im FF (1.5.0.7, 2.0.0.6) und IE7 getestet.
     

  11. #11
    wachteldonk wachteldonk ist offline Mitglied Brokat
    Registriert seit
    Aug 2007
    Beiträge
    280
    Hallo,

    es klappt jetzt unterm IE7 gut aber im Firefox werden keien Ränder angezeigt. die beien inneren Objekte werden aneinader gklatscht. Kannst du nochmal drüber schauen woran das liegen kann?

    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
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Test 3.0</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
     
    <style type="text/css">
    <!--
    * {
        overflow:hidden;
        }
     
     
    body 
        {
        margin: 0;
        font-family:Arial, Verdana;
        font-size: 13px;
        color:black;
        background-color: #FFFFFF;
        overflow:hidden;
        }
     
     
    .NavigationFrame {
        position:absolute;
        width:100%; 
        height:30px;
        left:0;
        top:0;
        z-index:1000;
        background-color:#bbbbbb;
        overflow:visible;
        }
     
    .ContentFrame {
        background-color:#cccccc;
        position:absolute;
        width:100%;
        top:30px;
        right: 0px;
        left: 0px;
        bottom:26px;
        }
     
    .FooterFrame {
        position:absolute;
        width:100%;
        height:26px;
        bottom: 0px;
        left: 0;
        background-color:#cccccc;
        background-image:url(includes/templates/standard/images/background_footer.png);
        background-repeat:repeat-x;
        }
     
    .Footertext {
        width:100%;
        height:26px;
        background-image:url(includes/templates/standard/images/footertext.png);
        background-repeat:no-repeat;
        background-position:right;
        bottom:0px;
        left:0px;
        }
     
    /* IE */
    * html .ContentFrame 
        {
        position:absolute;
        top:0;
        left:0;
        width:100%;
        height:100%;
        }
     
    * html .ListObject {
        width:28.5%;
        position:absolute;
        top:0px;
        right:0px;
        height:100%;
        border-top:26px solid #fff;
        border-bottom:26px solid #fff;
        }
     
    * html .ContentObject {
        position:absolute;
        top:0;
        right:0;
        width:68.5%;
        height:100%;
        border-top:26px solid #fff;
        border-bottom:26px solid #fff;
        }
     
     
    /* Einzelne Elemente */
    .ListObject {
        width:27.5%;
        overflow:auto;
        position:absolute;
        top: 10px;
        right: 0px;
        left: 12px;
        bottom: 10px;
        border: 2px inset;
        padding: 4px 6px 4px 6px;
        background-color:white;
    }
     
    .ContentObject {
        width:67.5%;
        overflow:auto;
        position:absolute;
        top:10px;
        right:12px;
        bottom:10px;
        border: 2px outset;
        padding: 4px 6px 4px 6px;
        }
     
     
     
    /* Navigation */
    ul#Navigation .Logo {
        background-image:url(includes/templates/standard/images/logo.png);
        background-repeat:no-repeat;
        width:130px;
        height:30px;
        }
     
    ul#Navigation .Logo:hover {
        background-color:transparent;
        }
     
    ul#Navigation {
        text-align: center;
        z-index:1000;
        width: 100%;
        margin: 0;
        padding: 0;
        min-height:30px;
        height:30px;
        color:white;
        background-color:#cccccc;
        background-image:url(includes/templates/standard/images/menubackground.png);
        background-repeat:repeat-x;
        }
     
    ul#Navigation li {
        z-index:1000;
        list-style: none;
        float: left;
        display:block;
        position:relative;
        margin:0px;
        padding: 5px 10px 5px 10px;
        overflow:visible;
        cursor:pointer;
        color:white;
        text-align:left;
        }
     
    ul#Navigation li ul {
        z-index:1000;
        margin: 0;
        padding: 0;
        position: absolute;
        display: none;
        width:100%;
        top:26px;
        left:-1px;
        border:1px solid white;
        }
     
    ul#Navigation li ul li {
        z-index:1000;
        float: none;
        display: block;
        margin:0;
        padding: 3px 10px 3px 10px;
        background-color:#E40303;
        cursorointer;
        border-top: 1px solid white;
        }
     
    ul#Navigation li:hover {
        z-index:1000;
        background-color:white;
        color:black;
        }
     
    ul#Navigation li:hover ul {
        z-index:1000;
        display: block;
        }
     
    ul#Navigation a {
        z-index:1000;
        text-decoration: none;
        color: white;
        display:block;
        }
     
    /* Links */
    a{
        color:black;
        text-decoration:none;
        }
     
    a:hover {
        text-decoration:underline;
        }
     
     
     
     
    -->
    </style>
     
    </head>
    <body>
    <div class="NavigationFrame" id="NavigationFrame">
        <ul id="Navigation">
            <li class="Logo">
            </li>
            <li onClick="document.location.href='http://www.test.de'">Kasse & Berichte
              <ul style="width:140px;">
                <li onClick="document.location.href='http://www.test.de'">Startseite</li>
                <li onClick="document.location.href='http://www.test.de'">Kassenliste</li>
                <li onClick="document.location.href='http://www.test.de'">Tagesbericht</li>
                <li onClick="document.location.href='http://www.test.de'">Archiv Tagesbericht</li>
              </ul>
            </li>
            <li onClick="document.location.href='http://www.test.de'">Mitarbeiter
              <ul style="width:180px;">
                <li onClick="document.location.href='http://www.test.de'">Arbeitszeit eintragen</li>
                <li onClick="document.location.href='http://www.test.de'">Tages & Wochen&uuml;bersicht</li>
              </ul>
            </li>
            <li onClick="document.location.href='http://www.test.de'">Kunden
                <ul style="width:200px;">
                    <li onClick="document.location.href='http://www.test.de'">Kundenverwaltung</li>
                    <li onClick="document.location.href='http://www.test.de'">Kundennewsletter</li>
                    <li onClick="document.location.href='http://www.test.de'">Terminverwaltung</li>
                    <li onClick="document.location.href='http://www.test.de'">Kundensuche</li>
                    <li onClick="document.location.href='http://www.test.de'">Verl&auml;ngerungsf&auml;hige Vertr&auml;ge</li>
                    <li onClick="document.location.href='http://www.test.de'">Tarife</li>
                    <li onClick="document.location.href='http://www.test.de'">Tarufoptionen</li>
                </ul>
            </li>
            <li onClick="document.location.href='http://www.test.de'">Produkte
              <ul style="width:140px;">
                <li onClick="document.location.href='http://www.test.de'">Produktverwaltung</li>
              </ul>
            </li>
            <li onClick="document.location.href='http://www.test.de'">Provision
              <ul style="width:180px;">
                <li onClick="document.location.href='http://www.test.de'">Provisions&uuml;bersicht</li>
                <li onClick="document.location.href='http://www.test.de'">Mengen&uuml;bersicht</li>
                <li onClick="document.location.href='http://www.test.de'">Mengen&uuml;bersicht Gruppen</li>
                <li onClick="document.location.href='http://www.test.de'">Provisionserfassung</li>
              </ul>
            </li>
     
            <li onClick="document.location.href='http://www.test.de'">Provisionseinstellungeen
              <ul style="width:180px;">
                <li onClick="document.location.href='http://www.test.de'">Provisionstarife</li>
                <li onClick="document.location.href='http://www.test.de'">Provisionsoptionen</li>
                <li onClick="document.location.href='http://www.test.de'">Provisionstarifgruppen</li>
              </ul>
            </li>
            <li onClick="document.location.href='http://www.test.de'">System
              <ul style="width:180px;">
                <li onClick="document.location.href='http://www.test.de'">Userverwaltung</li>
                <li onClick="document.location.href='http://www.test.de'">Zugrffsverwaltung</li>
                <li onClick="document.location.href='http://www.test.de'">Merkmale & Filter</li>
                <li onClick="document.location.href='http://www.test.de'">Grundkonfiguration</li>
                <li onClick="document.location.href='http://www.test.de'">Datenbankbackup</li>
                <li onClick="document.location.href='http://www.test.de'">Forum</li>
              </ul>
            </li>
            <li onClick="document.location.href='http://www.test.de'">Hilfe
              <ul style="width:160px;">
                <li onClick="document.location.href='http://www.test.de'">Hilfreiche Links</li>
                <li onClick="document.location.href='http://www.test.de'">Zur Test Homepage</li>
                <li onClick="document.location.href='http://www.test.de'">&Uuml;ber Test</li>
              </ul>
            </li>
            <li onClick="document.location.href='http://www.test.de'">Abmelden
              <ul style="width:140px;">
                <li onClick="document.location.href='http://www.test.de'">Abmelden / Logout</li>
              </ul>
            </li>
        </ul>
    </div>
    <div class="ContentFrame" id="ContentFrame">
        <div class="MainContent" ID="MainContent">
            <div class="ListObject" ID="ListFrame">
                Liste<br />
                Zeile1<br />
     
                Zeile10<br />
                Zeile11<br />
            </div>
            <div class="ContentObject" ID="ContentFrame">
                Zeile1<br />
                Zeile2<br>
     
                Zeile4<br />
                Zeile5<br>
                Zeile6<br />
            </div>
        </div>
    </div>
    <div class="FooterFrame" id="FooterFrame">
        <div class="Footertext" id="Footertext"></div>
    </div>
    </body>
    </html>
     

  12. #12
    Maik Tutorials.de Gastzugang
    Bei mir werden die Ränder im FF korrekt angezeigt:

    Layout und div in passender Höhe-demo_wachteldonk.jpg

    Dass die inneren Objekte ab einer gewissen Browserfenstergröße "aneinanderklatschen" liegt an der relativen (prozentualen) Breitenangabe, zu der die absoluten Pixelwerte des Rahmens und Innenabstandes hinzugezählt werden, was eben zu Ungenauigkeiten führt.
     

  13. #13
    wachteldonk wachteldonk ist offline Mitglied Brokat
    Registriert seit
    Aug 2007
    Beiträge
    280
    Komisch, bei mir igoriert er dei Eingaben komplett Welchen Firefox benutzt du ? Ich habe heir 2.0

    Zu dem anderen Problem. Ich habe die left udn richt Werte auf Prozentwerte ungestellt aber das bringt auch nix. Was kann man da den sonst machen?
     

  14. #14
    Maik Tutorials.de Gastzugang
    Zitat Zitat von wachteldonk Beitrag anzeigen
    Welchen Firefox benutzt du ? Ich habe heir 2.0
    Wer lesen kann, ist klar im Vorteil:
    Zitat Zitat von Maik Beitrag anzeigen
    [...] Das Modell hab ich erfolgreich im FF (1.5.0.7, 2.0.0.6) und IE7 getestet.
     

  15. #15
    wachteldonk wachteldonk ist offline Mitglied Brokat
    Registriert seit
    Aug 2007
    Beiträge
    280
    ok, jetzt gehts hier auch. Anscheined hat der Cache hier etwas rumgesponnen. Ich werde die Überlagerung wohl mit eienr Mindestbreite für das Browserfenster lösen. mal schauen was ich dazu finde.
     

Ähnliche Themen

  1. CSS-Layout Höhe ist größer als 100%
    Von Necro_nomicon im Forum CSS
    Antworten: 46
    Letzter Beitrag: 30.09.08, 16:53
  2. Layout 100% höhe & 100% Breite mit Rahmen
    Von staypunk im Forum CSS
    Antworten: 8
    Letzter Beitrag: 21.08.08, 16:25
  3. Layout mit 100% Höhe
    Von redbecks im Forum CSS
    Antworten: 2
    Letzter Beitrag: 06.05.08, 18:43
  4. CSS Layout, Submenu 100% Höhe
    Von Giggles91 im Forum CSS
    Antworten: 10
    Letzter Beitrag: 04.03.07, 20:38
  5. Divs Höhe/Spalten Layout
    Von thetrue im Forum CSS
    Antworten: 7
    Letzter Beitrag: 26.05.06, 16:34