IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Mise en page CSS Discussion :

Hauteur 100% div


Sujet :

Dimensionnement en CSS

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre confirmé
    Homme Profil pro
    Inscrit en
    Septembre 2011
    Messages
    81
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Isère (Rhône Alpes)

    Informations forums :
    Inscription : Septembre 2011
    Messages : 81
    Par défaut Hauteur 100% div
    Bonjour,

    Je souhaite réaliser un menu dont la hauteur occupe toute la hauteur de la page. Ou du moins toute la hauteur entre le haut de mon menu et le bas de la page.

    Seulement je n'y arrive pas vraiment. J'ai essayé beaucoup de chose sans avoir de résultats convenables.
    Il y a toujours des problèmes de hauteurs.

    J'ai l'impression que cela vient de la hauteur de mon body, de mon "outer-container" et de mon "footer". J'avais déjà eu beaucoup du mal à obtenir un "footer" en bas de page. Celui-ci remontait au milieu de la page lors d'un resizing du browser internet. J'avais mis 80% au body du coup pour résoudre le problème. Je ne comprend d'ailleur pas pourquoi ça a résolu mon problème.

    Enfin bref je crois que tous mes height sont mal configurés dans mon site.

    J'ai vraiment besoin d'aide.

    Merci d'avance.

    mon code html :

    Code html : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    </body>
    <div id="header">
    <div id="header-container">
    <div id="title">freakyshape</div>
    <div id="slash-container"><div id="slash"></div></div>
    <!--<div id="title2">Design, tech & art</div>-->
    <div id="socialicons-container">
    <img class="social-icons" src="./images/facebook.png" width="35" height="35"/>
    <img class="social-icons" src="./images/google+.png" width="35" height="35"/>
    <img class="social-icons" src="./images/twitter.png" width="35" height="35"/>
    </div>
    <div id="menu-1">
    <a class="menu-title-1" onclick="javascript:window.open('http://www.shapeways.com/shops/FreakyShape','_ne<label></label>wtab');">Shop</a>
    <a class="menu-title-1">About</a>
    <a class="menu-title-1">Contact</a>
    </div> 
    </div> 
    </div>
     
    <div class="bbq-content">
    <div class="bbq-loading" style="display:none;">
    <img src="./loader.gif" alt="Loading"/> 
    </div> 
    </div> 
     
    <div id="outer-container"> 
     
    <div id="menu-container">
    <div id="search-box">
    <form action="/search" id="search-form" method="get" target="_top"><input class="search" type="text" name="search" id="search"  placeholder="Search..." autocomplete="off"/>
    <input href="#" id="showAll" type="submit" value="X" /></form>
    </div>
    <div id="noMatches" style="display:none;">No matches found</div>
    <div id="menu-2">
    <section id="options">
    <div class="option-set" data-option-key="filter">
    <a class="menu-title-2" data-option-value="*">All</a>
    <a class="menu-title-2" data-option-value=".portfolio">Portfolio</a>
    <a class="menu-title-2" data-option-value=".blog">Blog</a>
    <a class="menu-title-2" data-option-value=".download">Download</a>
    </div>
    </section>
    </div>
    </div>
     
     
    <div id="container" class="iso-container clearfix infinite-scrolling">
     
    <div class="element portfolio" id="_12" onclick="gestionClic('compteur1');"><span class="name">
    <a class="lien-content" href="#/portfolio/chicken.html">
    <div class="element-image">
    <img src="./Post thumbnail images/Bumper.jpg" width="220" height="180"/>
    <div class="mask"><div hrefmore="more."></div><div hrefviews="&nbsp;views"></div><div id="compteur1" class="compteur"></div></div></div>
    </a>
    <div class="element-content" >
    <div class="element-title" >Minimal Bumper for iPhone 5</div>
    <div class="element-description" >16 febuary 2012 </div>
    <div id="viewnumber-container"></div>
    </div></span>
    </div>
     
    <div class="element blog" id="_5" onclick="gestionClic('compteur8');"><span class="name">
    <a class="lien-content" href="#/portfolio/chicken.html">
    <div class="element-image">
    <img src="./Post thumbnail images/Shapeways.jpg" width="220" height="180"/>
    <div class="mask"><div hrefmore="more."></div><div id="viewnumber"><div hrefviews="&nbsp;views"></div><div id="compteur8" class="compteur"></div></div></div>
    </div>
    </a>
    <div class="element-content" >
    <div class="element-title" >Shapeways.com</div>
    <div class="element-description" >16 febuary 2012</div>
    </div></span>
    </div>
     
    </div>
     
    <div id="infscr-loading">
    </div>
    <div id="next-container">
    <a id="next" href="pages/2.html" onclick="affiche_compteur('compteur11');affiche_compteur('compteur12');">More.</a>
    </div>
     
    </div>
     
    <div id="footer">
    <div id="footer-container">
    <a style="user-select:none;">&copy; Copyright FreakyShape 2012 </a>
    <span class="share" style="user-select:none;margin-left:20px;font-size:10px;letter-spacing:1px;text-transform:uppercase;">SOCIAL → <a style="user-select:none;text-decoration:none;cursor:pointer;color:rgb(97,205,245);font-weight:bold;" href="https://twitter.com/freakyshape" >Twitter.</a></span>
    </div>
    </div>
     
    </body>

    mon css :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    @font-face {
      font-family: 'RefreshMonoBold';
      src: url("../fonts/refreshmono-bold-webfont.woff") format("woff");
      font-weight: normal;
      font-style: normal; }
     
    @font-face {
      font-family: 'GibsonRegular';
      src: url("../fonts/gibson-regular-webfont.woff") format("woff");
      font-weight: normal;
      font-style: normal; }
     
    @font-face {
      font-family: 'GibsonLightRegular';
      src: url("../fonts/gibson-light-webfont.woff") format("woff");
      font-weight: normal;
      font-style: normal; }
     
    @font-face {
      font-family: 'Confortaa-Bold';
      src: url("../fonts/Comfortaa-Bold.ttf") format("truetype");
      font-weight: normal;
      font-style: normal; }
     
    @font-face {
      font-family: 'Confortaa-Regular';
      src: url("../fonts/Comfortaa-Regular.ttf") format("truetype");
      font-weight: normal;
      font-style: normal;
       }
     
    @font-face {
    	font-family: 'confortaa-light';
    	src: url('../fonts/Comfortaa-Light.woff') format('woff');}
     
    @font-face {
      font-family: 'DINk';
      src: url("../fonts/DINk.ttf") format("ttf");
      font-weight: normal;
      font-style: normal; }
     
     
     
    html, body {
    	/**** Infinite Scroll ****/
    	margin: auto;
    	padding: auto;
    	background: url('../andrew-craft-linen-texture.png') no-repeat center center fixed; 
    	-webkit-background-size: cover;
    	-moz-background-size: cover;
    	-o-background-size: cover;
    	background-size: cover;
    	height: 80%;
    	width: 100%;
    }
    #outer-container {
    	position: relative;
    	min-width: 960px;
    	max-width: 1280px;
    	overflow: visible;
    	min-height: 100%;
    	margin: auto;
    	padding: auto;
    }
     
    #header{
    	position: relative;
    	display: block;
    	height: 50px;
    	width: 100%;
    	margin: auto;
    	padding: auto;	
    	background: rgba(1,1,1,.6);
    	-webkit-box-shadow: 0px 0px 22px rgba(0,0,0,0.85);
    	-moz-box-shadow: 0px 0px 22px rgba(0,0,0,0.85);
    	box-shadow: 0px 0px 22px rgba(0,0,0,0.85);
    /** border-left: solid 1px #ACACAC;
    	border-right: solid 1px #ACACAC;
    	border-top: solid 1px #ACACAC;    **/	
    }
    #header-container{
    	position: relative;
    	min-width: 960px;
    	max-width: 1280px;
    	margin: auto;
    	padding: auto;
    }
    #slash-container{
    	position: absolute;
    	width: 15px;
    	height: 50px;
    	overflow: hidden;
    	top: 0px;
    	left: 245px;
    	margin: auto;
    	padding: auto;
    }
    #slash{
    	position: absolute;
    	width: 5px;
    	height: 70px;
    	box-shadow: 0px 0px 6px rgba(0,171,204,0.7);
    	margin-left: 5px;
    	padding: auto;
    	border-left: solid 1px rgb(0,171,204);
    }
    #socialicons-container{
    	position: absolute;
    	width: 150px;
    	height: 50px;
    	overflow: hidden;
    	top: 0px;
    	left: 300px;
    	margin: auto;
    	padding: auto;
    }
    .social-icons{
    	width: 35px;
    	height: 35px;
    	margin-left: 10px;
    	margin-top: 7px;
    	box-shadow: 0px 0px 8px rgba(200,200,200,0.15);
    	 border-radius: 88px;
    	-moz-border-radius: 88px;
    	-webkit-border-radius: 88px;
    	cursor: pointer;
    	-webkit-touch-callout: none;
    	-webkit-user-select: none;
    	-khtml-user-select: none;
    	-moz-user-select: none;
    	-ms-user-select: none;
    	user-select: none;
    }
    .social-icons:hover{
    	box-shadow: 0px 0px 10px rgba(0,171,204,1);
    }
    #title{
    	position: relative;
    	display: block;
    	heigth: 50px;
    	width: 150px;
    	margin-left: 20px;
    	top: 8px;
    	position: relative;
    	font-family: 'confortaa-light';
    	font-size: 27px;
    	font-weight: lighter;
    	-webkit-font-smoothing:antialiased;
    	font-smoothing:antialiased;
    	color: #EBEBEB;
    	cursor: pointer;
    	-webkit-touch-callout: none;
    	-webkit-user-select: none;
    	-khtml-user-select: none;
    	-moz-user-select: none;
    	-ms-user-select: none;
    	user-select: none;
    }
    #title2{
    	position: relative;
    	display: block;
    	margin-left: 20px;
    	height: 45px;
    	top: 15px;
    	position: relative;
    	font-family: 'confortaa-light';
    	font-size: 25px;
    	color: rgb(97,205,245);
    	text-shadow: 0px 0px 6px rgba(0,171,204,0.7);
    	cursor: pointer;
    	-webkit-touch-callout: none;
    	-webkit-user-select: none;
    	-khtml-user-select: none;
    	-moz-user-select: none;
    	-ms-user-select: none;
    	user-select: none;
    }
    #menu-container {
    	position: relative;
    	display: table-column;
    	background: #E5E5E5;
    	overflow:hidden;
    	width: 170px;
    	min-height: 100%;
    	top: 0;
    	bottom: 0;
    	margin-left: 0;
    	margin-right: 20px;
    	margin-top: 0;
    	margin-bottom: 0;
    	padding: auto;
    	float: left;
    }
    #menu-1 {
    	position: absolute;
    	height: 50px;
    	top: 0px;
    	right: 20px;
    	margin-left: 0;
    	margin-right: 0;
    	margin-top: 0;
    	margin-bottom: 0;
    	padding: 0;
    	float: right;
    }
    #menu-2 {
    	position: relative;
    	display: block;
    	top: 0;
    	bottom: 0;
    	margin-left: 0;
    	margin-right: 20px;
    	margin-top: 0;
    	margin-bottom: 0;
    	padding: 0;
    	float: left;
    }
    #logo-container {
    	position: relative;
    	display: block;
    	height: 170px;
    	width: 170px;
    	margin-left: 0px;
    	float: left;
    	background: #191919;
    	opacity: 0.7;
    }
    #menu-triangle {
    	position: relative;
    	display: block;
    	float: left;
    	border:none;
    	background: #191919;
    	opacity: 0.7;
    	border-bottom: 60px solid #eee;
    	border-left: 170px solid rgba(0,0,0,0);
    	text-decoration: none;
    }
    #menu-triangle2 {
    	position: relative;
    	display: block;
    	float: left;
    	background: #191919;
    	opacity: 0.7;
    	border-top: 30px solid #191919;
    	border-right: 15px solid transparent;
    	text-decoration: none;
    }
     
    .option-set {
    	position: relative;
    	float: left;
    	top: 0;
    	margin-left: auto;
    	margin-right: auto;
    	margin-bottom: auto;
    	margin-top: auto;
    	text-decoration: none;
    }
    .menu-title-1 {
    	position: relative;
     	height: 50px;
    	padding-left: 20px;
    	padding-right: 20px;
    	padding-top: 13px;
    	padding-bottom: 15px;
    	border-top: solid 5px #979797;
    	clear:both;
    	text-align: left;
    	line-height: 50px;
    	color: #FFF;
    	font-family: 'confortaa-light';
    	font-size: 13px;
    	letter-spacing: 1px;
    	cursor: pointer;
    	-webkit-touch-callout: none;
    	-webkit-user-select: none;
    	-khtml-user-select: none;
    	-moz-user-select: none;
    	-ms-user-select: none;
    	user-select: none;
    	text-decoration: none;
    }
    .menu-title-1:hover {
    	position: relative;
    	font-size: 14px;
    	font-weight:500;
    	border-top: solid 8px rgb(0,171,204);
    	color: #FFF;
    }
    .menu-title-2 {
    	position: relative;
        float: left;
     	height: 30px;
    	padding-left: 20px;
    	padding-right: 20px;
    	margin-bottom: 10px;
    	background: rgba(0,0,0,.6);
    	border-left: solid 5px #979797;
    	clear:both;
    	text-align: left;
    	line-height: 30px;
    	color: #FFF;
    	font-family: 'confortaa-light';
    	font-size: 13px;
    	letter-spacing: 1px;
    	cursor: pointer;
    	-webkit-touch-callout: none;
    	-webkit-user-select: none;
    	-khtml-user-select: none;
    	-moz-user-select: none;
    	-ms-user-select: none;
    	user-select: none;
    	text-decoration: none;
    	-webkit-box-shadow: 0px 0px 12px rgba(0,0,0,0.85);
    	-moz-box-shadow: 0px 0px 12px rgba(0,0,0,0.85);
    	box-shadow: 0px 0px 12px rgba(0,0,0,0.85);
    }
    .menu-title-2:hover {
    	position: relative;
    	padding-left: 30px;
    	font-size: 14px;
    	font-weight:500;
    	color: #FFF;
    	border-left: solid 5px rgb(0,171,204);
    }
    #container {
    	position: absolute;
    	margin-top: 0;
    	margin-right: auto;
    	margin-bottom: 35px;
    	background: #979797;
    }
    #search-box {
        position: relative;
    	display: block;
    	left: 0px;
        width: 170px;
    	height: 24px;
        margin-bottom: 20px;
    	line-height: 22px;
    	-webkit-box-shadow: 0px 0px 12px rgba(0,0,0,0.85);
    	-moz-box-shadow: 0px 0px 12px rgba(0,0,0,0.85);
    	box-shadow: 0px 0px 12px rgba(0,0,0,0.85);
    }
    #search {
        font-family: 'confortaa-light';
    	font-size: 14px;
        color: #fff;
    	line-height: 22px;
        border-width: 0;
        background: transparent;
    }
    #search-box input[type="text"] {
        width: 100%;
        padding: 0px 0 0px 1em;
    	line-height: 22px;
    	-webkit-appearance: none;
        border-radius: 0;
        color: #000;
        outline: none;
    }
    #search-form {
        height: 24px;
    	line-height: 22px;
        border: 1px solid #eee;
    	-webkit-appearance: none;
        border-radius: 0;
        background-color: #fff;
        -webkit-box-shadow: inset 2px 2px 4px #ccc;
        -moz-box-shadow: inset 2px 2px 4px #ccc;
        box-shadow: inset 2px 2px 4px #ccc;
        overflow: hidden;
    }
     
    #showAll {
        position: absolute;
        top: 2px;
        right: 2px;
        height: 22px;
        width: 22px;
    	padding: auto;
    	margin: auto;
        font-family: 'confortaa-light';
    	font-size: 14px;
        color: #fff;
        line-height: 22px;
        text-align: center;
        text-shadow: 1px 1px 0px #888;
        border-width: 0;
    	-webkit-appearance: none;
        border-radius: 0;
        background-color: #bbb;
        background: -moz-linear-gradient(top, #aaaaaa 0%, #b9b9b9);
        background: -webkit-gradient(linear, left top, left bottom, from(#aaaaaa), to(#b9b9b9));
        -webkit-box-shadow: inset 0px -1px 1px #888, 0px 2px 2px #ccc;
        -moz-box-shadow: inset 0px -1px 1px #888, 0px 2px 2px #ccc;
        box-shadow: inset 0px -1px 1px #888, 0px 2px 2px #ccc;
        cursor: pointer;
    }
    #showAll:hover {
    	background: rgb(0,171,204);
    }
    #noMatches {
    	position: relative;
    	display:inline-block;
    	width: 140px;
    	height: 20px;
    	top: -15px;
    	margin-left: 0px;
    	font-family: 'confortaa-light';
    	font-size: 14px;
    	font-weight: normal;
    	color: red;
    }
    .lien-content, .lien-content img{
    	position: relative;
    	display: block;
    	width: 100%;
    	background-color: none;
    	color: transparent;
    	user-select: none;
    	text-decoration: none;
    	cursor: pointer;
    	border: none;
    	margin: 0;
    	padding: 0;
    }
     
    .clearfix:before, .clearfix:after { content: ""; display: table; }
    .clearfix:after { clear: both; }
    .clearfix { zoom: 1; }
    /** border-left: solid 1px #ACACAC;
    	border-right: solid 1px #ACACAC;  **/
    #next-container {
    	display:block; 
    	position: relative;
    	width: auto;
    	margin: auto;
    	padding-left: 150px;
    	} 
    #next { 
    	display:block; 
    	width: 100px;
    	height: 25px;
    	margin-top: auto;
    	margin-bottom : 35px;
    	margin-left: auto; 
    	margin-right: auto;
    	padding: auto;
    	line-height: 25px;
    	border: 1px solid #ddd; 
    	text-align: center; 
    	font-family: 'confortaa-Regular';
    	font-size: 14px;
    	font-weight: bold;
    	color: #191919; 
    	text-shadow: #979797 0 0 2px;
    	text-decoration: none; 
    	-webkit-box-shadow: #000 0 0 1px,
    	inset #000 0 0 1px;
        -moz-box-shadow: #000 0 0 1px,
    	inset #000 0 0 1px;
    	box-shadow: #000 0 0 1px,
    	inset #000 0 0 1px;
        -webkit-transition: all 0.5s ease;
    	-moz-transition: all 0.5s ease;
        -ms-transition: all 0.5s ease;
        -o-transition: all 0.5s ease;
        border-radius: 88px;
    	-moz-border-radius: 88px;
    	-webkit-border-radius: 88px;
        border: 5px solid #191919;
     
    }
    #next:hover { 
    	-webkit-box-shadow: rgb(0,171,204) 0 0 4px;
        -moz-box-shadow: rgb(0,171,204) 0 0 4px;
    	box-shadow: rgb(0,171,204) 0 0 4px;
     
    }
    #footer-container{
    	position: relative;
    	min-width: 960px;
    	max-width: 1280px;
    	margin: auto;
    	padding: auto;
    	height: 15px;
    }
    #footer {
    	position: relative;
    	padding-right: 0;
    	padding-top: 16px;
    	padding-bottom: 16px;
    	padding-left: 0;
    	font-family: 'confortaa-light';
    	font-size: 11px;
    	font-weight: normal;
    	color: #FFF;
    	background: rgba(0,0,0,.6);
    	-webkit-box-shadow: 0px 0px 22px rgba(0,0,0,0.85);
    	-moz-box-shadow: 0px 0px 22px rgba(0,0,0,0.85);
    	box-shadow: 0px 0px 22px rgba(0,0,0,0.85);
    	-webkit-touch-callout: none;
    	-webkit-user-select: none;
    	-khtml-user-select: none;
    	-moz-user-select: none;
    	-ms-user-select: none;
    	user-select: none;
    }
    #infscr-loading {
      position: fixed;
      bottom: 85px;
      left: 42%;
      z-index: 100;
      padding-left: 100px;
      padding-right: 20px;
      padding-top: 20px;
      padding-bottom: 20px;
      color: #222;
      font-size: 15px;
      font-weight: bold;
      -webkit-border-radius: 10px;
         -moz-border-radius: 10px;
              border-radius: 10px;
    }
    Je joins mes fichiers si cela peut aider.
    Fichiers attachés Fichiers attachés

  2. #2
    Membre confirmé
    Homme Profil pro
    Inscrit en
    Septembre 2011
    Messages
    81
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Isère (Rhône Alpes)

    Informations forums :
    Inscription : Septembre 2011
    Messages : 81
    Par défaut
    Bon j'ai passé toute la soirée à chercher une solution... mais je n'en ai pas trouvé.

    J'ai recommencé ma pagination à zéro et j'ai tout allégé en laissant seulement les conteneurs principaux pour plus de clarté.

    Mon problème est le suivant:

    je n'arrive pas à avoir la hauteur de "menu-conteneur" qui prend toute celle du conteneur parent (ici le "outer-container").
    Cela cause un problème d'agencement des conteneurs entre eux. Mon "container" viens en dessous du "menu container" selon la taille de la fenêtre du browser.

    voici un exemple : http://fiddle.jshell.net/DRmj3/2/

    mon code :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    @font-face {
      font-family: 'RefreshMonoBold';
      src: url("../fonts/refreshmono-bold-webfont.woff") format("woff");
      font-weight: normal;
      font-style: normal; }
     
    @font-face {
      font-family: 'GibsonRegular';
      src: url("../fonts/gibson-regular-webfont.woff") format("woff");
      font-weight: normal;
      font-style: normal; }
     
    @font-face {
      font-family: 'GibsonLightRegular';
      src: url("../fonts/gibson-light-webfont.woff") format("woff");
      font-weight: normal;
      font-style: normal; }
     
    @font-face {
      font-family: 'Confortaa-Bold';
      src: url("../fonts/Comfortaa-Bold.ttf") format("truetype");
      font-weight: normal;
      font-style: normal; }
     
    @font-face {
      font-family: 'Confortaa-Regular';
      src: url("../fonts/Comfortaa-Regular.ttf") format("truetype");
      font-weight: normal;
      font-style: normal;
       }
     
    @font-face {
    	font-family: 'confortaa-light';
    	src: url('../fonts/Comfortaa-Light.woff') format('woff');}
     
    @font-face {
      font-family: 'DINk';
      src: url("../fonts/DINk.ttf") format("ttf");
      font-weight: normal;
      font-style: normal; }
     
     
     
    html, body {
    	position : relative;
    	margin: 0;
    	padding: 0;
    	background: url('../striped2.png') repeat;
    	height: auto;
    	width: 100%;
    }
    #header {
    	position : relative;
    	height: 100px;
    	width: 100%;
    	margin: auto;
    	padding: auto;
    	background: #999;
    	color: #FFF;
    }
    #outer-container {
    	position: relative;
    	display: block;
    	min-width: 960px;
    	max-width: 1280px;
    	height: auto;
    	margin: auto;
    	padding: auto;
    	background: #45ED52;
    }
    .bbq-content {
    	position: relative;
    	height: 400px;
    	width: 100%;
    	margin-left: 0;
    	margin-right: 0;
    	margin-top: 20px;
    	margin-bottom: 20px;
    	padding: 0;
    	background: #F82F18;
    	color: #FFF;
    }
    #menu-container {
    	position : relative;
    	height: 500px;
    	width: 170px;
    	margin-right: 20px;
    	margin-left: 0px;
    	padding: 0;
    	float: left;
    	background: #000;
    	color: #FFF;
    }
    #container {
    	position : relative;
    	display:block;
    	height: auto;
    	margin-left: 0;
    	margin-right: 0;
    	margin-top: 0px;
    	margin-bottom: 20px;
    	padding: auto;
    	float: left;
    	background: #5471FA;
    }
    #footer {
       position:relative;
       clear: both;
       margin: auto;
       padding: auto;
       width:100%;
       height:100px;   /* Height of the footer */
       background:#6cf;
       color: #FFF;
    }

    Code html : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    <!doctype html>
    <html lang="en">
    <head>
     
    <meta charset="utf-8" />
      <title>FreakyShape</title>
     
    <link rel="stylesheet" href="css/style.css" />
     
     
    <!--<meta name="viewport" content="maximum-scale=1.0,  user-scalable=no, width=device-width">-->
    <meta name="viewport" content="user-scalable=no, maximum-scale=1.0" />
     
    <body class="homepage" onload="affiche_compteur('compteur1'); affiche_compteur('compteur2');affiche_compteur('compteur3');affiche_compteur('compteur4');affiche_compteur('compteur5');affiche_compteur('compteur6');affiche_compteur('compteur7');affiche_compteur('compteur8');affiche_compteur('compteur9');affiche_compteur('compteur10');affiche_compteur('compteur11');affiche_compteur('compteur12');affiche_compteur('compteur13');">
     
    <!--<div id="loading" align="center"><p>Loading... Please wait</p><b><br><img src="images/loading.gif"></div>-->
     
     
    <div id="header">Header
    </div>
     
    <div id="outer-container">
     
    <div class="bbq-content">bbq-content
    </div> 
     
     
    <div id="menu-container">menu-container
    </div>
     
     
    <div id="container" class="iso-container clearfix infinite-scrolling">
     
    <div class="element blog" id="_13" onclick="gestionClic('compteur13');">
    <img src="./Post thumbnail images/formlabs.jpg" width="220" height="180"/>
    </div>
     
    <div class="element portfolio" id="_12" onclick="gestionClic('compteur1');">
    <img src="./Post thumbnail images/Bumper.jpg" width="220" height="180"/>
    </div>
     
    <div class="element portfolio" id="_11" onclick="gestionClic('compteur2');">
    <img src="./Post thumbnail images/Ultraslimcase.jpg" width="220" height="180"/>
    </div>
     
    <div class="element portfolio" id="_10" onclick="gestionClic('compteur3');">
    <img src="./Post thumbnail images/Dock.jpg" width="220" height="180"/>
    </div>
     
    <div class="element blog" id="_9" onclick="gestionClic('compteur4');">
    <img src="./Post thumbnail images/Freakyshapeshop.jpg" width="220" height="180"/>
    </div>
     
    <div class="element portfolio" id="_8" onclick="gestionClic('compteur5');">
    <img src="./Post thumbnail images/RaspberryPiDesigncaseV2 black.jpg" width="220" height="180"/>
    </div>
     
    <div class="element portfolio" id="_7" onclick="gestionClic('compteur6');">
    <img src="./Post thumbnail images/RaspberryPicaseGPIO.JPG" width="220" height="180"/>
    </div>
     
    <div class="element portfolio" id="_6" onclick="gestionClic('compteur7');">
    <img src="./Post thumbnail images/CasevGraphène.jpg" width="220" height="180"/>
    </div>
     
    <div class="element blog" id="_5" onclick="gestionClic('compteur8');">
    <img src="./Post thumbnail images/Shapeways.jpg" width="220" height="180"/>
    </div>
     
    <div class="element download" id="_4" onclick="gestionClic('compteur9');">
    <img src="./Post thumbnail images/raspberryPiboard.JPG" width="220" height="180"/>
    </div>
     
    <div class="element download" id="_3" onclick="gestionClic('compteur10');">
    <img src="./Post thumbnail images/RaspberryPicaseSTL.JPG" width="220" height="180"/>
    </div>
     
    </div>
     
    <div id="infscr-loading">
    </div>
     
    </div>
     
    <div id="footer">footer
    </div>
     
     
    </body>
     
     
    </html>


    J'arrive vraiment pas à m'en sortir!

    EDIT: J'ai mis une valeur en px pour le "menu-container" (qui me pose problème) car avec un height de 100% il disparaît...

  3. #3
    Membre confirmé
    Homme Profil pro
    Inscrit en
    Septembre 2011
    Messages
    81
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Isère (Rhône Alpes)

    Informations forums :
    Inscription : Septembre 2011
    Messages : 81
    Par défaut
    Bon j'ai réussi à faire ça. Cependant maintenant je n'arrive pas à ce que mon conteneur parent s'adapte automatiquement à la largeur de son contenu!

    voila on j'en suis : http://fiddle.jshell.net/tj8p5/

  4. #4
    Modérateur

    Avatar de NoSmoking
    Homme Profil pro
    Inscrit en
    Janvier 2011
    Messages
    17 215
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Isère (Rhône Alpes)

    Informations forums :
    Inscription : Janvier 2011
    Messages : 17 215
    Par défaut
    Bonjour,
    ne pourrais tu pas mettre un petit schéma pour bien visualiser ce que tu souhaites. (un petit 600x400 en 16 couleurs)

Discussions similaires

  1. Forcer la hauteur de div vides à 100%
    Par Sapher dans le forum Mise en page CSS
    Réponses: 1
    Dernier message: 05/11/2008, 15h27
  2. Hauteur de DIV 100% dans TD impossible dans firefox
    Par frognico dans le forum Mise en page CSS
    Réponses: 8
    Dernier message: 03/07/2007, 17h34
  3. [HTML] Problème avec DIV, impossible de mettre la hauteur à 100% !!
    Par keyser.greg dans le forum Balisage (X)HTML et validation W3C
    Réponses: 14
    Dernier message: 01/03/2007, 11h46
  4. Hauteurs des div pour obtenir 100% de la page
    Par lionheart33806 dans le forum Mise en page CSS
    Réponses: 2
    Dernier message: 14/12/2006, 12h25
  5. problème de hauteur de divs à 100%
    Par miltonis dans le forum Mise en page CSS
    Réponses: 4
    Dernier message: 26/09/2006, 16h21

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo