Links colors are not changing :( [solved]

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
javierdl
Forum Members
Forum Members
Posts: 67
Joined: Tue Oct 09, 2007 7:31 pm

Links colors are not changing :( [solved]

Post by javierdl »

This is the code in my "Accessibility and cross-browser tools" css file:

Code: Select all

/*
default link styles
*/
/* set all links to have underline and bluish color */
a,
a:link 
a:active {
	text-decoration: underline;
	/* css validation will give a warning if color is set without background color. this will explicitly tell this element to inherit bg colour from parent element */
   background-color: inherit;
	color: #0033FF;
}

a:visited {
	text-decoration: underline;
	background-color: inherit;
	color: #0033FF;                /* a different color can be used for visited links */
}


/* remove underline on hover and change color */
a:hover {
	text-decoration: none;
	background-color: #CCCCCC;
	color: #0033FF;
}
And as you can see I'm using 0033FF (a darkish blue). But when I visit the page it shows a lighter blue instead ::)
My web site
What is the problem?

Thanks,

JDL
Last edited by javierdl on Mon Oct 29, 2007 5:19 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Links colors are not changing :(

Post by Dr.CSS »

Some how you have at least 3 of the same CSS attached to the template...

Those are general links the ones in the menu are called with #primary-nav **** if you mean the color of the page you are on it's...

/* Styling the basic appearance of the active page elements (shows what page in the menu is being displayed) */

#primary-nav li.menuactive {
  background-color: #C7C7C7;
}
cubix
Power Poster
Power Poster
Posts: 314
Joined: Mon Jul 09, 2007 10:00 am

Re: Links colors are not changing :(

Post by cubix »

for securitys sake, delete your install directory and change your config.php file permissions.
javierdl
Forum Members
Forum Members
Posts: 67
Joined: Tue Oct 09, 2007 7:31 pm

Re: Links colors are not changing :(

Post by javierdl »

Some how you have at least 3 of the same CSS attached to the template...
To be exact, according to my Template's Current Associations page I have the following CSSs attached to it:
  • Accessibility and cross-browser tools
  • Navigation: CSSMenu - Horizontal
  • Module: News
  • Print
  • basebllcpn (my own)
They were all attached to it initially, I just added "basebllcpn". I created it from an existing one. I can't recall which one though, but it starts like this:

Code: Select all

/*****************
browsers interpret margin and padding a little differently, 
we'll remove all default padding and margins and
set them later on
******************/
* {
margin:0;
padding:0;
}
So, are you saying that instead of having 5 I should just have one? Or maybe 2 are redundant?

J
javierdl
Forum Members
Forum Members
Posts: 67
Joined: Tue Oct 09, 2007 7:31 pm

Re: Links colors are not changing :(

Post by javierdl »

Got it! :)
I got rid of basebllcpn and now the links show the right color :)
So from now on I'll just make the modifications directly on the existing CSSs.

This one is solved then :)

Thanks a bunch Mark :)

J.
Post Reply

Return to “Layout and Design (CSS & HTML)”