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 :

modification d'un template XHTML/CSS


Sujet :

CSS

  1. #1
    Nouveau Candidat au Club
    Homme Profil pro
    Graphiste Freelance
    Inscrit en
    Janvier 2012
    Messages
    6
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Graphiste Freelance

    Informations forums :
    Inscription : Janvier 2012
    Messages : 6
    Points : 1
    Points
    1
    Par défaut modification d'un template XHTML/CSS
    Bonsoir,

    Je suis graphiste/illustrateur freelance.

    J'ai trouvé sur le site Behance un template gratuit codé en XHTML/CSS.
    http://www.behance.net/EmileRohlandt/frame/725667

    Je souhaite l'utiliser pour mon portfolio, cependant je voudrais changer
    les dimensions du "sidenav", "content" et "nivoslider".

    J'ai quelques bases en HTML et CSS, mais je ne parviens pas à faire ces modifications avec Notepad.

    Pourriez-vous m'aider s'il vous plait ?

    Voici en détail la liste des modifications que je voudrais réaliser :

    - sidenav : 213px de largeur
    - content : 1000px de largeur
    - nivoslider : 900px x 450px
    - un espace de 20px entre le sidenav et le nivoslider

    Pour mieux vous expliquer, voici un montage que j'ai réalisé :
    http://hpics.li/9f62730

    Je vous remercie d'avance pour votre aide précieuse,

    Michaël

  2. #2
    Membre éprouvé
    Avatar de michel.di
    Homme Profil pro
    Freelance
    Inscrit en
    Juin 2009
    Messages
    782
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 37
    Localisation : France, Nord (Nord Pas de Calais)

    Informations professionnelles :
    Activité : Freelance
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Juin 2009
    Messages : 782
    Points : 1 042
    Points
    1 042
    Par défaut
    Salut,
    Pour changer les largeurs tu dois changer la propriété width.
    Pour la hauteur c'est height.
    Pour les espaces margin

    Au pire poste le fichier css si tu veux qu'on y jette un oeil

  3. #3
    Nouveau Candidat au Club
    Homme Profil pro
    Graphiste Freelance
    Inscrit en
    Janvier 2012
    Messages
    6
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Graphiste Freelance

    Informations forums :
    Inscription : Janvier 2012
    Messages : 6
    Points : 1
    Points
    1
    Par défaut
    Merci Michel,

    j'ai essayé tes conseils, malheureusement sans résultat.
    Le sidenav à gauche ne bouge pas...

    Cependant, j'ai découvert que si je modifie le "width" du "content" ligne 58
    il s'agrandit et se superpose sur le sidenav.
    voici le résultat : http://hpics.li/888d815

    Je poste le fichier style.CSS, je l'ai mis également en pièce jointe,
    encore merci

    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
    body {
    	margin: 0; padding: 0;
    	background: url(../images/body_bg.gif) repeat-y right #000000;
    	font: normal 11px Georgia, Arial, Helvetica, sans-serif;
    	color: #444;
    }
     
    /*::::::::: Links :::::::::*/
    a { color: #456c55; text-decoration: none; }
    a:hover { color: #FFFFFF; text-decoration: underline; }
    a:focus { outline: none; }
     
     
    /*::::::::: Container :::::::::*/
    .container {width: 980px; height: 100%; margin: 0 auto; overflow: hidden; font-size: 1.2em; position: relative;}
     
    /*::::::::: SideNav :::::::::*/
    #sidenav {
    	width: 150px;
    	position: fixed;
    	float: left;
    	background: #000000;
    	padding: 30px;
    	height: 100%;
    }
    *html #sidenav {
    	position: absolute; 
    	left: expression( ( 0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );
    	top: expression( ( 0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );
    }	
     
    #sidenav ul {
    	margin: 0; padding: 0;
    	list-style: none;
    	font-size: 13px;
    }
    #sidenav ul li{
    	margin: 0; padding:  0;
    	display: inline;
    }
    #sidenav ul li a{
    	display: block;
    	margin: 0; padding: 10px 0;
    	text-decoration: none;
    	color: #333;
    	border-bottom: 1px solid #101010;
    }
    #sidenav ul li a:hover { color: #456c55; }
    #sidenav ul li a.home{ background: url(../images/icon_home.gif) no-repeat top right; }
    #sidenav ul li a.portfolio{ background: url(../images/icon_portfolio.gif) no-repeat top right; }
    #sidenav ul li a.services{ background: url(../images/icon_services.gif) no-repeat top right; }
    #sidenav ul li a.contact{ background: url(../images/icon_contact.gif) no-repeat top right; }
     
     
    /*::::::::: Content :::::::::*/
    #content {
    	float: right;
    	width: 810px;
    	padding: 30px;
    	background: #0b0b0b;
    	position: relative;
    }
    #content h2 {
    	color: #456c55;
    	margin: 10px 0;  padding: 10px 0;
    	font-size: 2em;
    	font-weight: normal;
    }
    #content p {
    	line-height: 1.8em;
    	padding: 7px 0;
    	margin: 7px 0;
    }
     
    /*::::::::: SocialLinks :::::::::*/
     
    #social {
    	width: 150px;
    	height: 200px;
    	margin-top: 20px;
    }
     
    .social_facebook a {
    	display: block;
    	background: url(../images/social_facebook.gif) no-repeat top center;
    	width: 150px;
    	height: 50px;
    	text-decoration: none;
    }
    .social_facebook a:hover { background: url(../images/social_facebook.gif) no-repeat bottom center;text-decoration: none; }
     
    .social_twitter a {
    	display: block;
    	background: url(../images/social_twitter.gif) no-repeat top center;
    	width: 150px;
    	height: 50px;
    	text-decoration: none;
    }
    .social_twitter a:hover { background: url(../images/social_twitter.gif) no-repeat bottom center;text-decoration: none; }
     
    .social_lastfm a {
    	display: block;
    	background: url(../images/social_lastfm.gif) no-repeat top center;
    	width: 150px;
    	height: 50px;
    	text-decoration: none;
    }
    .social_lastfm a:hover { background: url(../images/social_lastfm.gif) no-repeat bottom center;text-decoration: none; }
     
    .social_flickr a {
    	display: block;
    	background: url(../images/social_flickr.gif) no-repeat top center;
    	width: 150px;
    	height: 50px;
    	text-decoration: none;
    }
    .social_flickr a:hover { background: url(../images/social_flickr.gif) no-repeat bottom center;text-decoration: none; }
     
    .logo { margin-bottom: 20px; }
     
    /*::::::::: SidenavFooter :::::::::*/
    #footer {
    	width: 150px;
    	height: auto;
    	margin-top: 40px;
    	font-size: 10px;
    	text-align: center;
    }
     
    /*::::::::: PORTFOLIO :::::::::*/
     
    /*--------- Captions ---------*/
     
    #portfolio {
    	width: 770px;
    	height: auto;
    }
     
    .photo {
        position:relative;
        overflow:hidden;
        border:5px solid #FFF;
        width:215px;
        height:120px;
        top: 0;
        text-align: left;
        cursor: default;
    }
     
    .photo .heading, .photo .imagecaption {
            position:absolute;
            background:#000;
            height:40px;
            width:215px;
            opacity:0.9;
    }
     
    .photo .heading { 
            top:-50px;
            font-size: 15px;
    }
     
    .photo .imagecaption { 		
            bottom:-50px;		
            left:0px;
    }
     
    .photo .heading span {
            color:#456c55;	
            top:-50px;
            font-weight:bold;
            display:block;
            padding:10px 0 0 10px;
    }
     
    .photo .imagecaption span{
            color:#999;
            font-size:11px;
            display:block;
            padding:13px 32px 0 10px;
            float: left;
    }
     
    .photocaption {
        width: 203px;
        height: auto;
        font-size: 11px;
        color: #777777;
        text-align: left;
        background: #111111;
        padding: 10px;
        position: relative;
        bottom: 0;
        float: left;
        border: 1px solid #191919;
        border-top: 0;
    }
     
    .photowrapper {
        width: 225px;
        height: auto;
        background: #000000;
        float: left;
        margin: 0 20px 20px 0;
        position: relative;
    }
     
    .latest {
        width: 60px;
        height: 60px;
        position: absolute;
        top: -2px;
        right: -1px;
        background: url(../images/portfolio/latest.png) no-repeat;
        z-index: 100;
    }
     
    .featured {
        width: 60px;
        height: 60px;
        position: absolute;
        top: -2px;
        right: -1px;
        background: url(../images/portfolio/featured.png) no-repeat;
        z-index: 100;
    }
     
    .mini {
        width: 15px;
        height: 13px;
        float: left;
        font-family: Arial;
        margin-right: 18px;
        margin-top: 9px;
        text-align: center;
        font-size:10px;
    }
     
    .mini a {
        width: 15px !important;
        height: 13px !important;
        padding: 3px;
        display: block;
        background: #000000;
        border: 1px solid #222222;
        text-decoration: none;
        color: #FFFFFF;
    }
     
    .mini a:hover {
        background: #FFFFFF;
        border: 1px solid #FFFFFF;
        text-decoration: none;
        color: #000000;
    }
     
    /*::::::::: FORMS :::::::::*/
     
    .slider {
    	overflow: hidden;
    }
     
    label {
    	color: #555555;
    	font-size: 11px;
    	margin-left: 20px;
    }
     
    input, textarea {
    	border: 1px solid #222222;
    	background: #000000;
    	margin-bottom: 10px;
    	padding: 6px;
    	padding-left: 25px;
    	color: #FFFFFF;
    	-webkit-border-radius: 3px;
    	-moz-border-radius: 3px;
    	border-radius: 3px;
    	font: 11px Georgia;
    	width: 231px;
    }
     
    /*::::::::: Form Icons :::::::::*/
    #name { background: url(../images/icon_form_name.gif) no-repeat top left #000000; }
    #email { background: url(../images/icon_form_email.gif) no-repeat top left #000000; }
    #phone { background: url(../images/icon_form_phone.gif) no-repeat top left #000000; }
    #url { background: url(../images/icon_form_url.gif) no-repeat top left #000000; }
    #comment { background: url(../images/icon_form_comment.gif) no-repeat top left #000000; }
     
    #btn {
    	background: #456c55;
    	width: 264px;
    	border: 0;
    	cursor: pointer;
    	padding: 6px;
    	-webkit-border-radius: 3px;
    	-moz-border-radius: 3px;
    	border-radius: 3px;
    	color: #FFFFFF;
    	font: 11px Georgia;
    }
     
    #contactform {
    	width: 264px;
    	height: auto;
    	float: left;
    }
     
    #contactdetails {
    	width: 420px;
    	height: auto;
    	float: right;
    }
     
    #contactdetails p {
    	line-height: 18px;
    	margin: 20px 20px 0 0;
    	padding: 0;
    	float: left;
    }
     
    #contactdetails p strong {
    	color: #FFFFFF;
    }
     
    /*::::::::: Content Footer :::::::::*/
     
    #footfiller {
    	width: 710px;
    	height: 400px;
    	background: url(../images/footfiller.gif) no-repeat top center;
    	margin-bottom: -30px;
    	margin-top: 20px;
    }
     
    /*::::::::: Tables :::::::::*/
     
    #content table {
    	width: 100%;
    	border: 3px solid #222222;
    	padding: 0;
    	margin: 0;
    	background: #000000;
    }
     
    #content th { border-bottom: 1px solid #222222; border-right: 1px solid #090909; padding: 10px; }
    .bottoms { border-top: 1px solid #222222; }
    #content th strong { font-size: 22px; font-weight: bold; color: #FFFFFF; }
    #content td { border-right: 1px solid #090909; border-bottom: 1px solid #090909; padding: 10px; text-align: center; }
    .textright { text-align: right !important; }
     
    .requestbutton a {
    	width: 130px;
    	height: 30px;
    	display: block;
    	background: url(../images/requestbutton.gif) no-repeat top left;
    	text-decoration: none;
    	margin: auto;
    }
     
    .requestbutton a:hover {
    	background: url(../images/requestbutton.gif) no-repeat bottom left;
    	text-decoration: none;
    }
     
    /*::::::::: Misc :::::::::*/
     
    .clearall {
    	clear: both;
    }
    Fichiers attachés Fichiers attachés

  4. #4
    Membre éprouvé
    Avatar de michel.di
    Homme Profil pro
    Freelance
    Inscrit en
    Juin 2009
    Messages
    782
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 37
    Localisation : France, Nord (Nord Pas de Calais)

    Informations professionnelles :
    Activité : Freelance
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Juin 2009
    Messages : 782
    Points : 1 042
    Points
    1 042
    Par défaut
    Change la balise QUOTE par une balise CODE sur ton message

  5. #5
    Membre éprouvé
    Avatar de michel.di
    Homme Profil pro
    Freelance
    Inscrit en
    Juin 2009
    Messages
    782
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 37
    Localisation : France, Nord (Nord Pas de Calais)

    Informations professionnelles :
    Activité : Freelance
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Juin 2009
    Messages : 782
    Points : 1 042
    Points
    1 042
    Par défaut
    Citation Envoyé par street23 Voir le message
    Merci Michel,

    j'ai essayé tes conseils, malheureusement sans résultat.
    Le sidenav à gauche ne bouge pas...

    Cependant, j'ai découvert que si je modifie le "width" du "content" ligne 58
    il s'agrandit et se superpose sur le sidenav.
    C'est à cause des différents float et position qui se baladent un peu partout

  6. #6
    Nouveau Candidat au Club
    Homme Profil pro
    Graphiste Freelance
    Inscrit en
    Janvier 2012
    Messages
    6
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Graphiste Freelance

    Informations forums :
    Inscription : Janvier 2012
    Messages : 6
    Points : 1
    Points
    1
    Par défaut
    Merci Michel pour tes indications,

    avec un peu de logique et quelques recherches sur le site Zone CSS,
    je commence à comprendre le système du "float" et "position".

    Encore quelques ajustements je vous montre le résultat

  7. #7
    Membre éprouvé
    Avatar de michel.di
    Homme Profil pro
    Freelance
    Inscrit en
    Juin 2009
    Messages
    782
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 37
    Localisation : France, Nord (Nord Pas de Calais)

    Informations professionnelles :
    Activité : Freelance
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Juin 2009
    Messages : 782
    Points : 1 042
    Points
    1 042
    Par défaut
    Pas de soucis, je regarderai quand tu posteras

  8. #8
    Nouveau Candidat au Club
    Homme Profil pro
    Graphiste Freelance
    Inscrit en
    Janvier 2012
    Messages
    6
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Graphiste Freelance

    Informations forums :
    Inscription : Janvier 2012
    Messages : 6
    Points : 1
    Points
    1
    Par défaut
    Salut Michel,

    comme promis voici le résultat,

    ci-dessous, je poste la capture écran des 4 pages modifiées.
    Pour mieux visualiser mes modifications, j'ai mis une couleur
    différente pour le "sidenav" et le "content".

    http://hpics.li/5f9b282
    http://hpics.li/3228e68
    http://hpics.li/4c4b842
    http://hpics.li/06ff337

    voici le fichier CSS final que j'ai modifié,
    peut-tu me dire si les codes tiennent la route ? :

    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
    body {
    	margin: 0; padding: 0;
    	background: url(../images/body_bg.gif) repeat-y right #000000;
    	font: normal 11px Georgia, Arial, Helvetica, sans-serif;
    	color: #444;
    }
     
    /*::::::::: Links :::::::::*/
    a { color: #456c55; text-decoration: none; }
    a:hover { color: #FFFFFF; text-decoration: underline; }
    a:focus { outline: none; }
     
     
    /*::::::::: Container :::::::::*/
    .container {width: 980px; height: 100%; margin: 0 auto; overflow: hidden; font-size: 1.2em; position: relative;}
     
    /*::::::::: SideNav :::::::::*/
    #sidenav {
    	margin-left: -128px;
    	margin-top: 25px;
    	float: left;
    	width: 135px;
    	padding: 5px;
    	background: #000000;
    	position: relative;
    }
    *html #sidenav {
    	position: relative; 
    	left: expression( ( 0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );
    	top: expression( ( 0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );
    }	
     
    #sidenav ul {
    	margin: 0; padding: 0;
    	list-style: none;
    	font-size: 13px;
    }
    #sidenav ul li{
    	margin: 0; padding:  0;
    	display: inline;
    }
    #sidenav ul li a{
    	display: block;
    	margin: 0; padding: 10px 0;
    	text-decoration: none;
    	color: #333;
    	border-bottom: 1px solid #101010;
    }
    #sidenav ul li a:hover { color: #456c55; }
    #sidenav ul li a.home{ background: url(../images/icon_home.gif) no-repeat top right; }
    #sidenav ul li a.portfolio{ background: url(../images/icon_portfolio.gif) no-repeat top right; }
    #sidenav ul li a.services{ background: url(../images/icon_services.gif) no-repeat top right; }
    #sidenav ul li a.contact{ background: url(../images/icon_contact.gif) no-repeat top right; }
     
     
    /*::::::::: Content :::::::::*/
    #content {
    	margin-left: 35px;
    	margin-top: 0px;
    	float: left;
    	width: 820px;
    	padding-top: 30px;
    	padding-left: 25px;
    	background: #333333;
    	position: relative;
    }
    #content h2 {
    	color: #456c55;
    	width: 1000px;
    	margin: 10px 0;  padding: 10px 0;
    	font-size: 2em;
    	font-weight: normal;
    }
    #content p {
    	width: 750px;
    	line-height: 1.8em;
    	padding: 7px 0;
    	margin: 7px 0;
    }
     
    /*::::::::: SocialLinks :::::::::*/
     
    #social {
    	width: 135px;
    	height: 180px;
    	margin-top: 20px;
    }
     
    .social_facebook a {
    	display: block;
    	background: url(../images/social_facebook.gif) no-repeat top center;
    	width: 135px;
    	height: 45px;
    	text-decoration: none;
    }
    .social_facebook a:hover { background: url(../images/social_facebook.gif) no-repeat bottom center;text-decoration: none; }
     
    .social_twitter a {
    	display: block;
    	background: url(../images/social_twitter.gif) no-repeat top center;
    	width: 135px;
    	height: 45px;
    	text-decoration: none;
    }
    .social_twitter a:hover { background: url(../images/social_twitter.gif) no-repeat bottom center;text-decoration: none; }
     
    .social_lastfm a {
    	display: block;
    	background: url(../images/social_lastfm.gif) no-repeat top center;
    	width: 135px;
    	height: 45px;
    	text-decoration: none;
    }
    .social_lastfm a:hover { background: url(../images/social_lastfm.gif) no-repeat bottom center;text-decoration: none; }
     
    .social_flickr a {
    	display: block;
    	background: url(../images/social_flickr.gif) no-repeat top center;
    	width: 135px;
    	height: 45px;
    	text-decoration: none;
    }
    .social_flickr a:hover { background: url(../images/social_flickr.gif) no-repeat bottom center;text-decoration: none; }
     
    .logo { margin-bottom: 20px; }
     
    /*::::::::: SidenavFooter :::::::::*/
    #footer {
    	width: 135px;
    	height: auto;
    	margin-top: 40px;
    	font-size: 10px;
    	text-align: left;
    }
     
    /*::::::::: PORTFOLIO :::::::::*/
     
    /*--------- Captions ---------*/
     
    #portfolio {
    	width: 800px;
    	height: auto;
    }
     
    .photo {
        position:relative;
        overflow:hidden;
        border:5px solid #FFF;
        width:215px;
        height:120px;
        top: 0;
        text-align: left;
        cursor: default;
    }
     
    .photo .heading, .photo .imagecaption {
            position:absolute;
            background:#000;
            height:40px;
            width:215px;
            opacity:0.9;
    }
     
    .photo .heading { 
            top:-50px;
            font-size: 15px;
    }
     
    .photo .imagecaption { 		
            bottom:-50px;		
            left:0px;
    }
     
    .photo .heading span {
            color:#456c55;	
            top:-50px;
            font-weight:bold;
            display:block;
            padding:10px 0 0 10px;
    }
     
    .photo .imagecaption span{
            color:#999;
            font-size:11px;
            display:block;
            padding:13px 32px 0 10px;
            float: left;
    }
     
    .photocaption {
        width: 203px;
        height: auto;
        font-size: 11px;
        color: #777777;
        text-align: left;
        background: #111111;
        padding: 10px;
        position: relative;
        bottom: 0;
        float: left;
        border: 1px solid #191919;
        border-top: 0;
    }
     
    .photowrapper {
        width: 225px;
        height: auto;
        background: #000000;
        float: left;
        margin: 0 20px 20px 0;
        position: relative;
    }
     
    .latest {
        width: 60px;
        height: 60px;
        position: absolute;
        top: -2px;
        right: -1px;
        background: url(../images/portfolio/latest.png) no-repeat;
        z-index: 100;
    }
     
    .featured {
        width: 60px;
        height: 60px;
        position: absolute;
        top: -2px;
        right: -1px;
        background: url(../images/portfolio/featured.png) no-repeat;
        z-index: 100;
    }
     
    .mini {
        width: 15px;
        height: 13px;
        float: left;
        font-family: Arial;
        margin-right: 18px;
        margin-top: 9px;
        text-align: center;
        font-size:10px;
    }
     
    .mini a {
        width: 15px !important;
        height: 13px !important;
        padding: 3px;
        display: block;
        background: #000000;
        border: 1px solid #222222;
        text-decoration: none;
        color: #FFFFFF;
    }
     
    .mini a:hover {
        background: #FFFFFF;
        border: 1px solid #FFFFFF;
        text-decoration: none;
        color: #000000;
    }
     
    /*::::::::: FORMS :::::::::*/
     
    .slider {
    	overflow: hidden;
    }
     
    label {
    	color: #555555;
    	font-size: 11px;
    	margin-left: 20px;
    }
     
    input, textarea {
    	border: 1px solid #222222;
    	background: #000000;
    	margin-bottom: 10px;
    	padding: 6px;
    	padding-left: 25px;
    	color: #FFFFFF;
    	-webkit-border-radius: 3px;
    	-moz-border-radius: 3px;
    	border-radius: 3px;
    	font: 11px Georgia;
    	width: 231px;
    }
     
    /*::::::::: Form Icons :::::::::*/
    #name { background: url(../images/icon_form_name.gif) no-repeat top left #000000; }
    #email { background: url(../images/icon_form_email.gif) no-repeat top left #000000; }
    #phone { background: url(../images/icon_form_phone.gif) no-repeat top left #000000; }
    #url { background: url(../images/icon_form_url.gif) no-repeat top left #000000; }
    #comment { background: url(../images/icon_form_comment.gif) no-repeat top left #000000; }
     
    #btn {
    	background: #456c55;
    	width: 264px;
    	border: 0;
    	cursor: pointer;
    	padding: 6px;
    	-webkit-border-radius: 3px;
    	-moz-border-radius: 3px;
    	border-radius: 3px;
    	color: #FFFFFF;
    	font: 11px Georgia;
    }
     
    #contactform {
    	width: 264px;
    	height: auto;
    	float: left;
    }
     
    #contactdetails {
    	width: 420px;
    	height: auto;
    	float: left;
    	margin-left: 30px;
    }
     
    #contactdetails p {
    	line-height: 18px;
    	margin: 20px 20px 0 0;
    	padding: 0;
    	float: left;
    	margin-left: 20px;
    }
     
    #contactdetails p strong {
    	color: #FFFFFF;
    }
     
    /*::::::::: Content Footer :::::::::*/
     
    #footfiller {
    	width: 710px;
    	height: 400px;
    	background: url(../images/footfiller.gif) no-repeat top center;
    	margin-bottom: -30px;
    	margin-top: 20px;
    }
     
    /*::::::::: Tables :::::::::*/
     
    #content table {
    	width: 750px;
    	border: 3px solid #222222;
    	padding: 0;
    	margin: 0;
    	background: #000000;
    }
     
    #content th { border-bottom: 1px solid #222222; border-right: 1px solid #090909; padding: 10px; }
    .bottoms { border-top: 1px solid #222222; }
    #content th strong { font-size: 22px; font-weight: bold; color: #FFFFFF; }
    #content td { border-right: 1px solid #090909; border-bottom: 1px solid #090909; padding: 10px; text-align: center; }
    .textright { text-align: right !important; }
     
    .requestbutton a {
    	width: 130px;
    	height: 30px;
    	display: block;
    	background: url(../images/requestbutton.gif) no-repeat top left;
    	text-decoration: none;
    	margin: auto;
    }
     
    .requestbutton a:hover {
    	background: url(../images/requestbutton.gif) no-repeat bottom left;
    	text-decoration: none;
    }
     
    /*::::::::: Misc :::::::::*/
     
    .clearall {
    	clear: both;
    }
    Fichiers attachés Fichiers attachés

  9. #9
    Nouveau Candidat au Club
    Homme Profil pro
    Graphiste Freelance
    Inscrit en
    Janvier 2012
    Messages
    6
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Graphiste Freelance

    Informations forums :
    Inscription : Janvier 2012
    Messages : 6
    Points : 1
    Points
    1
    Par défaut
    Salut,

    je viens de me rendre compte que mon site déborde
    sur la gauche en résolution 1024x768
    (avec les modifications CSS postées dans le message précédent)

    Quelqu'un peut-il me dire ce qui ne va pas dans mon "sidenav" ?

    Merci d'avance

  10. #10
    Membre du Club
    Profil pro
    Inscrit en
    Janvier 2012
    Messages
    66
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2012
    Messages : 66
    Points : 52
    Points
    52
    Par défaut
    Salut a toi!


    Euh... A mons avis, c'est ton margin-left, tu as une valeur negative. Si tu la met a 0, celle-ci devrait rester coller a gauche .

    Cordialement,

    Ctesias

  11. #11
    Nouveau Candidat au Club
    Homme Profil pro
    Graphiste Freelance
    Inscrit en
    Janvier 2012
    Messages
    6
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Graphiste Freelance

    Informations forums :
    Inscription : Janvier 2012
    Messages : 6
    Points : 1
    Points
    1
    Par défaut
    Merci pour ton aide Ctesias,

    ... j'ai résolu mon problème en partie....

    Mon "sidenav" est maintenant fixé sur la gauche.
    Voici les valeurs que je lui ai appliqué :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    #sidenav {
    	margin-top: 25px;
    	width: 135px;
    	padding: 5px;
    	background: #000000;
    	position: relative; left:15px;
    }
    C'est maintenant mon "content" qui me pose un problème.
    Il se superpose à mon "sidenav" en résolution 1024
    voir l'image : http://hpics.li/094abe1
    Par contre en résolution 1280 il se place correctement : http://hpics.li/a3dfd56

    Voici les valeurs de mon "content" :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    #content {
    	margin-left: 35px;
    	margin-top: 0px;
    	width: 820px;
    	padding-top: 30px;
    	padding-left: 25px;
    	background: #333333;
    	position: relative;
    }
    Comment résoudre se soucis ?
    Merci à tous

Discussions similaires

  1. Probleme pour centrer un bloque xhtml/Css
    Par tooms2028 dans le forum Mise en page CSS
    Réponses: 3
    Dernier message: 20/01/2005, 22h08
  2. Probleme xhtml/css
    Par tooms2028 dans le forum Mise en page CSS
    Réponses: 3
    Dernier message: 19/01/2005, 09h41
  3. Template XHTML
    Par Sylvain James dans le forum XSL/XSLT/XPATH
    Réponses: 14
    Dernier message: 16/06/2003, 21h45

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