[css-d] Specificity Problem

2008-12-24 Thread Dan Gayle
I am having a specificity problem that I need help with. I am trying to create an info box that floats to the right within my main content div that uses the cascade to supply the styling. The content of that info box needs to be marked up using plain html elements, because the content

Re: [css-d] Specificity Problem

2008-12-24 Thread JR Heard
On Wed, Dec 24, 2008 at 11:44 AM, Dan Gayle danga...@gmail.com wrote: The full example can be found here: http://dangayle.com/test.html Firebug isn't picking up any of the div.extra-info styles you've defined in the head section. Solve that, and I'd bet you'll solve your problem. (I'd start by

Re: [css-d] Specificity Problem

2008-12-24 Thread Jonny Stephens
On 24 Dec 2008, at 17:44, Dan Gayle wrote: I am having a specificity problem that I need help with. I am trying to create an info box that floats to the right within my main content div that uses the cascade to supply the styling. The content of that info box needs to be marked up using plain

Re: [css-d] Specificity Problem

2008-12-24 Thread Jukka K. Korpela
JR Heard wrote: On Wed, Dec 24, 2008 at 11:44 AM, Dan Gayle danga...@gmail.com wrote: The full example can be found here: http://dangayle.com/test.html Firebug isn't picking up any of the div.extra-info styles you've defined in the head section. Solve that, and I'd bet you'll solve your

[css-d] specificity problem only in IE7??

2007-07-12 Thread Luc
Good afternoon list, In my footer i have links that in the hover state are underlined. Works in Opera, FF, Moz but not in IE7. For IE6 i had to add an aditional rule to make always show underlined (i can live with that), but i was wondering if it's a specific IE7 problem?

Re: [css-d] specificity problem only in IE7??

2007-07-12 Thread Alex Robinson
In my footer i have links that in the hover state are underlined. I can't see which links you mean. Could you be a bit more specific about ones you're on about? It's possible that you have been bitten by what I call fuzzy specificity http://www.fu2k.org/alex/css/hacks/fuzzyspecificity

Re: [css-d] specificity problem only in IE7??

2007-07-12 Thread Luc
Good afternoon Alex, It was foretold that on 12/7/2007 @ 16:32:51 GMT+0100 (which was 12:32:51 where I live) Alex Robinson would write: snipped a bit I can't see which links you mean. Could you be a bit more specific about ones you're on about? The ones inside the footer: empresa,

Re: [css-d] specificity problem only in IE7??

2007-07-12 Thread Martin Heiden
Olá Luc, on Thursday, July 12, 2007 at 17:22 Luc wrote: Good afternoon list, In my footer i have links that in the hover state are underlined. Works in Opera, FF, Moz but not in IE7. For IE6 i had to add an aditional rule to make always show underlined (i can live with that), but i

Re: [css-d] specificity problem only in IE7??

2007-07-12 Thread Luc
Good afternoon Martin, It was foretold that on 12/7/2007 @ 17:55:52 GMT+0200 (which was 12:55:52 where I live) Martin Heiden would write: snipped a bit If you want to style the links in the footer way different from the rest, use: #footer a:link { .. } #footer a:visted { ... } #footer

[css-d] Specificity problem with a and text-decoration

