- This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hello everyone, I’m new to CSS Tricks, and kinda a beginner so bare with me please :)
Well i have a little problem when using a class selector to style some of my links. Here’s what i’ve done:
I have styled all the links in the document to a standard look, but one particular thing I’ve done is make the bottom border dotted and red.
Then I have some links that I want to turn into "buttons" and i have give them the button class
But they have the default style applied to them so i use a class selector to change them
But they carry the default dotted bottom border with them, so i tried using a selector like this:
But it makes the style back to the default style I’ve created, no "box" around them. What can I do to remove the default style apply to them, the bottom border, and why doesn’t the above selector work? I’m testing this on Firefox 3.
Thanks for your help
This I think, will do the trick, change to this in CSS:
Just throwing the class buttons on the a won’t override it because you’ve defined them all to be one way. You will have to be very specific in the CSS to get your buttons class to override the normal settings. Since you defined a:link to be one way, you will have to use a:link.buttons in the CSS to override it.
Thanks for your responses, I changed my code and now it works, so now I see my problem was specifity, I’ll be more careful next time and do the math :D, thanks.