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 9137775
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:10:10+00:00 2026-06-17T09:10:10+00:00

I have a link in which a span is embedded containing a less than

  • 0

I have a link in which a span is embedded containing a “less than” arrow < followed by a nbsp and some text:

<a href=".."><span class="smallbutton">&lt;</span>&nbsp;back to overview</a>

I want the entire anchor to be gray text except for the < which should be white. The entire anchor should be orange text on hover but I can’t get that to work… I wonder if it’s possible just by using CSS, but I doubt it.

Styling (currently closest attempt):

.smallbutton {
    background-color: #AAAAAA;
    border-radius: 8px 8px 8px 8px;
    color: white;
    display: inline-block;
    height: 20px;
    text-align: center;
    width: 20px;
}
.smallbutton:hover {
    background-color: #DDDDDD;
    color: inherit;
}
a:link, a:visited {
    color: gray;
    text-decoration: none;
}
a:active {
    color: #FC930A !important;
    text-decoration: none;
}
a:hover, a:focus {
    color: #F7C41F !important;
    text-decoration: none;
}

The problem is, I expected the !important to override white but it doesn’t…

Here is the jsfiddle: http://jsfiddle.net/2GX2Y/

The colors that are on the < should be there when just hovering over the containing <a> tag, not just the < itself.

  • 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-17T09:10:11+00:00Added an answer on June 17, 2026 at 9:10 am

    I think if you change

    .smallbutton:hover
    

    to

    a:hover .smallbutton
    

    then you’ll have what you want. But I may have misunderstood the question.

    Just let me know!

    Here is the example http://jsfiddle.net/tRRRV/1/

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

Sidebar

Related Questions

Story: I have a link which has some text. A part of the link
I have a link: <a id=nextBut href=somelink class=button><span>Next Step</span></a> And I can control the
I have a link containing a span which should read something like link +,
I have a link which animates some div 's height when its hovered, but
I have some internal link which shows different content. Everytime I click the internal
I have the following output (via link) which displays the var_dump of some XML
I have this hidden link, which is needed for other purposes: <span id=notitle style=display:
I have a following code which displays a 'delete' link: <%= link_to :class =>
Hi Have a menu which look like this <div id=products_menu class=span-9 last> <ul> <li><a
I have the following which is not a link. the class ui-icon gives a

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.