2006-09-05 Thread Jim Ratliff
By default, my links within a certain div are not underlined. div.column-content a {color: #ff0080; text-decoration: none;} However, I want some of those links to be underlined. So for those, I defined a style: a.force-link-decoration {text-decoration: underline; } To apply

Re: [css-d] Specificity problem with a and text-decoration

2006-09-05 Thread francky
Jim Ratliff wrote: By default, my links within a certain div are not underlined. div.column-content a {color: #ff0080; text-decoration: none;} However, I want some of those links to be underlined. So for those, I defined a style: a.force-link-decoration {text-decoration:

Re: [css-d] Specificity problem with a and text-decoration

2006-09-05 Thread Jim Ratliff
Thanks very much! I used your solution #1 (removing the div from div.column- content). (#2 wasn't general enough for all the contexts I want to use it.) And that worked: it underlined what I needed to have underlined. Thanks, too, for the two additional resources. The Calculating a

Re: [css-d] Specificity Problem

2006-01-10 Thread Nick Fitzsimons
At 02:11 PM 1/9/2006, CJ Larson wrote: lia href=about id=active id=menu_aboutspanAbout/span/a/li Note we have just changed the class=active to id=active. Your global CSS file would then include something like this: ul li a#active {background-color: foo;} One note about this: now

Re: [css-d] Specificity Problem

2006-01-10 Thread Nick Fitzsimons
And now I see your retraction (sigh). Ah well, maybe having the links in the archive will be of value if this discussion ever comes up again :-) Regards, Nick. -- Nick Fitzsimons http://www.nickfitz.co.uk/ __ css-discuss

Re: [css-d] Specificity Problem

2006-01-10 Thread L. David Baron
On Monday 2006-01-09 15:07 -0500, Adam Kuehn wrote: Darn it. I hit send by mistake, before I verified this claim. That is, of course, not correct. Only one ID per element is allowed. I hate having to print retractions, but that's what I get for doing this stuff while I'm busy with other

Re: [css-d] Specificity Problem

2006-01-10 Thread Adam Kuehn
Philippe Wittenbergh wrote: On 10 Jan 2006, at 3:21 am, Adam Kuehn wrote: [1] http://www.littleandreid.com/mentaidyn/about ul class=mainnav lia href=/ id=menu_defaultspanHome/span/a/li lia href=about class=active id=menu_aboutspanAbout/span/a/li [--more links--] /ul But in this

Re: [css-d] Specificity Problem

2006-01-09 Thread Adam Kuehn
At 01:11 AM 1/7/2006, Rahul Gonsalves wrote: [1] http://www.littleandreid.com/mentaidyn/about ul class=mainnav lia href=/ id=menu_defaultspanHome/span/a/li lia href=about class=active id=menu_aboutspanAbout/span/a/li [--more links--] /ul Now, I want to assign the class Active to have the

Re: [css-d] Specificity Problem

2006-01-09 Thread CJ Larson
Your original problem was that this selector was not sufficiently specific to override your other declarations for the anchor. I am suggesting that your content management system should generate something like this, instead: lia href=about id=active id=menu_aboutspanAbout/span/a/li

Re: [css-d] Specificity Problem

2006-01-09 Thread Adam Kuehn
At 02:11 PM 1/9/2006, CJ Larson wrote: lia href=about id=active id=menu_aboutspanAbout/span/a/li Note we have just changed the class=active to id=active. Your global CSS file would then include something like this: ul li a#active {background-color: foo;} One note about this: now

Re: [css-d] Specificity Problem

2006-01-09 Thread Adam Kuehn
At 02:56 PM 1/9/2006, Adam Kuehn wrote: At 02:11 PM 1/9/2006, CJ Larson wrote: lia href=about id=active id=menu_aboutspanAbout/span/a/li Note we have just changed the class=active to id=active. Your global CSS file would then include something like this: ul li a#active

Re: [css-d] Specificity Problem

2006-01-09 Thread Philippe Wittenbergh
On 10 Jan 2006, at 3:21 am, Adam Kuehn wrote: [1] http://www.littleandreid.com/mentaidyn/about ul class=mainnav lia href=/ id=menu_defaultspanHome/span/a/li lia href=about class=active id=menu_aboutspanAbout/span/a/li [--more links--] /ul lia href=about class=active

[css-d] Specificity Problem

2006-01-06 Thread Rahul Gonsalves
Dear All: My first time using a CMS (TxtPattern), and I'm struggling a bit. I'm trying to set the active link on this page [1], to a different color from the rest. ul class=mainnav lia href=/ id=menu_defaultspanHome/span/a/li lia href=about class=active id=menu_aboutspanAbout/span/a/li

Re: [css-d] Specificity Problem

2006-01-06 Thread Martin Heiden
Rahul, on Friday, January 6, 2006 at 16:03 Rahul Gonsalves wrote: ul class=mainnav lia href=/ id=menu_defaultspanHome/span/a/li lia href=about class=active id=menu_aboutspanAbout/span/a/li [--more links--] /ul .mainnav li a:link { text-decoration: none; color: #FFF; padding: 1em;

Re: [css-d] Specificity Problem [SOLVED]

2006-01-06 Thread Rahul Gonsalves
Diego: diego nunes wrote: On 06/01/06, Rahul Gonsalves [EMAIL PROTECTED] wrote: Now, I want to assign the class Active to have the different background. Have you tried !important? .active { text-decoration: none !important; background-color: #FC0 !important;

Re: [css-d] Specificity Problem

2006-01-06 Thread Adam Kuehn
Rahul Gonsalves wrote: [1] http://www.littleandreid.com/mentaidyn/about ul class=mainnav lia href=/ id=menu_defaultspanHome/span/a/li lia href=about class=active id=menu_aboutspanAbout/span/a/li [--more links--] /ul Now, I want to assign the class Active to have the different background. What

Re: [css-d] Specificity Problem

2006-01-06 Thread Rahul Gonsalves
Hi Adam: Adam Kuehn wrote: Rahul Gonsalves wrote: [1] http://www.littleandreid.com/mentaidyn/about ul class=mainnav lia href=/ id=menu_defaultspanHome/span/a/li lia href=about class=active id=menu_aboutspanAbout/span/a/li [--more links--] /ul Now, I want to assign the class Active to

[css-d] Specificity problem

2005-06-05 Thread Linda Dunn
Hi all, In my test site here: http://www.seafoodlab.cmast.ncsu.edu/index.html [xhtml] http://www.seafoodlab.cmast.ncsu.edu/styles/sflabstyles.css [css] I have a specificity problem. The last thing I added were the default link styles at the very bottom of the page. However, adding this messes

Re: [css-d] Specificity problem

2005-06-05 Thread Anthony
try putting your global style at the top, instead of the bottom. It's a top-down processing. --- Linda Dunn [EMAIL PROTECTED] wrote: Hi all, In my test site here: http://www.seafoodlab.cmast.ncsu.edu/index.html [xhtml] http://www.seafoodlab.cmast.ncsu.edu/styles/sflabstyles.css [css]

Re: [css-d] Specificity problem

2005-06-05 Thread Anthony
what was the original link (you removed it from the thread). I'll take a look. --- Linda Dunn [EMAIL PROTECTED] wrote: Anthony wrote: try putting your global style at the top, instead of the bottom. It's a top-down processing. I already tried that, it doesn't make a difference.

Re: [css-d] Specificity problem

2005-06-05 Thread D Ross
Try background: transparent or background: none on the li link navs http://www.seafoodlab.cmast.ncsu.edu/index.html [xhtml] http://www.seafoodlab.cmast.ncsu.edu/styles/sflabstyles.css [css] I have a specificity problem. The last thing I added were the default link styles at the very

Re: [css-d] Specificity problem

2005-06-05 Thread David Laakso
On Sun, 05 Jun 2005 18:51:21 -0400, Linda Dunn [EMAIL PROTECTED] wrote: http://www.seafoodlab.cmast.ncsu.edu/index.html [xhtml] http://www.seafoodlab.cmast.ncsu.edu/styles/sflabstyles.css [css] I have a specificity problem. [...] So, why are the default a: styles overriding these? ld I have