[Couleur des liens] Modification du CSS ?

:stuck_out_tongue:

J’aimerais fairte en sorte que tous les liens de mon blog (sous Dotclear) apparaisse en rouge , ji’magine qu’il faut editer le style CSS mais je vois pas vraiment ou :confused:

(:alert: pub mais je suis olbigé …)

http://boblenain200.free.fr/dc/ Pour le blog

Le copie du style CSS (j’ai viré les coms)


@import "layout.css";

body {
	font-family : Tahoma,Arial,Helvetica,sans-serif;
	font-size : 80%;
	background : #222 url(images/background.jpg) repeat-x;
	text-align: center;
}

/*Formulaires*/
input, textarea{border: 1px solid #DDD;background: #F2F2F2;color: #333;}
textarea{width: 100%;}
input:focus, textarea:focus{border: 1px solid #999;}
fieldset{border: none;}

img{
	border: 0;
}

code, pre{font-family: "Courier New", monospace; font-size : 1em;}
/* Merci Kozlika :) */
pre {
	background: #EEE;
	color: #000;
	border: 1px solid #DDD;
	margin : 0 auto;
	margin-bottom : 1em;
	padding : 0.5em;
	text-align:left;
	white-space:normal;
		/* caché pour IE 5 Mac qui sait pas faire - Ne pas supprimer cette ligne  \*/
		white-space:pre;
		width: 95%;
		overflow : auto;
}
	/* Fin hack Ne pas supprimer cette ligne */

acronym, abbr{border-bottom: 1px dotted;cursor : help;}
q{font-style : italic;}

a{color : #222;}
a:visited{color: #622;}
a:hover, a:focus, a:active{color: #111;}
a[hreflang]:after {content: "\0000a0[" attr(hreflang) "]";color : #666;background : transparent;}

h2, h3 {
	font-family : "Trebuchet MS",Arial,Helvetica,sans-serif;
}

h2{font-size: 1.4em;}
h3{font-size: 1.3em;}
h4{font-size: 1.2em;}
h5{font-size: 1.1em;}
h6{font-size: 1.0em;}

.left{
	float: left;
	margin-right: 1em;
}

.right{
	float: right;
	margin-left: 1em;
}

/* Page
****************************************************************/
#page {
	background: transparent url(images/bg.png) repeat-y left;
}

/* Top
****************************************************************/
#top {
	background: #444 url(images/top.jpg) no-repeat center bottom;
}

#top h1{
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.2em;
	text-align: center;
}

#top h1 a{
	color: #FFF;
	text-decoration: none;
}

#prelude{
	text-align: center;
	color: #444;
}

#prelude a{
	color: #444;
	background: transparent;
}

#prelude a:hover{
	color: #999;
}

/* Main
****************************************************************/
#main {
	background: #FFF;
	color: inherit;
	overflow: hidden; /* Cache ce qui déborder (images par ex.) pour ne pas casser la mise en page */
}

/* Contenu
****************************************************************/
#content {
	margin: 10px;
	padding-bottom: 1em;
	padding-left: 20px;
}

.day-date{
	display: none;
}

/* post-title */
.post-title {
	background : transparent url(images/sstar.png) no-repeat 0 0.2em;
	padding-left : 20px;
	margin: 0 0 0 -20px;
}

.post-title a {
	color : #000;
	text-decoration : none;
}

/* post-info */
.post-info{
	font-size: 0.85em;
	margin-top: 0;
	color: #333;
	background: transparent;
}

.post-content, .post-chapo{
	line-height: 1.6em;
	text-align: justify;
	color: #222;
	background: transparent;
}

.post-content ul{
	list-style-image: url(images/puce.png);
}

/* Pour limiter la taille des images trop grandes
*  ajoutez un slash derrière l'étoile -> *
.post-content img{
	max-width: 100%;
}
/**/

/* post-info-co */
.post-info-co {
	clear: both;
	font-size: 0.85em;
	text-align: right;
	margin-bottom: 3em;
}

.post-info-co span{
	display: none;
}

.post-info-co a{
	padding-left: 12px;
	background: transparent url(images/co.png) no-repeat left;
}

/* comments */
#comments span{
	display: none;
}

