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 :

Les images redimensionnées


Sujet :

CSS

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre éclairé
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Juin 2005
    Messages
    700
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 49
    Localisation : France

    Informations professionnelles :
    Activité : Développeur .NET
    Secteur : Tourisme - Loisirs

    Informations forums :
    Inscription : Juin 2005
    Messages : 700
    Par défaut Les images redimensionnées
    Bonjour.

    Avant tout je précise : je ne maitrise absolument rien concernant le ccs

    Voila, j'ai récupéré un theme. L'image de sa banner fait 851x129

    Le probleme :Lorsque j'affiche la page web sur mon poste (1920x1200), il affiche l'image en 1400x212.

    Resultat l'image est bien crade

    j'ai fais une image en 1400x212 mais il me l'agrandi encore donc on ne voit que sa partie supérieure gauche.

    Question :

    Comment l'empecher de redimensionner l'image SVP?
    ou sinon
    comment trouver le code qui appelle "#header" de mon fichier ccs (voir l'extrait ci dessous)?

    un immense merci d'avance car je ne m'en sort vraiment pas !

    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
    body {
    	margin: 0; padding: 20px 0 0 0;
    	font-family: Arial, Helvetica, sans-serif; font-size: 12px;
    	color: #181818;
    }
    #container:after, #content .post .entry:after, #content .post .meta:after, #content .navigation:after {
    	content: ".";
    	display: block;
    	height: 0;
    	clear: both;
    	visibility: hidden;
    }
    #page {
    	margin: 0 auto;
    	width: 851px;
    }
    #header {
    	position: relative;
    	padding: 9px 0 0 0;
    	height: 120px;
    	background: no-repeat url(images/bckheader.jpg);
    }
    N.B : noter qu'il y a marqué hauteur : 120px alors que l'image fait 129px en vrai, et s'affiche sur mon bureau en 212px de hauteur

  2. #2
    Membre confirmé
    Profil pro
    Inscrit en
    Mars 2006
    Messages
    30
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2006
    Messages : 30
    Par défaut
    Salut

    Tu peux poster plus de code css et mettre le code HTML... ou alors donne nous les urls de tes pages.

    Comme ça c'est pas évident.

    a+

  3. #3
    Membre éclairé
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Juin 2005
    Messages
    700
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 49
    Localisation : France

    Informations professionnelles :
    Activité : Développeur .NET
    Secteur : Tourisme - Loisirs

    Informations forums :
    Inscription : Juin 2005
    Messages : 700
    Par défaut
    mille mercis !

    Ci dessous, le CCS complet.
    J'utilise Wordpress 3.0.5
    Le lien vers mon site ; vous ne verrez pas l'effet crasseux, mais sachez que l'image en natif fait 851x129 (j'ai repris la taille de l'image d'origine dans le theme):
    http://www.gio-va.com

    Je vais essayer de faire le point au niveau du code php, pour ne pas vous balancer 1 million de lignes de code

    Le truc, c'est que je n'y comprend rien : je n'arrive pas à faire le lien entre la taille affichée, la taille de l'image, et les tailles trouvées dans le css et les headers.php

    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
    /*
    Theme Name: FAM
    Description: Great WordPress theme suitable for any type of site. Looks really great!
    Version: 1.0
    Author: Diamonds Designers
    Author URI: http://www.diamondsdesigners.com/
    Tags: white, brown, black, orange, dark, light, fixed-width, two-columns
    License: General Public License
    */
     
     
    body {
    	margin: 0; padding: 20px 0 0 0;
    	font-family: Arial, Helvetica, sans-serif; font-size: 12px;
    	color: #181818;
    }
    #container:after, #content .post .entry:after, #content .post .meta:after, #content .navigation:after {
    	content: ".";
    	display: block;
    	height: 0;
    	clear: both;
    	visibility: hidden;
    }
    #page {
    	margin: 0 auto;
    	width: 851px;
    }
    #header {
    	position: relative;
    	padding: 9px 0 0 0;
    	height: 120px;
    	background: no-repeat url(images/bckheader.jpg);
    }
    #header a {
    	color: #fff;
    	text-decoration: none;
    }
    #header h1 {
    	margin: 0 0 0 10px;
    	font-family: Tahoma, Geneva, sans-serif; font-size: 36px;
    }
    #header p {
    	margin: 10px 0 0 50px;
    	font-size: 14px; font-weight: bold;
    	color: #ffb792;
    }
    #header ul {
    	position: absolute;
    	top: 100px; right: 0;
    	margin: 0; padding: 0;
    	list-style-type: none;
    }
    #header li {
    	float: left;
    	margin: 0 10px 0 0; padding: 0 0 0 25px;
    	line-height: 17px;
    	background: no-repeat url(images/bckheaderli.gif);
    	font-family: Tahoma, Geneva, sans-serif; font-weight: bold;
    }
    #container {
    	padding: 0 0 30px 0;
    	width: 100%;
    	background: repeat-y url(images/bckcontainer.gif);
    }
    #content {
    	float: right;
    	padding: 25px 0 0 0;
    	width: 602px;
    }
    #content a {
    	color: #eb7e42;
    	text-decoration: none;
    }
    #content .post {
    	position: relative;
    	margin: 0 0 25px 0;
    	width: 100%;
    }
    #content .post .title {
    	margin: 0 0 0 44px; padding: 0 0 5px 15px;
    	border-bottom: #c7b29a 1px solid;
    	font-size: 12px;
    }
    #content .post .title a {
    	color: #181818;
    	text-decoration: none;
    }
    #content .page .title {
    	margin: 0; padding-left: 0;
    }
    #content .post .details {
    	margin: 0 0 0 59px;
    	font-size: 11px;
    }
    #content .post .entry {
    	margin: 10px 0 0 0;
    }
    #content .post .meta {
    	margin: 10px 0 0 0;
    	width: 100%;
    	font-size: 11px;
    	color: #ba0000;
    }
    #content .post .meta a {
    	color: #ba0000;
    	text-decoration: none;
    }
    #content .post .meta div {
    	width: 275px;
    }
    #content .post .meta .categories {
    	float: left;
    }
    #content .post .meta .tags {
    	float: right;
    	text-align: right;
    }
    #content .post .date {
    	position: absolute;
    	top: -4px; left: 0;
    	width: 44px;
    	text-align: center;
    	font-family: "Myriad Pro";
    }
    #content .post .date span {
    	display: block;
    }
    #content .post .date .d {
    	line-height: 24px;
    	border-bottom: #b64926 1px solid;
    	font-size: 30px;
    	color: #eb7e42;
    }
    #content .post .date .m {
    	font-size: 10px;
    	color: #5e524e;
    }
    #sidebar {
    	float: left;
    	margin: 0; padding: 0;
    	list-style-type: none;
    	width: 216px;
    	font-size: 11px;
    	color: #000;
    }
    #sidebar .search {
    	position: relative;
    	margin: 0 -33px 0 0; padding: 18px 0 0 16px;
    	height: 55px;
    	background: no-repeat url(images/bcksidebarsearch.gif);
    }
    #sidebar .search form {
    	margin: 0;
    }
    #sidebar .search form .text {
    	float: left;
    	padding: 3px 5px 0 5px;
    	width: 176px; height: 18px;
    	background: no-repeat url(images/bcksidebarsearchtext.gif);
    	border: 0;
    	border-top: #6f6562 1px solid; border-left: #6f6562 1px solid;
    }
    * html #sidebar .search form .text {
    	background-attachment: fixed;
    }
    #sidebar .search form .btn {
    	margin: 0 0 0 151px; padding: 0;
    	width: 36px; height: 22px;
    	background: no-repeat url(images/bcksidebarsearchbtn.gif);
    	border: 0;
    	font-weight: bold;
    	color: #fff;
    	text-transform: uppercase;
    	cursor: pointer;
    }
    #sidebar ul {
    	margin: 0 -15px; padding: 0;
    	list-style-type: none;
    }
    #sidebar ul ul {
    	margin: 0 0 0 10px;
    }
    #sidebar li {
    	margin: 0 0 10px 0; padding: 0 15px;
    }
    #sidebar li li {
    	margin: 0; padding: 2px 15px;
    }
    #sidebar li li:hover {
    	background: #d9d9d9 5px 7px no-repeat url(images/bcksidebarlili.gif);
    }
    #sidebar li li a {
    	text-decoration: none;
    }
    #sidebar li li li {
    	margin: 2px 0 0 0; padding: 0;
    }
    #sidebar li li li:hover {
    	background: none;
    }
    #sidebar a {
    	color: #000;
    }
    #sidebar h3 {
    	position: relative;
    	margin: 0 -15px 5px -15px; padding: 0 0 0 15px;
    	width: 221px;
    	line-height: 20px;
    	background: no-repeat url(images/bcksidebarh3.gif);
    	font-size: 11px;
    	color: #fff;
    }
    #footer {
    	padding: 0 0 10px 0;
    	text-align: right;
    	background: repeat-y url(images/bckcontainer.gif);
    	font-size: 11px;
    }
    #footer a {
    	color: #eb7e42;
    	text-decoration: none;
    }
     
    #content .navigation {
    	margin: 15px 0;
    	width: 100%;
    	font-weight: bold;
    }
    #content .navigation a {
    	text-decoration: none;
    }
    #content .postnavigation {
    	margin: 15px 0 0 0;
    }
     
    .commentlist, .children {
    	margin: 0; padding: 0;
    	list-style-type: none;
    }
    .children {
    	margin: 10px 0 0 10px;
    }
    .commentlist .comment {
    	margin: 0 0 15px 0; padding: 5px;
    	background-color: #fff;
    	border: #b64926 1px solid;
    }
    .commentlist .avatar {
    	float: right;
    	margin: 0 0 5px 5px;
    	border: #b64926 1px solid;
    }
    #author, #email, #url, #comment {
    	margin: 0 5px 0 0; padding: 2px;
    	background-color: #fff !important;
    	border: #b64926 1px solid;
    }
    #comment {
    	width: 300px;
    }
    #comments, #respond h3 {
    	font-size: 15px;
    }
    a#cancel-comment-reply-link {
    	font-weight: bold;
    }
     
    /* A few generic styles used across the site */
     
    a img {
    	border: 0;
    }
     
    td {
    	vertical-align: top;
    }
     
    input, textarea, select {
    	vertical-align: middle;
    	font-family: Arial, Helvetica, sans-serif; font-size: 12px;
    	color: #181818;
    }
    input[type="text"], input[type="password"] {
    	padding: 2px;
    	background-color: #fff !important;
    	border: #b64926 1px solid;
    }
    textarea, select {
    	padding: 2px;
    	background-color: #fff !important;
    	border: #b64926 1px solid;
    }
     
    acronym, abbr, span.caps {
    	cursor: help;
    }
     
    acronym, abbr {
    	border-bottom: 1px dashed #b64926;
    }
     
    blockquote {
    	margin: 15px 30px 0 10px;
    	padding-left: 20px;
    	border-left: 5px solid #b64926;
    }
     
    blockquote cite {
    	margin: 5px 0 0;
    	display: block;
    }
     
    .nocomments {
    	text-align: center;
    	margin: 0;
    	padding: 0;
    }
     
    .clear {
    	clear: both;
    }
     
    .center {
    	text-align: center;
    }
     
    .hidden {
    	display: none;
    }
     
    .screen-reader-text {
         position: absolute;
         left: -1000em;
    }
     
    img.centered {
    	display: block;
    	margin-left: auto;
    	margin-right: auto;
    	}
     
    img.alignright {
    	padding: 4px;
    	margin: 0 0 2px 7px;
    	display: inline;
    	}
     
    img.alignleft {
    	padding: 4px;
    	margin: 0 7px 2px 0;
    	display: inline;
    	}
     
    .alignleft {
    	float: left;
    }
    .alignright {
    	float: right;
    }
    .aligncenter,
    div.aligncenter {
    	display: block;
    	margin-left: auto;
    	margin-right: auto;
    }
     
    .wp-caption {
    	border: 1px solid #ddd;
    	text-align: center;
    	background-color: #f3f3f3;
    	padding-top: 4px;
    	margin: 10px;
    	color: #000;
    }
     
    .wp-caption img {
    	margin: 0;
    	padding: 0;
    	border: 0 none;
    }
     
    .wp-caption p.wp-caption-text {
    	font-size: 11px;
    	line-height: 17px;
    	padding: 0 4px 5px;
    	margin: 0;
    }

  4. #4
    Membre confirmé
    Profil pro
    Inscrit en
    Mars 2006
    Messages
    30
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2006
    Messages : 30
    Par défaut
    Salut

    Je ne suis pas chez moi ce soir mais comme ça, peux-tu essayer de modifier ton 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
    body {
    	margin: 0; padding: 20px 0 0 0;
    	font-family: Arial, Helvetica, sans-serif; font-size: 12px;
    	color: #181818;
    }
    #page {
    	margin: 0 auto;
    	width: 851px;
    }
    #header {
    	position: relative;
    	padding: 9px 0 0 0;
    	height: 120px;
    	background: no-repeat url(images/bckheader.jpg);
    }
    par :
    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
    body {
    	width:100%;	
    	margin: 0; padding: 20px 0 0 0;
    	font-family: Arial, Helvetica, sans-serif; font-size: 12px;
    	color: #181818;
    }
    #page {
    	margin:0 auto 0 auto;
    	width: 851px;
    }
    #header {
    	position: relative;
    	padding: 9px 0 0 0;
    	height: 120px;
    	width: 851px;
    	background: no-repeat url(images/bckheader.jpg);
    }
    juste pour tester.

    Je regarderais de plus près demain ...

    @+

  5. #5
    Expert confirmé
    Avatar de 12monkeys
    Homme Profil pro
    Webmaster
    Inscrit en
    Novembre 2006
    Messages
    4 093
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 48
    Localisation : France, Puy de Dôme (Auvergne)

    Informations professionnelles :
    Activité : Webmaster
    Secteur : Service public

    Informations forums :
    Inscription : Novembre 2006
    Messages : 4 093
    Par défaut
    Bonjour

    Il est bien question de ton image bckheader.jpg ?

    Pour moi elle s'affiche parfaitement avec Firefox 4 et IE 7. Dans quel navigateur as tu ce problème ? Tu n'as pas de zoom activé dans le navigateur ?

    Parce que avec ton code ce n'est pas possible que l'image se redimensionne..

    PS : au passage c'est CSS et non CCS...

  6. #6
    Membre éclairé
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Juin 2005
    Messages
    700
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 49
    Localisation : France

    Informations professionnelles :
    Activité : Développeur .NET
    Secteur : Tourisme - Loisirs

    Informations forums :
    Inscription : Juin 2005
    Messages : 700
    Par défaut
    Bonjour et merci pour vos réponses.

    J'ai réglé le probleme cette nuit à 2H du mat, désolé je suis allé directement de la solution à mon lit

    Pour le régler j'ai donné des tailles fixes à #page et #contenu

    MErci encore pour votre aide à tous.

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

Discussions similaires

  1. Redimensionner les images
    Par argyronet dans le forum Général JavaScript
    Réponses: 8
    Dernier message: 26/05/2011, 12h44
  2. Réponses: 5
    Dernier message: 30/04/2009, 11h11
  3. [GD] Redimensionner les images de sorte qu'elles aient une taille fixe
    Par A&Nexus dans le forum Bibliothèques et frameworks
    Réponses: 4
    Dernier message: 20/07/2008, 20h37
  4. Redimensionner les images dynamique en CRXI
    Par pobrouwers dans le forum SAP Crystal Reports
    Réponses: 1
    Dernier message: 03/09/2007, 10h49
  5. Redimensionner les images dans un tableau
    Par cyke37 dans le forum Général JavaScript
    Réponses: 10
    Dernier message: 13/10/2005, 20h19

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