Unable to hide Underline in Mozillazine

Discuss application theming and theme development.
Post Reply
User avatar
mant
Posts: 48
Joined: August 27th, 2006, 4:34 pm

Unable to hide Underline in Mozillazine

Post by mant »

Something wrong here, Underline on this postlink cannot be hidden.

Screenshot:
Image


Code: Select all

I've put all these code in UserContent.css file:

a {text-decoration: NONE !important;}
a:link {text-decoration: NONE !important;}
:link {text-decoration: NONE !important;}
.postlink {text-decoration: NONE !important;}
.classname a {text-decoration: NONE !important;}
*|*:link {text-decoration: NONE !important;}
*|*:-moz-any-link {text-decoration: NONE !important;}

Even this brute-force code:

* {TEXT-DECORATION: NONE !IMPORTANT;}




Nothing works.
Theme Bug?
User avatar
Aris
Posts: 3248
Joined: February 27th, 2011, 10:14 am

Re: Unable to hide Underline in Mozillazine

Post by Aris »

The file name should be userChrome.css not UserContent.css.
Btw. switch to Stylish add-on, its easier to manage styles there.
User avatar
smsmith
Moderator
Posts: 19979
Joined: December 7th, 2004, 8:51 pm
Location: Indiana

Re: Unable to hide Underline in Mozillazine

Post by smsmith »

Do me a favor and use text-decoration: underline red !important; You'll notice something very interesting when you do that.

Code: Select all

.postlink {
  border-bottom: none !important;
}
Give a man a fish, and he eats for a day. Teach a man to fish, and he eats for a lifetime.
I like poetry, long walks on the beach and poking dead things with a stick.
Please do not PM me for personal support. Keep posts here in the Forums instead and we all learn.
User avatar
patrickjdempsey
Posts: 23686
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC
Contact:

Re: Unable to hide Underline in Mozillazine

Post by patrickjdempsey »

Aris wrote:The file name should be userChrome.css not UserContent.css.
Btw. switch to Stylish add-on, its easier to manage styles there.


You sure about that? ;)
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/
User avatar
Frank Lion
Posts: 21173
Joined: April 23rd, 2004, 6:59 pm
Location: ... The Exorcist....United Kingdom
Contact:

Re: Unable to hide Underline in Mozillazine

Post by Frank Lion »

mant wrote:Nothing works.
Theme Bug?

Nope, mant bug.

Code: Select all

* {TEXT-DECORATION: NONE !IMPORTANT;}


...in userContent.css is all that's needed to prevent underlining there. Check your code, especially parts that should be commented out.
"The only thing necessary for the triumph of evil, is for good men to do nothing." - Edmund Burke (attrib.)
.
User avatar
Aris
Posts: 3248
Joined: February 27th, 2011, 10:14 am

Re: Unable to hide Underline in Mozillazine

Post by Aris »

Tested with userChrome.css inside profile folders of Seamonkey 2.3.1 and Firefox 37 nightly ("...\<profile folder>\chrome\userChrome.css") and css tweaks worked for me. Using userContent.css had no effect.

@patrickjdempsey
Yes, imo Stylish is the easier way to handle custom css code. :mrgreen:
User avatar
patrickjdempsey
Posts: 23686
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC
Contact:

Re: Unable to hide Underline in Mozillazine

Post by patrickjdempsey »

I'm asking why this would be in userChrome and not userContent? I don't mess around with Stylish either.... too much for me.
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/
User avatar
ShareBird
Posts: 2740
Joined: December 8th, 2004, 7:09 am
Location: Berlin | Made in Brasil
Contact:

Re: Unable to hide Underline in Mozillazine

Post by ShareBird »

Try:

a { border: none !important; }
Silvermel - A Theme for Firefox and Thunderbird
YATT - Yet Another Theme Tutorial
Don't give a man a fish. Teach him how to fish instead.
Post Reply