Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

Underline links in widgets when hovering


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Oct 5, 2011, 11:26 AM
JulesG
 
47 posts · Sep 2011
Underline links in widgets when hovering

Hi,

Using Wordpress 321 and Atrahualpa 367 - ata-round

My work-in-progress Web site is here:
http://julesgobeil.com/wpfr/

Searching has found a few suggestions to underline links when hovering in widgets but they don't seem to work:

Code:
.widget ul li a:hover {
text-decoration: underline !important;
}
Code:
div.widget a:hover {
text-decoration: underline !important!;
}
Any suggestions ?

Thanks
Jules
  #2  
Old Oct 5, 2011, 02:40 PM
juggledad's Avatar
juggledad
 
20,010 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
you have to get an understanding of CSS. If you have two rules that could apply to an element, the more specific will win out, so if you coded
HTML Code:
.widget ul li a:hover {
text-decoration: underline !important;
}
but there is also a
HTML Code:
div.widget ul li a:hover {
text-decoration: none;
}
the second wins out
  #3  
Old Oct 6, 2011, 04:16 PM
JulesG
 
47 posts · Sep 2011
Thanks for your answer.

Last week, you have shown me that a CSS element that sits on another element will cover the bottom element. The least I could do before posting this question was to check that.

I cannot find any occurrence of "text-decoration: none" attached to hover parameters. All hover CSS has the underline text-decoration.

The links are underlined everywhere when hovering, except in the Categories widget. I spent hours trying to understand why !

What could be wrong ?
  #4  
Old Oct 6, 2011, 06:46 PM
juggledad's Avatar
juggledad
 
20,010 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
add the following to CSS Inserts
HTML Code:
div.widget a:hover {
	text-decoration: underline; 
	}
  #5  
Old Oct 7, 2011, 05:54 AM
JulesG
 
47 posts · Sep 2011
Many thanks for your help.

As I wrote in my first post, I have already tried your suggestion: the only difference being that I added !important. Unfortunately it doesn't work, with or without !important.

I'm beginning to think something is wrong with my installation. File or line missing, or maybe a curse...

I care to have all links underlined when hovering because it is important for color blind persons.

Any thoughts ?

Thanks for your help
Jules
  #6  
Old Oct 7, 2011, 06:08 AM
juggledad's Avatar
juggledad
 
20,010 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
did you put it at the end of your CSS Inserts?
I don't see it in the page source.

You have a LOT of additional CSS that looks like it was lifted from somewhere else and it could cause the issue.

Last edited by juggledad; Oct 7, 2011 at 06:11 AM.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] trying to get links in my widgets to underline when hovered... derekwbeck Sidebars & Widgets 3 Nov 27, 2010 12:26 AM
Hovering over links in sidebar - I want WHOLE background to change, not just text. in10 Sidebars & Widgets 10 Sep 1, 2010 02:30 PM
[SOLVED] How do you change links on pages to have dotted underline heimir Forum How-To 4 Apr 2, 2010 04:45 PM
Underline Links hollow Sidebars & Widgets 0 Feb 19, 2010 01:19 AM
[SOLVED] How to underline links on hover in widgets? Whitelisted Sidebars & Widgets 3 Oct 10, 2009 01:24 PM


All times are GMT -6. The time now is 06:14 PM.


Powered by vBulletin® Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.