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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:39:10+00:00 2026-05-25T23:39:10+00:00

I got this code: <div class=class1><a href=http://nvm/>text</a></div> CSS code of class1 is following: .class1

  • 0

I got this code:

<div class="class1"><a href="http://nvm/">text</a></div>

CSS code of class1 is following:

.class1 {
       text-decoration: none;
}

The output looks on, until I move the mouse over the div. The text is underlined then.

Sure, I’ve tried a lot of methods like:

.class1:hover {
      text-decoration: none;
}

I’ve also tried to add a !important attribute, but still without expected results. :/

I’ve also used firebug to debug the HTML & CSS code, and I can’t find any class with attribute text-decoration: underline;.

I know this is such a silly question, but I’m out of ideas.

  • 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-05-25T23:39:10+00:00Added an answer on May 25, 2026 at 11:39 pm

    You should set the text-decoration property to none for the a element inside of .class1, since that is the element that contains the text (and likely the element that you are hovering on).

    For example:

    .class1 a (all a tags whose ancestor is .class1)

    OR

    .class1 > a (all a tags whose parent is .class1)

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

Sidebar

Related Questions

I've got this code: <html> <head> <link type=text/css href=css/blitzer/jquery-ui-1.7.2.custom.css rel=stylesheet /> <script type=text/javascript src=js/jquery-1.3.2.min.js></script>
I've got code like this on my page: <div class=item item_wall id1></div> <div class=item
Hallo all. I got this piece of code: <div> <input id=id1 name=radioButton type=radio> <input
It's a really simple problem. I've got HTML code like this : <div> <img
I got this code from the wordpress <head profile=http://gmpg.org/xfn/11> What does this means? what
I have the following code on about 5 different pages: <div class=pagination> <p class=page-numbers
On my Drupal website I've got something like this: <div class=form-item form-type-textfield item-1> <div
Here's some code I've got in my sandbox.php file: <div class=jq> <img class=active id=also
relative(?) links: http://api.jquery.com/each/ http://api.jquery.com/jQuery.each/ hello i got this navigation menu <table> <tr> <td><div id=menuItem1
Got this code for a viewscroller from the apple developers site. @synthesize scrollView1, scrollView2;

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.