Click to See Complete Forum and Search --> : How to adjust link colors in a div or table
ketanco
02-08-2009, 11:53 PM
Hello,
How do you specify all the links' colors only in a particular div or only in a particular table? (again, just the links)
Although I write as below, the links do not appear red:
.bottombuttons
{
position:absolute;
left:5px;
top:2200px;
font-family: arial; font-size:12px; font-color: red;
}
I can not seem to adjust font size of the links either even if change the font size above to something other than 12px...
ktulife_86
02-09-2009, 01:56 AM
Iam not sure if i have understood your problem correctly, but if you want your all the links to appear red:
In css: a { color:#FF0000; font-size: 12px;}
If you want all your links to appear Black when you place d cursor on it then:
a.hover { color: #000000;}
Avoid giving class to Links But if you have to, then gv specific class name to that hyperlink.
eg:
<a class="one" href=" abc.com">
CSS for this would be:
a.one { color:#FF0000;}
hope this helps.. leme knw if ne errors...
ketanco
02-09-2009, 02:22 AM
Iam not sure if i have understood your problem correctly, but if you want your all the links to appear red:
In css: a { color:#FF0000; font-size: 12px;}
If you want all your links to appear Black when you place d cursor on it then:
a.hover { color: #000000;}
Avoid giving class to Links But if you have to, then gv specific class name to that hyperlink.
eg:
<a class="one" href=" abc.com">
CSS for this would be:
a.one { color:#FF0000;}
hope this helps.. leme knw if ne errors...
the one you are suggesting is for the whole links in the entire document. What I am looking for though, is to know how can I do it for the links only in a certain div or table, NOT the entire document.
ktulife_86
02-09-2009, 02:35 AM
Olright..simple.
.divClassName a { color:#000000; font-size:12px;}
try this..oughtto work..