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 :

Forcer le changement de la couleur du texte


Sujet :

CSS

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre éclairé
    Profil pro
    Inscrit en
    Septembre 2005
    Messages
    302
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2005
    Messages : 302
    Par défaut Forcer le changement de la couleur du texte
    Bonjour,

    Dans ma base de donnée j'ai plusieurs articles ou c'est écrit de cette façon car mon thème été noir, aujourd'hui j'utilise un thème blanc donc je voulais savoir si il existe une possibilité pour forcer le changement de la couleur du texte qui est écrit de cette façon
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    <p align="center"><font color="#66ffcc">Bouton droit pour enregistrer l'image</font></p>
    Merci a vous

  2. #2
    Membre chevronné Avatar de GihefBey
    Profil pro
    Inscrit en
    Avril 2006
    Messages
    366
    Détails du profil
    Informations personnelles :
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Avril 2006
    Messages : 366
    Par défaut
    Bonjour,

    La solution serait d'abandonner définitivement cette manière de faire et de passer aux CSS.

    Ce qui donnerait
    Code html : Sélectionner tout - Visualiser dans une fenêtre à part
    <p id="bouton_droit">Bouton droit pour enregistrer l'image</p>
    avec
    Code css : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
     
    #bouton_droit {
      color : #le_code_couleur_adapté;
      text-align : center;
      }

    Ainsi, il suffit de changer la couleur dans le style.

    -

  3. #3
    Membre éclairé
    Profil pro
    Inscrit en
    Septembre 2005
    Messages
    302
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2005
    Messages : 302
    Par défaut
    Bonjour,

    Justement je ne peut pas modifier car j'ai des milliers d'articles dans la base de donnée.

    c'est pour cela que je voulais savoir si il y avais une solution pour ignorer le
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    <p align="center"><font color="#66ffcc">Bouton droit pour enregistrer l'image</font></p>
    et forcer le changement de couleurs grâce au CSS
    voila ma feuille mais ne modifie pas ce que je veut

    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
    html, body, div, span, applet, object, iframe,
    blockquote, pre,
    a, abbr, acronym, address, big, cite, code,
    del, dfn, em, font, ins, kbd, q, s, samp,
    small, strike, strong, sub, sup, tt, var,
    b, u, i, center,
    dl, dt, dd, ol, ul, li,
    fieldset, form, label, legend,
    table, caption, tbody, tfoot, thead, tr, th, td {
    	margin: 0;
    	padding: 0;
    	border: 0;
     
    }
    html {
    	overflow-x:hidden;}
    body {
     
    }
    hr {
    color: #FFFFFF;
    	background: url(../images/bghr.gif) repeat-x #fff;
    height: 1px;
    border:none;}
    ol, ul {
     
    }
    li {
    	list-style:outside;}
    blockquote, q {
    	quotes: none;
    }
    blockquote:before, blockquote:after,
    q:before, q:after {
    }
    /* remember to define focus styles! */
    :focus {
    	outline: 0;
    }
    /* remember to highlight inserts somehow! */
    ins {
    	text-decoration: none;
    }
    del {
    	text-decoration: line-through;
    }
    /* tables still need 'cellspacing="0"' in the markup */
    table {
    	border-collapse: collapse;
    	border-spacing: 0;
    }
    /* ######### GENERAL #######*/
     
     
    form { 
    	display:inline;
    	margin:0; padding:0;
    }
    h1{
    	font-weight:normal;
    	font-size:20px;
    	color:#CC9933;
    }
    h2{
    	font-weight:bold;
    	font-size:18px;
    	color:#00CCCC;
    }
    h3{
    	font-weight: normal;
    	font-size:18px;
    	color:#993300;
    }
    h4{
    	font-weight:normal;
    	font-size:16px;
     
    }
     
    h5{
    	font-weight:normal;
    	font-size:14px;
    }
    img {
    	border:none;
    }
    ol{
    	margin-left:40px;
     
    }
    blockquote {
    	margin: 10px;
    }
    blockquote div {
    }
    pre {
    }
    /* joomla - mambo css */
    table.contenttoc{
    	margin:3px;
    	padding:3px;
    	text-align:left;
    }
    .contenttoc th{
    	border-bottom:1px solid #666;
    	padding-bottom:5px;
    	color:#333333;
    	font-weight:bold;
    	text-align:left;
    }
    .contenttoc a {
    	padding-left:0;
    	font-weight:bold;
    	}
    table.contenttoc td {
    	text-align:left;
    	font-size:85%;
    	}
    .contentpane{
    	text-align:left;
    	color:#666666;
    }
    .contentpaneopen ul { 
    	margin-left:20px;}
    .contentpane ul { 
    	margin-left:20px;}
    table.contentpaneopen, table.contentpane,table.blog{
    	color:#333333;
    }
    table.blog td {
    	padding-right:3px;}
    #vmMainPage li, table.contentpaneopen li {
    	margin-left:20px;
    }
    .contentpaneopen fieldset{
    	width:100%;
    	border:none;
    }
     
    .contentpaneopen td {
    	padding-right:4px;}
    .contentpaneopen h1,
    .contentpaneopen h2,
    .contentpaneopen h3,
    .contentpaneopen h4,
    .contentpaneopen h5 {
    text-decoration: none;
    	color:#333333;}
     
    .contentpaneopen td.buttonheading{
    	padding:0px;
    	margin:0px;
    }
    td.contentdescription {
    	width:100%;}
     
     
     
     
    a.contentpagetitle:hover{
    	color: #666666;
    	text-decoration: none;
    }
    a.category{ 
    	font-weight:bold;
    	}
    .createdate,td.createdate{
    	color: #666666;
    	font-size:11px;
    	font-weight:700;
    	font-family: Arial, Tahoma, Verdana;
    	}
    td.modifydate{
    	color: #00CC00;
    	font-size:10px;
    	font-weight:normal;
    }
    span.article_seperator {
    }
     
    .highlight { 
    	background-color: #009900;
    	color:#F9E5BB;
    }
    .mosimage {
    	margin:5px;
    	padding:5px;
    }
    .mosimage_caption {
    	padding:3px 2px;
    	color:#666;
    	font-size:10px;
    	border-top:1px solid #666;
    }
    .contentpaneopen img { margin:5px;}
    .contentpane img { margin:5px;}
     
    #mod_login_username{
    	width:120px;
    	height:20px;
    }
    #mod_login_password{
    	width:120px;
    	height:20px;
    }
    #mod_login_remember{
     
    }
    ul#mainlevel-nav {       
    	list-style : none;
    	padding-bottom:5px;     
    } 
    ul#mainlevel-nav li {
    	float : right;
    	font-weight : normal;
    	text-align : center; 
    	display : block;      
    } 
     
    #footer_wrapper ul#mainlevel-nav li a {
    	background: url(../images/topspotmenubg.gif) no-repeat top left;
    		margin-left:0px;
    		margin-right:10px;
    		padding-right:0;
    		padding-left:10px;
     
     
    	} 
     
    .inputbox {
    	background: url(../images/bg_input.gif) repeat-x #fff;
    	border:1px solid #cccccc;
    	color:#666;
    	}
    .inputbox:hover,
    .inputbox:focus {
    	border:1px solid #666666;}
    .button{ 
    	text-align: center;
    	color: #F0F0F0;
    	border:0px solid #666666;
    	padding:2px 5px;
    	font-size:11px;
    	font-family: Optima, Arial,Verdana, Helvetica, sans-serif;
    	background:url(../images/bg_button.gif) repeat-x top center;
    	margin:3px 0;}
    .button:hover , .button:focus {
    	border:0px solid #000;
    	background:url(../images/bg_button_hover.gif) repeat-x top center;
    }
    #mod_login_remember{
    	border:none;
    	background:none;
    }
    #mod_search_searchword {
    	border:1px solid #cccccc;
    }
    #mod_search_searchword:hover,
    #mod_search_searchword:focus {
    	border:1px solid #000000;
    	background: #FFFFFF;}
    .sectiontableheader {
    	font-weight:bold;
    	padding:4px;
    	background:#f0f0f0;
    }
    .sectiontableentry1 td {
    	padding:5px;
    	text-align:left;
    	border-bottom:1px solid #e3e1e1;
    }
    .sectiontableentry2 td{
    	padding:5px;
    	text-align:left;
    	border-bottom:1px solid #e3e1e1;
    }
    .sectiontableentry1 {
    	padding:3px;
    	text-align:left;
    }
    .sectiontableentry2 {
    	padding:3px;
    	text-align:left;
    }
    .sectiontableentry1 label{
    	padding-left:5px;}
    .sectiontableentry2 label {
    	padding-left:5px;}
    ul.latestnews li,
    ul.mostread li{
    	padding:3px 0;
    	margin-left:10px;
    	text-align:left;
    		border-bottom:1px solid #cccccc;
    		line-height: normal;
     
    }
    .latestnews a:hover {
    	color: #99FF99;
    }
    li.latestnews  a ,
    li.mostread  a{
    	color: #4762b2;
     
    }
    li.latestnews a:hover,
    li.mostread a:hover {
    	color: #000;
    }
    li.latestnews a:visited,
    li.mostread a:visited{
    	color: #666666;
    }
     
    a.readon {
    	display:block;
    	height:30px;
    	width:100px;
    	margin-top:10px;
    	background:url(../images/buttonreadmore.gif) no-repeat left top;
    	text-indent:-5000px;
    }
    a.readon:hover {
    	background:url(../images/buttonreadmore2.gif) no-repeat left top;}
     
    .blog_more {
    	padding:10px;
    	}
    .blog_more a {
     
    }
    .blog_more a:hover {
    }
    .blogsection {
    	border-bottom:1px solid #333333;}
    .blogsection:hover {
    	border:none;}
     
    span.pathway { 
    	color:#ffffff;
     
    	}
    span.pathway a:link,
    span.pathway a:visited { 
     	color:#ffffff; 
    	font-weight:bold;
    }
     
    a:link {
    	color: #333333 ;
    	text-decoration:none;
    }
    a:visited {
    	color:   #333333;
    	text-decoration:none;}
    a:hover{
    	color: #333333;
    	text-decoration:underline;
    }
    ul#mainlevel li {
    	list-style:none;}
     
    a.mainlevel:link, a.mainlevel:visited {
    	display:block;
    	text-decoration:none;
    	padding:3px 0 0 10px;
    	color: #FF8214;
    	line-height:200%;
    	font-weight:400;
    	border-bottom:1px solid #D3D3D3;
    	letter-spacing:0px;
    	margin-left:-10px;
    	margin-right:-10px;
    	background: url(../images/bgmainlevel.gif) top left no-repeat;
    	padding-left:25px;
     
    }
    a.mainlevel:hover {
    	text-decoration:none;
    	color:#000000;	background: url(../images/bgmainlevel.gif) top left no-repeat #dddada;
    }
    a.mainlevel#active_menu {
     
    }
    a.mainlevel#active_menu:hover {
    }
    a.sublevel:link, a.sublevel:visited {
    	display:block;
    	text-decoration:none;
    	padding:0px 0 0 10px;
    	color: #FF8214;
    	line-height:150%;
    	font-weight:400;
    	border-bottom:1px solid #D3D3D3;
    	letter-spacing:0px;
    	margin-left:-20px;
    	margin-right:-25px;
    	background: url(../images/bgmainlevel.gif) 20px -3px no-repeat;
    	padding-left:40px;
     
    }
    a.sublevel:hover {
    	color:#000000;
     
    }
    div.componentheading {
    	font-size:18px;
    	font-weight:bold;
    	color: #003333;
    	text-align:left;
    	line-height:24px;
    	}
    .contentpaneopen td,
    .contentpaneopen td p,
    .contentpaneopen td div,
    .contentpaneopen a:link{
    	text-align:left;
    	color: #666666;
    	line-height:160%;
     
    }
    .contentheading,td.contentheading,
    a.contentpagetitle:link,
    a.contentpagetitle:visited {
    	font-size:16px;
    	font-weight:400;
    	color: #333333;
    	text-align:left;
    	line-height:18px;
    	text-transform:uppercase;
    	letter-spacing:-1px;
     
    }
    span.small{
    	color: #80AA00;
    	font-size:11px;
    	font-weight:400;
    }
    .pagenav {
    	margin-top:10px;
    	width:10px;
    	}
    .pagenav,
    .pagenav_next,
    .pagenav_prev
     {
    	text-align: center;
    	color: #ccc;
    	border:1px solid #cccccc;
    	padding:2px 5px;
    	font-size:11px;
    	font-family: Optima,Arial,Verdana, Helvetica, sans-serif;
    	background:url(../images/bgpagenav.gif) repeat-x left top;
    	font-weight:bold;
    }
    .pagenav:hover,
    .pagenav_next:hover,
    .pagenav_prev:hover {
    	border:1px solid #cccccc;
    	background:#f0f0f0;
    	color:#666666;
    }
    .pagenav_next a,
    .pagenav_prev a {
    	color:#666;}
    .pagenav_next a:hover,
    .pagenav_prev a:hover {
    	color:#000000;
    	text-decoration:underline;
    	background:#333333;}
    .pagenavcounter {
    	font-weight:bold;
    }
    a.pagenav, a.pagenav:visited {
    	color:#666;
    	margin-top:10px;
    }
    a.pagenav:hover {
    	color: #333333;
    	text-decoration:underline;
    	border:1px solid #DEDBDB;
    }
    .back_button  {
    	text-align: center;
    	color: #ccc;
    	border:1px solid #fff;
    	padding:2px 5px;
    	font-size:11px;
    	font-family: Optima,Arial,Verdana, Helvetica, sans-serif;
    	background: #f0f0f0;
    	width:50px;
    	font-weight:bold;
    }
    .back_button a {
    	margin-top:10px;
    	color: #666;}
    .back_button a:hover { 
    	color: #000;
    	text-decoration:underline;
    }
     
    #login li {
    	list-style:none;}

    je ne c pas si il y a une solution en espèrent que oui

    Merci d'avance

  4. #4
    Rédacteur

    Avatar de Bovino
    Homme Profil pro
    Développeur Web
    Inscrit en
    Juin 2008
    Messages
    23 647
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 55
    Localisation : France, Gironde (Aquitaine)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Juin 2008
    Messages : 23 647
    Billets dans le blog
    20
    Par défaut
    voila ma feuille mais ne modifie pas ce que je veut
    Normal, les styles en ligne sont prioritaires sur les styles externes.
    D'où l'utilité de passer par les CSS qui permettent de modifier facilement les styles au lieu d'avoir à tout modifier à la main.
    Désolé, mais dans ton cas, je crois qu'il n'y a pas d'autre alternative
    Pas de question technique par MP !
    Tout le monde peut participer à developpez.com, vous avez une idée, contactez-moi !
    Mes formations video2brain : La formation complète sur JavaScriptJavaScript et le DOM par la pratiquePHP 5 et MySQL : les fondamentaux
    Mon livre sur jQuery
    Module Firefox / Chrome d'intégration de JSFiddle et CodePen sur le forum

  5. #5
    Membre éclairé
    Profil pro
    Inscrit en
    Septembre 2005
    Messages
    302
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2005
    Messages : 302
    Par défaut
    Bonjour,

    Merci a vous je vais changer de section et je poserais une question différente dans PHP & MySQL pour chercher et modifier 66ffcc directement avec un script php.

    Merci encore

  6. #6
    Membre chevronné Avatar de GihefBey
    Profil pro
    Inscrit en
    Avril 2006
    Messages
    366
    Détails du profil
    Informations personnelles :
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Avril 2006
    Messages : 366
    Par défaut
    Espérons qu'ils, dans PHP, te conseilleront de modifier intelligemment (CSS) tes articles.
    Pour ne pas avoir à y revenir lors d'un prochain changement de thème avec quelques milliers d'articles en plus (-;

    Ça ne doit pas être très différent de "modifier 66ffcc directement".

    -

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

Discussions similaires

  1. Réponses: 4
    Dernier message: 21/01/2009, 09h15
  2. changement de la couleur du texte + required
    Par ghnawfal dans le forum JSF
    Réponses: 5
    Dernier message: 07/10/2008, 17h10
  3. Changement de couleur du texte
    Par Mystic'Angel dans le forum Mise en page CSS
    Réponses: 2
    Dernier message: 06/02/2007, 10h25
  4. Réponses: 4
    Dernier message: 22/01/2007, 22h14
  5. Réponses: 4
    Dernier message: 23/06/2004, 15h30

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