Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8392279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:28:39+00:00 2026-06-09T19:28:39+00:00

Hello I’m having some issues with CSS on my blog. My WordPress theme has

  • 0

Hello I’m having some issues with CSS on my blog. My WordPress theme has a post styles section in the CSS file which have a class “Entry” in which “a” attribute is defined for the links inside the article area.
I generated a button from css generator and inserted the button in an article that is pointing to some other website using href. My CSS file has something like this,

.Entry a{color:black;text-decoration:underline};

.button {background:black;color:white And some other Styling};

I used this code to display the button.

<a href="some link" class="button">Go to this link</a>

Without the use of class=”button”, the link follow the Entry a property. But when I use class with it, it display the button with the mixture of Entry a and class button styles. I don’t want the button to use Entry a properties. Any help?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T19:28:40+00:00Added an answer on June 9, 2026 at 7:28 pm

    You could rewrite the first rule using the CSS3 :not pseudo-class selector as

    .Entry a:not(.button) {color:black;text-decoration:underline}
    

    This will do what you need, but it’s not supported by IE versions earlier than 9.

    A true cross-browser solution is more involved: you would need to “undo” the attributes that .Entry a applies in your .button rule. For example:

    .Entry a {color:black;text-decoration:underline}
    
    .button {color:white;text-decoration:none;background:black}
    

    Update: I forgot something quite important.

    If you do go the “undo” route you will need to make sure that the “undoing” selector has specificity at least equal to that of the first selector. I recommend reading the linked page (it’s not long) to get to grips with the concept; in this specific case to achieve this you have to write a.button instead of simply .button.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello i'm having some trouble in displaying multiple pushpins on maps. So far i've
hello all i am working on a project in which i have a webpage
Hello I've got this query to get users by email, which is an unique
Hello ever one I want to ask a question about file opening.I want to
Hello I need some help with a bug in Internet Explorer 9. I am
Hello I'm a newcomerin JavaScript language. I started to see some examples of JavaScript
Hello I want to convert a PDF file to text file. I am converting
Hello I have the following error by git-fsck, which cannot be cleaned by git-gc
Hello I have a loop which renders elements within a partial view. The elements
Hello good morning everyone, i have an iphone app which is still in development

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.