hernantz
08-26-2010, 10:21 PM
You may have found the title a little confusing. But what i wanted to know if it is possible to somehow adapt some css classes (with a generic styling) to modify just some piece of that css and adapt it to a specific div, element, whatever.
For example
.GenericLink{
color: #fff;
font-weight: bold;
text-decoration: none;
}
.GenericLink:hover{
text-decoration: underline;
}
And I want to have a link with same css of GenericLink, but margin-top: 10px for example....
Do i have to create a whole new class? or can i just adapt the current class for this particular case.
.CustomLink{
color: #fff;
font-weight: bold;
text-decoration: none;
margin-top: 10px;
}
.CustomLink:hover{
text-decoration: underline;
}
Thanks in advance.
For example
.GenericLink{
color: #fff;
font-weight: bold;
text-decoration: none;
}
.GenericLink:hover{
text-decoration: underline;
}
And I want to have a link with same css of GenericLink, but margin-top: 10px for example....
Do i have to create a whole new class? or can i just adapt the current class for this particular case.
.CustomLink{
color: #fff;
font-weight: bold;
text-decoration: none;
margin-top: 10px;
}
.CustomLink:hover{
text-decoration: underline;
}
Thanks in advance.