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 :

Scroll bar desactivée


Sujet :

Défilement en CSS

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre confirmé
    Homme Profil pro
    Développeur Web
    Inscrit en
    Mars 2007
    Messages
    70
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Tunisie

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Mars 2007
    Messages : 70
    Par défaut Scroll bar desactivée
    Salut
    J'ai déclaré les éléments dans ma page de style en fixant leurs taille en pourcentage, et leurs emplacement sur la page avec position:fixed; etc
    le problème c'est que après quand les éléments dépassent en dessous, le scroll bar n'apparait pas et il est impossible d'atteindre le reste de la page
    je sais que j'ai été idiot quelques part mais pff c'est ma première css donc ...
    merci d'avance

    ici les pages css et html
    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
    body {background-color:#FFFF66;overflow-y : scroll;}
    .liste {
    list-style-image: url("imgcss/profile-5-bouton-vert.jpg");
    }
    h1
    {
    color:#FFFFFF;
    font:Arial, Helvetica, sans-serif;
    font-size:16px;
    }
    h2
    {
    color:#000000;
    font:Arial, Helvetica, sans-serif;
    font-size:17px;
    }
     
    a:link {text-decoration: none;}
    a:visited {text-decoration: none;} 
    a:hover {text-decoration: none;}
    a:active {text-decoration: none;}
     
    #header0  /*Ligne dans laquelle il y a le login / disconnect / search bar*/
    {
    position: relative;
    background-color:#000000;
    font:Arial, Helvetica, sans-serif;
    font-size:8;
    width:90%;
    position:fixed;
    top:0px;
    right:5%;
    margin-left:auto; 
    margin-right: auto; 
    max-height:500px;
    min-height:20%;
    padding:0px;
    border-width:0px;
    margin:0px;
    }
    #header-left
    {
    background-color:#FFCC00;
    font:Arial, Helvetica, sans-serif;
    font-size:8;
    width:32%;
    margin-left:auto; 
    margin-right:auto;
    position:fixed;
    top:4%;
    right:63%;
    height:20%	; 
    padding:0px;
    border-width:0px;
    margin:0px;
     
    }
    #header-center
    {
    background-color:#FFCC00;
    font:Arial, Helvetica, sans-serif;
    font-size:8;
    width:32%;
    align:right;
    height:20%; 
    position:fixed;
    top:4%;
    right:36%;
    padding:0px;
    border-width:0px;
    margin:0px;
    }
    #header-right
    {
    background-color:#FFCC00;
    font:Arial, Helvetica, sans-serif;
    font-size:8;
    width:32%;
    height:20%;
    position:fixed;
    top:4%;
    right:5%;
    padding:0px;
    border-width:0px;
    margin:0px;
    }
    /*******************************************************************************************************************/
    /*Espace publicitaire **********************************************************************************************/
    #Pubtop
    {
    background-color:#FFFFFF;
    min-height:10%; 
    min-width:90%;
    position:fixed;
    top:25%;
    right:5%;
    padding:0px;
    border-width:0px;
    margin:0px;
    }
    /*****************************************************************************************************************/
    /*Espace du milieu************************************************************************************************/
    #content
    {
    background-color:#FFCC00;
    position:fixed;
    top:36%;
    right:5%;
    min-height:50%; 
    min-width:90%;
    padding:0px;
    border-width:0px;
    margin:0px;
    }
    #block1
    {
    background-color:#4B4B4B;
    background-image:url(imgcss/home-1-tag-cloud.jpg);
    background-repeat:no-repeat;
    position:fixed;
    top:37%;
    right:72%;
    min-height:35%; 
    min-width:21%;
    max-height:35%; 
    max-width:21%;
    border-style: solid ; 
    border-color: #4B4B4B;
    padding:1px;
    border-width:1px;
    margin:1px;
    }
    #block2
    {
    background-color:#FFFFFF;
    position:fixed;
    top:37%;
    right:50%;
    min-height:35%; 
    min-width:21%;
    min-height:35%; 
    min-width:21%;
    border-style: solid ; 
    border-color: #4B4B4B;
    padding:1px;
    border-width:1px;
    margin:1px;
     
    }
    #block3
    {
    background-color:#FFFFFF;
    position:fixed;
    top:37%;
    right:28%;
    min-height:35%; 
    min-width:21%;
    border-style: solid ; 
    border-color: #4B4B4B;
    padding:1px;
    border-width:1px;
    margin:1px;
    }
    #block4
    {
    background-color:#FFFFFF;
    position:fixed;
    top:37%;
    right:6%;
    min-height:35%; 
    min-width:21%;
    border-style: solid ; 
    border-color: #4B4B4B;
    padding:1px;
    border-width:1px;
    margin:1px;
    }
    #pubmiddle
    {
    background-color:#FFCC00;
    position:fixed;
    top:74%;
    right:5%;
    min-height:20%; 
    min-width:90%;
    }
    /***************************************************************************************************************/
    /*Blocks en dessous de la pubmiddle*****************************************************************************/
    #block21
    {
    background-color:#4B4B4B;
    background-image:url(imgcss/home-1-tag-cloud.jpg);
    background-repeat:no-repeat;
    position:fixed;
    top:95%;
    right:72%;
    min-height:35%; 
    min-width:21%;
    max-height:35%; 
    max-width:21%;
    border-style: solid ; 
    border-color: #4B4B4B;
    padding:1px;
    border-width:1px;
    margin:1px;
    }
    #block22
    {
    background-color:#FFFFFF;
    position:fixed;
    top:95%;
    right:50%;
    min-height:35%; 
    min-width:21%;
    min-height:35%; 
    min-width:21%;
    border-style: solid ; 
    border-color: #4B4B4B;
    padding:1px;
    border-width:1px;
    margin:1px;
    }
    #block23
    {
    background-color:#FFFFFF;
    position:fixed;
    top:95%;
    right:28%;
    min-height:35%; 
    min-width:21%;
    border-style: solid ; 
    border-color: #4B4B4B;
    padding:1px;
    border-width:1px;
    margin:1px;
    }
    #block24
    {
    background-color:#FFFFFF;
    position:fixed;
    top:95%;
    right:6%;
    min-height:35%; 
    min-width:21%;
    border-style: solid ; 
    border-color: #4B4B4B;
    padding:1px;
    border-width:1px;
    margin:1px;
    }
    et la page html comme suit
    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
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    	   "http://www.w3.org/TR/html4/strict.dtd">
     
    <html>
    <head>
    <link rel="stylesheet" type="text/css" href="style.css">
    </head>
    <body>
    <div id=header0>
      <h1><a href=>Login</a></h1>
      <div id=header-left align=left><br><br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <img src=imgcss/header-1-logo.jpg>
      </div>
      <div id=header-center><h1>Site Lougha w Al3ab Etc EtcETc</h1><br><h1>Site Lougha w Al3ab Etc EtcETc</h1><br><h1>Site Lougha w Al3ab Etc EtcETc</h1><br></div>
      <div id=header-right align=center>
         <img src=imgcss/header-2-globe.jpg>
      </div>
    </div>
    <div id=Pubtop>Espace Publicitaire</div>
    <div id=content>
        <div id=block1><br><br><br><h1>Nuage de tags</h1>
    	</div>
    	<div id=block2><h2>Statistics</h2>
    	<b>Visites :</b><br> 98798<br>
    	<b>Posts :</b><br> 98798<br>
    	<b>Comments :</b><br> 98798<br>
    	<b>Users (registred):</b><br> 98798<br>
    	<b>Average visite time :</b><br> 30 min<br>
    	<a href>Lire La suite</a>
    	</div>
     
    	<div id=block3><h2>Newest post</h2>
    	<ul class="liste">
    	<Li>Trombita bel hrissa</Li>
    	<Li>Ena esmi el 7aj 3jej</Li>
    	<Li>heheh habbay ha 7anni</Li>
    	<Li>Jew i3awnou fih 3la 9bar bouh </Li>
    	<Li>Hrabbelhom bel fés</Li>
    	<Li>heheh habbay ha 7anni</Li>
    	<Li>Jew i3awnou fih 3la 9bar bouh </Li>
    	<Li>Hrabbelhom bel fés</Li>
    	</ul>
    	<a href>Lire La suite</a>
    	</div>
     
    	<div id=block4><h2>Most commented</h2>
    	<ul class="liste">
    	<Li>Trombita bel hrissa</Li>
    	<Li>Ena esmi el 7aj 3jej</Li>
    	<Li>heheh habbay ha 7anni</Li>
    	<Li>Jew i3awnou fih 3la 9bar bouh </Li>
    	<Li>Hrabbelhom bel fés</Li>
    	<Li>heheh habbay ha 7anni</Li>
    	<Li>Jew i3awnou fih 3la 9bar bouh </Li>
    	<Li>Hrabbelhom bel fés</Li>
    	</ul>
    	<a href>Lire La suite</a>
    	</div>
    	<div id=pubmiddle><table><tr><td><img src=imgcss/home-1-motto-en.jpg width=515 height=155></td>
    	                             <td width=400 align=right><h1>Espace publicitaire ICI</h1></td></table></div>
     
    	<div id=block21></div>
    	<div id=block22></div>
    	<div id=block23></div>
    	<div id=block24></div>
     
     
    </div>
     
    </body>
    </html>

  2. #2
    Membre Expert
    Profil pro
    Inscrit en
    Mars 2002
    Messages
    1 132
    Détails du profil
    Informations personnelles :
    Âge : 53
    Localisation : France

    Informations forums :
    Inscription : Mars 2002
    Messages : 1 132
    Par défaut
    Bonjour,

    Regarde du côté de la propriété CSS "overflow"

    Code pour des barres de défilement comme ici : Sélectionner tout - Visualiser dans une fenêtre à part
    overflow:auto;

    devyan

  3. #3
    Membre confirmé
    Homme Profil pro
    Développeur Web
    Inscrit en
    Mars 2007
    Messages
    70
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Tunisie

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Mars 2007
    Messages : 70
    Par défaut
    avant j'avais la barre mais sans l'ascenseur ! en changeant
    le par j'ai même pas la barre verticale :-/

  4. #4
    Membre éprouvé Avatar de tsunamichups
    Inscrit en
    Octobre 2009
    Messages
    161
    Détails du profil
    Informations forums :
    Inscription : Octobre 2009
    Messages : 161
    Par défaut
    A mon avis tu ferais bien d'épurer ton code css
    dans header tu a défini 2 foi la propriété position (relative et fixed)

    A ta place je reverrais ma page de A à Z ce serais le mieux (histoire de repartir sur de bonnes bases )

  5. #5
    Membre confirmé
    Homme Profil pro
    Développeur Web
    Inscrit en
    Mars 2007
    Messages
    70
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Tunisie

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Mars 2007
    Messages : 70
    Par défaut
    t'avais raison
    moi aussi j'avais raison, j'étais idiot !
    les position fixed fallais pas !
    j'ai tout refais
    merci

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Fenetre sans Scroll Bar
    Par nicolas78986 dans le forum MFC
    Réponses: 15
    Dernier message: 01/06/2007, 03h15
  2. Scroll bar dans un TPageControl
    Par richard038 dans le forum Composants VCL
    Réponses: 2
    Dernier message: 11/08/2005, 12h53
  3. Comment faire fonctionner une scroll bar ???
    Par toto4650 dans le forum MFC
    Réponses: 10
    Dernier message: 18/07/2005, 16h47
  4. [Débutant][JScript] Désactive ma scroll bar
    Par virgul dans le forum Général JavaScript
    Réponses: 2
    Dernier message: 20/06/2005, 16h55
  5. [BCB5] Défilement automatique des scroll bars
    Par Christophe Brun dans le forum C++Builder
    Réponses: 2
    Dernier message: 05/12/2004, 16h59

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