Hi,

I have a custom frontpage template with the following to stop links being underlined:

a:link { text-decoration: none; color: #4a4a4a; } a:visited { text-decoration: none; color: #4a4a4a; } ....etc However, this is not working and the frontpage links are underlined, even if I put the code in local.css in _custom directory. Any ideas?

Comments

florian’s picture

How come that? You should try to put in your custom-style.css a more complete declaration like this:

a, a:link,
.title, .title a,
.node .terms,
.book-navigation .menu a, .book-navigation .page-links a,
h1, h2, h3 {
	text-decoration: none !important;
	color: #4a4a4a;
}

If you want to have the above only for front page, you should add '.front'. The following should be enough for frontpage:

.front a, .front a:link,
.front .title a {
	text-decoration: none !important;
	color: #4a4a4a;
}
florian’s picture

Category: bug » support
stephenrobinson’s picture

Try adding #main a.... the id style can override the class style

stephenrobinson’s picture

FYI if you install the web developer plug in for firefox and click inspect element, you will see which style classes come from which stylesheet and which ones are crossed out.

florian’s picture

droopysteve, you are right, still the '!important' is important :) The next code will affect only page content and not the other regions:

#main  a:link, #main a:visited {
	text-decoration: none !important;
	color: #4a4a4a;
}
stephenrobinson’s picture

Oh yes firebug plug in I meant, add #sidebar-right, #sidebar-left as well,
S:)

florian’s picture

Yes, I am using firebug plug for Firefox. A nice tool, indeed.
... and yes, you are right again. It seem you understand very well 0 Point structure :)

florian’s picture

Issue summary: View changes
Status: Active » Closed (works as designed)