#comments blockquote{
	text-align: justify;
}

.commentid{
	border-right: 1px solid #DDD;
	text-decoration: none;
	color: #999;
	background: transparent;
	padding: 3px 6px;
}

.field label{
	display: block;
	cursor: pointer;
	cursor: hand;
}

/* Sidebar
****************************************************************/
#sidebar {
	background: #FFF;
	color: inherit;
	line-height: 1.4em; /* peek-a-boo bug d'IE */
}

#sidebar div{
	margin-left: 10px;
	margin-right: 10px;
}

#sidebar h2 {
	background: transparent url(images/h2side.png);
	color: #666;
	padding: 5px;
	font-size: 1.2em;
}

#sidebar ul{
	list-style: none;
	margin: 0;
	padding: 0;
}

#sidebar a{
	text-decoration: none;
}

#selection h2{
	color: #000;
}

/* Bloc de recherche */
#search{
	position: absolute;
	width: 240px;
	top: 40px;
}

#search h2{
	display: none;
}

#search p{
	margin: 0;
}

#search #q{
	background: #404040 url(images/search.png) no-repeat 3px center;
	color: #eee;
	border: 1px solid #333;
	padding-left: 20px;
	width: 70%;
}

/* Calendrier */
#calendar table{
	width: 220px;
	margin: 0 auto;
	font-size: 0.8em;
}

#calendar caption{
	margin: 0 auto;
	background: #EEE;
	padding: 0.5em 0;
	color: #666;
}

#calendar abbr{
	border: none;
}

#calendar td{
	background: #F5F5F5;
	text-align: center;
}

#calendar td a{
	display: block;
	font-weight: bold;
	background: #E0E0E0 url(images/today.png) no-repeat right top;
	color: #933;
}

#categories, #links{
	margin-top: 3em;
}

/* Liens */
#links h3{
	color: #999;
	background: transparent;
	margin-bottom: 0.5ex;
	font-size: 1em;
}

#links a{
	padding-left: 20px;
	background: #FFF url(images/chkd.png) no-repeat left center;
}

#links a:visited{
	padding-left: 20px;
	background: #FFF url(images/chkh.png) no-repeat left center;
}

/* Footer
****************************************************************/
#footer {
	background: #EEE;
	color: #AAA;
	text-align: center;
}

#footer a{
	color: #AAA;
	background: transparent;
	font-weight: bold;
	text-decoration: none;
}

/*Tribune
*****************************************************************************/
    #tribune p { overflow: hidden; margin: 0; font-size: 0.9em; line-height: 1.5em }

    #tribune form { margin: 0; margin-top: 0.9em; margin-bottom: 0.9em; text-align: center }

    #tribune h4 { color: black; border-bottom: 1px dotted black; font-size: 0.8em; }

    #tribarchive h4 { color: black; border-bottom: 1px dotted black; font-size: 0.9em; }

    #tribarchive p { overflow: hidden; margin: 0; font-size: 0.9em; line-height: 1.5em }


/*Navigation
************************************************************

#billetSelection {	
border-right: 1px solid #DDD;
	text-decoration: none;
	color: #999;
	background: transparent;
	padding: 3px 6px;
}

ici :
[cpp]# a{color : #222;}

a:visited{color: #622;}

a:hover, a:focus, a:active{color: #111;}

a[hreflang]:after {content: “\0000a0[” attr(hreflang) “]”;color : #666;background : transparent;}[/cpp]

a : liens
a:visited : liens déjà visités
a:hover : lien lors du passage de la souris

Merci :jap:

C’est en quel code qu’il faut mettre le couleur ?

Hexadécimal, ie: tu remplace #222 par #0f0 pour un vert pure, etc.

#rgb
#rr’gg’bb’
ou encore green, etc.

(r, g, b: trois constantes en hexa, qui valent de 0 à 255 en décimal, et qui représente le rouge, vert et le bleu).

#rgb est équivalent à : #rrggbb (ex: #0f0 <=> #00ff00)

A oky merci Sans-nom je comprenais pas pourquoi des fois les couleurs en exo n’avait que 3 caracteres :slight_smile: #XXX

:jap: