Remove Underline on Hover - css

I've tried everything I could to remove the underline that appears when hovering over a product title on my Shopify. Any css suggestions as to how I can remove this underline anywhere that a product title appears?
Thank you!!!

**Try these two**
a:link {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}

Yeah. I had encountered this issue before. Just use below code snippet:
.site-nav__link:hover span.site-nav__label { border-bottom: none; }
From my code snippet. Just replace it with your div

Related

How to disable text decoration with CSS?

So, I need to remove a visited link coloring from my navigation bar, as it will look ugly.
I have tried to use text-decoration: none; and color: white; but that does not seem to help it.
CSS for navigation
Actual code
I removed the actual links from the code, in the real version there is link but for this question links are replaced with #
In addition to Bariock's answer, this will help reset your <a> links in all circumstances to your specified css.
a:visited, a:hover, a:active, a:focus {
color: yourColor !important;
text-decoration: none !important;
outline: none !important;
}
The !important signifies that it has a higher precedence than that of other rules declaring the same values for the same selectors. Note: you can still style them separately such like you would with :hover.
a:visited{
color: your-color;
}
I edited the <a> tag to go around the <button> so the text is back to white now and the button actually works. It is no longer just "click text to visit link" the whole button works.
<button class="dropbtn">Community</button>
Try adding a !important to the end of the css styles like so:
a {
color: white !important;
}
Hope this helps!
I recommend you first set the style of the link tag, for example:
.dropdown a{ color:#fff }
now your text links inside the container with the class .dropdown will be as white color. Then you don't need to set a visited link color, unless you want to set it.
If you want to get rid the underline in the link, your style will be like this:
.dropdown a{ color:#fff; text-decoration: none; }

Highlight menu item for the current page user is on

I'm trying to highlight this menu item so the user can see the page they are currently on. It can be bold or underlined, whatever really. If it can be done only using CSS that would be ideal.
here's what my inspect element looks like for the page :
Any help is much appreciated. Thanks!
It's just an example:
li.current-menu-item {
// Your style Below */
text-decoration: underline;
}
or
li.current-menu-item a {
/* Your style Below */
border-bottom: 1px solid #dd614a;
}

How to remove underline in links in wordpress?

I am new to wordpress theme development.I tried well but not getting right .how to remove underline from links.
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url')?>">
<h1 calss="vijay">
<?php wp_loginout('www.google.co.in')?>
</h1>
css file.
h1{
color:red;
text-decoration: none;
}.
I have just discovered that WordPress adds a box-shadowto some of its tags.
a {
text-decoration: none !important;
box-shadow: none !important;
}
Hyperlinks are governed by anchor tags <a> hence you have to use a in
your css link this
h1 a {
text-decoration: none;
}
you can refer to W3School
Its not the h1 that has the underline, it is the a tag sitting underneath it. So, try
h1 a{
text-decoration:none;
}
a{
text-decoration: none;
}
Copy This code & past in Your CSS file
The best option, tested and trusted is just to add this code in the customization tab.
a {
border-bottom: none !important;
}
And the error is gone.

How to remove underline on hover?

I can't remove the underline on hover on this page:
http://www.studyroomguides.net/?page_id=19
I have tried adding:
.a:hover{
text-decoration: none;
}
I'd like the underline to be removed on hover.
Remove the . before a:hover. The . symbol indicates a CSS class, but a is an element (a stands for anchor), not a class name. It should be: a:hover { text-decoration: none; }.
It's because there is no text decoration on hover.Look closely and you will notice that on hover it's border-bottom.Remove that border and you'll be fine.
This is your css on hover:
.entry-content a:hover{
border-bottom-color: #424242;
}

how do I make HTML links show hover style?

I have some HTML markup in my ASP.NET master page representing a basic navigation menu. THree words that link to three pages. My CSS and HTML are included below for your reference.
When I load the page, the links appear with the correct color (red). If I hover over a link, the link changes to the correct color (blue). So far, we're good. Clicking a link changes the link color to the correct color (yellow). The two remaining links are still red / blue as expected. Clicking a second link changes that link to yellow also. Now I have two yellow links. Neither yellow link displays the hover color (blue) like I'd prefer. Clicking the third link causes it to be yellow, too and none of the links display the hover style.
Although a link has been clicked, I'd like the color to be stored and have the hover color displayed. How do I accomplish this? This is an ASP.NET web application project but I'm only using straight HTML at this point.
/* --- css --- */
a:link
{
color: red;
text-decoration: none;
}
a:hover
{
color: blue;
text-decoration: none;
}
a:active
{
color: green;
text-decoration: none;
}
a:visited
{
color: yellow;
text-decoration: none;
}
/* --- HTML --- */
<p class="MenuItems">
Cars.
Trucks.
Vans.
</p>
As described here, the :hover declaration must come AFTER the :visited and :active declarations.
Basically, in the cascade of your current styles, you won't ever see the :hover color.
Your
a:hover
declaration must come after your
a:visited
declaration in the stylesheet because the visited state is currently taking priority. Always put hover at the end of the a styles declaration block to prevent this.
a:link -> a:visited -> a:active -> a:hover is the optimal ordering.
Just use this:
a:hover
{
color: blue ! important;
text-decoration: none ! important;
}
or as described - use this order:
a:link
{
color: red;
text-decoration: none;
}
a:active
{
color: green;
text-decoration: none;
}
a:visited
{
color: yellow;
text-decoration: none;
}
a:hover
{
color: blue;
text-decoration: none;
}

Resources