Page 1 of 1

Links Different Colors on Site???

Posted: Fri May 04, 2007 7:04 pm
by duplay
I have noticed that sometimes when I create links to other internal CMS pages on my site, I get hyperlink colors that dont match (see screen shot). For example, I have a page that has two links (both link to internal CMS pages using the orange palm tree icon) but both link colors are different (bright blue and light blue)


below is the page:
http://www.sparcc.org/index.php?page=fiscal2

[gelöscht durch Administrator]

Re: Links Different Colors on Site???

Posted: Fri May 04, 2007 7:27 pm
by hexdj
It's because your code has something like this:
(inline styling)

FISCWEB (.PDF Reports)



If you're controlling your styles from a stylesheet it should only look like this:

FISCWEB (.PDF Reports)

And then you would define the colors in your stylesheet

a {
  color:#001100; /*Or whatever color code you want to use for all your hyperlinks*/
}

Re: Links Different Colors on Site???

Posted: Fri May 04, 2007 8:09 pm
by duplay
I am a little confused. If I go to my stylesheet to the followng code:

/* Links */
a,
a:link
a:active, a:visited {
color: #385C72;
}

The above is the color for the text in my menu and it is the light blue color of my links that are off. If I change the above color to 000 it changes the menu text color to black and ONLY the light blue links to black. Leaves the other blue ones alone. I want the menu colors to stay the color they are and just have links be one color.

It has been a while, but I have text size locked down when I create a page, but as far as I know I am pulling the colors from a stylesheet. Any idea how to fix in detail? Thanks

Re: Links Different Colors on Site???

Posted: Fri May 04, 2007 8:48 pm
by Nullig
In the page code the two links are different:

Code: Select all

<p><font size="3" face="Arial"><a href="index.php?page=emis_web_reports"><font color="#0000ff">EMIS Web Reports</font></a></font></p>

<p><font size="3" face="Arial" color="#0000ff"><a href="index.php?page=fiscal-web">FISCWEB (.PDF Reports)</a><br /></font></p>
In the first the color is applied between the and tags and in the second it's before the tag. It could be a problem with the WYSIWYG editor. Try looking at the source view instead of the WYSIWYG view.

Nullig

Re: Links Different Colors on Site???

Posted: Fri May 04, 2007 9:16 pm
by hexdj
If you're pulling CSS styles, then I'd get rid of all your tags that have this:



It's making your code large without need and it's basically making your pages ignore whatever styles you have in your CSS.

Re: Links Different Colors on Site???

Posted: Sat May 05, 2007 8:22 am
by RonnyK
duplay,

if you check the page you referred to using the source button of the editor, you'll see that you have styled the links directly when typing/copying them to the page. Normally you wouldn't do it there as you have the styling in the stylesheet. So if you delete the -tags in the source, you'll get the styling of the stylesheet.

Code: Select all

<ul>
    <li>
    <p><font size="3" face="Arial"><a href="index.php?page=budgetary_cd"><font color="#0000ff">Budgetary CD</font></a></font></p>
    </li>
    <li>
    <p><font size="3" face="Arial"><a href="index.php?page=emis_web_reports"><font color="#0000ff">EMIS Web Reports</font></a></font></p>
    </li>
    <li>
    <p><font size="3" face="Arial" color="#0000ff"><a href="index.php?page=fiscal-web">FISCWEB (.PDF Reports)</a><br />
    </font></p>
    </li>
    <li>
    <p><font size="3" face="Arial"><a href="index.php?page=fiscweb_2"><font color="#0000ff">FISCWEB2</font></a></font></p>
    </li>
    <li>
    <p><font size="3" face="Arial"><a href="index.php?page=payroll_cd"><font color="#0000ff">Payroll CD</font></a></font></p>
    </li>
</ul>
The code above, shows the fixed fonts in the links.

Ronny

Re: Links Different Colors on Site???

Posted: Mon May 07, 2007 1:12 pm
by duplay
I copied and pasted the text above and still see the different font color for those link..strange..


Thanks

Re: Links Different Colors on Site???

Posted: Mon May 07, 2007 1:17 pm
by duplay
I figured it out- thanks for your help!

Re: Links Different Colors on Site???

Posted: Mon May 07, 2007 1:29 pm
by RonnyK
Duplay,

I saw what you meant, with fixed I meant "hardcoded" not the "corrected" code. Sorry for the misunderstanding, English is not my native language, so I didn't see the double meaning of "fixed" that fast.

Ronny