View Full Version : How to add css link to footer?
toplisek
05-17-2007, 02:48 PM
I would like to define specific colour to css element footer if there is link. How to do it?
Need help.
footer has css like:
.footer {
text-align: center;
color: #F5CC8E;
font-size: 11px;
}
Spiritvn
05-17-2007, 03:19 PM
Use and see example:
.footer a, .footer a:visited {
font-weight: bold;
font-decoration: none;
font-size: 11px;
color: #ffffff;
}
.footer a:hover {
font-weight: bold;
font-decoration: underline;
font-size: 11px;
color: #000000;
}
it means if u have a link on the footer it will be #FFFFFF color (White) and bold with 11px font-size, no text decoration. The same for the visited link, but if you hover on the link, it will underline that link and change the font color to #000000 (Black).
mwinter
05-17-2007, 03:28 PM
it means if u have a link on the footer it will be ... bold with 11px font-size, no text decoration.
Why would one want that? Specifying font size in pixels prevents native font resizing (a bad thing - use percentages), and links are universally recognised as underlined text. Why change such a well-recognised convention?
toplisek
05-17-2007, 03:47 PM
thanks it works
Spiritvn
05-17-2007, 04:08 PM
Why would one want that? Specifying font size in pixels prevents native font resizing (a bad thing - use percentages), and links are universally recognised as underlined text. Why change such a well-recognised convention?
-.- just an example for him to understand, man. Do not be angry with an example -.-, how the link look is his choice.
mwinter
05-17-2007, 04:14 PM
just an example for him to understand, man.
Is there any reason why examples can't follow good practice guidelines?
Do not be angry with an example
Where am I angry?
how the link look is his choice.
Yes, but that doesn't mean that I, or anyone else, has to like it. Moreover, have you considered that the OP just wouldn't know that there might be a problem.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.