css hover color for a certain link

Dear Experts,
I want to have a certain link with white color. But I have a website wide css

I have a css for my links like below..
a:link {text-decoration:none;}    /* unvisited link */
a:visited {text-decoration:none;} /* visited link */
a:hover {text-decoration:underline;}   /* mouse over link */
a:active {text-decoration:underline;}  /* selected link */

I want to have bardak css has a link with white color, the hover state must be white too..
how can I give css to a certain link while I have a web sitewide css a and hover state.. thank you

.bardak
{
      margin-top:0px;
      width:188px;
      height:30px;
      border:1px solid #ccc;
      border-top-left-radius:10px;
      border-top-right-radius:0px;
      border-bottom-right-radius:0px;
      border-bottom-left-radius:0px;
      font-size: 24px;
      font-family: Calibri;
      font-weight: bold;
      text-align: center;
      background-color:#F79920;
      
      }
      
a.bardak hover {
  color: fff ;
  }
LVL 1
BRMarketingAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ray PaseurCommented:
<style type="text/css">
a:link {text-decoration:none;}    /* unvisited link */
a:visited {text-decoration:none;} /* visited link */
a:hover {text-decoration:underline;}   /* mouse over link */
a:active {text-decoration:underline;}  /* selected link */

/*
I want to have bardak css has a link with white color, the hover state must be white too..
how can I give css to a certain link while I have a web sitewide css a and hover state.. thank you
*/
.bardak
{
    margin-top:0px;
    width:188px;
    height:30px;
    border:1px solid #ccc;
    border-top-left-radius:10px;
    border-top-right-radius:0px;
    border-bottom-right-radius:0px;
    border-bottom-left-radius:0px;
    font-size: 24px;
    font-family: Calibri;
    font-weight: bold;
    text-align: center;
    background-color:#F79920;
    color: white; /* LINK COLOR */
}

a.bardak:hover
{
    color: white;
}
</style>

<body bgcolor="green">
This is <a href="#">text with a link</a>
This is <a class="bardak" href="#">Bardak</a> link
</body>

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
Just place the style content you have now below any css files you have.
0
BRMarketingAuthor Commented:
thank you very much
0
Ray PaseurCommented:
Glad to help.  Thanks for the points, ~Ray
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.