Change the appearance of links
Change the color of links
Change the color of links
In the code (CSS) layout of a blog template, you can find 5 paragraphs on the display of links, including:
a {
...
} a: link {
...
} a: visited {
...
} a: active {
...
} a: hover {
...
} 1) "a" is used to apply the same statement to the 4 display modes (see below from 2 to 5) links without having to repeat it;
2) "a: link '( optional) is the aspect of the relationship is not or has not been under the cursor;
3) "a: visited (optional) is the aspect of the link already visited;
4) "a: active (optional) is the aspect of the relationship when he is ready to be activated;
5) "a: hover" is the aspect of the link under the cursor.
ORDER IS IMPORTANT INSTRUCTIONS. MUST BE PLACED ABOVE "A: HOVER 'END AS OTHERWISE IF THE SITE HAS BEEN VISITED THE COLOR OF THE LINK DOES MORE CHANGE IS ON THE OVERVIEW OF THE CURSOR WITH THE MOUSE.
The main instructions that can modify or add these paragraphs are:
text-decoration: underline; (= stressed);
text-decoration: none; (= emphasis);
font-family: (police character);
color: (color);
background (background color);
border: (bordure) ;
padding: (marge) ;
font-weight: bold; (=gras) ;
font-weight: normal; (=pas gras).
Exemple :
a:link {
font-weight: bold;
text-decoration: underline;
color: #191970;
background: transparent;
}
a:visited {
font-weight: bold;
text-decoration: underline;
color: #191970;
background: transparent;
}
a:active {
font-weight : bold;
text-decoration : none;
color: #88bb22;
background: transparent;
}
a:hover {
font-weight: bold;
text-decoration: underline;
color: # 88bb22;
background: transparent;}
Method: In the HTML version of a message or a gadget (it avoids touching the "model" or "template"):
1) create a style sheet \u0026lt;style> starting and ending by \u0026lt;/ style>;
2) in this style sheet, provide applicable codes to tags attached to a name: eg "lienrouge"
a {
...
} a: link {
...
} a: visited {
...
} a: active {
...
} a: hover {
...
} 1) "a" is used to apply the same statement to the 4 display modes (see below from 2 to 5) links without having to repeat it;
2) "a: link '( optional) is the aspect of the relationship is not or has not been under the cursor;
3) "a: visited (optional) is the aspect of the link already visited;
4) "a: active (optional) is the aspect of the relationship when he is ready to be activated;
5) "a: hover" is the aspect of the link under the cursor.
ORDER IS IMPORTANT INSTRUCTIONS. MUST BE PLACED ABOVE "A: HOVER 'END AS OTHERWISE IF THE SITE HAS BEEN VISITED THE COLOR OF THE LINK DOES MORE CHANGE IS ON THE OVERVIEW OF THE CURSOR WITH THE MOUSE.
The main instructions that can modify or add these paragraphs are:
text-decoration: underline; (= stressed);
text-decoration: none; (= emphasis);
font-family: (police character);
color: (color);
background (background color);
border: (bordure) ;
padding: (marge) ;
font-weight: bold; (=gras) ;
font-weight: normal; (=pas gras).
Exemple :
a:link {
font-weight: bold;
text-decoration: underline;
color: #191970;
background: transparent;
}
a:visited {
font-weight: bold;
text-decoration: underline;
color: #191970;
background: transparent;
}
a:active {
font-weight : bold;
text-decoration : none;
color: #88bb22;
background: transparent;
}
a:hover {
font-weight: bold;
text-decoration: underline;
color: # 88bb22;
background: transparent;}
* * * * *
Moreover, IT IS POSSIBLE TO CHANGE THE COLOR OR THE APPEARANCE OF MORE THAN ONE LINK (S) in a single message : In this example the links are of different colors, even TONE: click here. Method: In the HTML version of a message or a gadget (it avoids touching the "model" or "template"):
1) create a style sheet \u0026lt;style> starting and ending by \u0026lt;/ style>;
2) in this style sheet, provide applicable codes to tags attached to a name: eg "lienrouge"
3) add the name inside of tags (div, span ...), or, in the example: \u0026lt;span class="lienrouge" ...>: the style sheet apply to text within those tags.\u0026lt;style type="text/css">. lienrouge a: link {text-decoration: underline; color: red;}. lienrouge a: visited {text-decoration: underline; color: red;}. lienrouge a: hover {color: # 88bb22;} \u0026lt;/ style>
0 comments:
Post a Comment