Change link colours via CSS

Fred_Birdsall_studio / 2012-11-13 21:21:01   

Hi

I'm trying to change the active, inactive, link, and hover states. I'm editing the CSS files directly (not using the Indexhibit Colour picker plugin) as I am using a webfont.

Website is: birdsallstudio.org.

Code for the style.css file is looking like this:

/**
* CSS
*
* @version 2.0
* @author Vaska
*
* There are also some obscure rules in base.css
*/

body {
font-size: 12px;
font-family:"WEB FONT REMOVED FOR PRIVACY";
background: #fff;
line-height: 165%;}
}

/* link scheme */
/* you can customize links further down the page too */
a:link { text-decoration: none; color: #0000ff }
a:visited { text-decoration: none; color: #000000 }
a:hover { text-decoration: underline; color: #000000 }
a:active { text-decoration: none; color: #0000ff }
a img { border: none; }

/* general styles */
small { font-size: 9px; }
code { font-family: monospace; }
blockquote { padding-left: 9px; }

/* headings */
h1 { font-size: 12px; margin-bottom: 1em; }
h2 { font-size: 12px; margin-bottom: 1em; }
h3 { font-size: 12px; margin-bottom: 1em; }
h4 { font-size: 12px; margin-bottom: 1em; }

/* paragraph width */
#index p { margin-bottom: 1em; }
#exhibit p, code, blockquote { width: 450px; margin-bottom: 1em; /* line-height: 1.3em; */ }

/* highlighter style - maybe you want to change colors? */
.highlight { background: #ccff00; color: #0000ff; }

/* never adjust the margin or padding here unless you seriously know what you are doing */
/* think #index .container and #exhibit .container for only padding adjustments */
#index { width: 215px; /* line-height: 1.3em; */ }
#exhibit { margin: 0 0 0 215px; }

/* styling the index */
#index ul { list-style: none; margin: 0; }
#index ul.section { margin-bottom: 1em; }
#index ul.subsection { }

/* the follow rules for index are not required */
/* they are mostly for complex customization */
/* for tag display */
#index ul#all_tags { list-style-type: none; margin-bottom: 1em; }
#index ul#all_tags li { display: inline; margin-right: 3px; }
#index ul#all_tags li a { }

/* active section title */
#index span.active_section_title,
#index span.active_section_title a

/* active exhibit title parts */
li.active a:link, li a.active, li.active a:hover, li a.active, li.active a:active, li a.active,
li.active a:visited, li a.active, li span.active, #index ul.section li.active a:link,
#index ul.section li.active a:hover, #index ul.section li.active a:active, #index ul.section li.active a:visited

/* additional #index options */
#index ul li .password a { /* background: url(../img/locked.gif) right center no-repeat; padding-right: 18px; */ }

/* the "new" indicator */
#index ul li sup { color: #0c0; font-weight: bold; text-transform: uppercase; font-size: 8px; vertical-align: top; }
/* end styling for index */

/* links styles only for the #index region */
#index a:link { text-decoration: none; color: #0000ff }
#index a:visted { text-decoration: none; color: #000000 }
#index a:hover { text-decoration: underline; color: #000000 }
#index a:active { text-decoration: none; color: #0000ff }

/* links styles only for the #exhibit region */
#index a:link { text-decoration: none; color: #0000ff }
#index a:visted { text-decoration: none; color: #000000 }
#index a:hover { text-decoration: underline; color: #000000 }
#index a:active { text-decoration: none; color: #0000ff }

/* this is where you adjust your paddings for #index and #exhibit together */
.container { padding: 11px 11px 25px 11px; }

/* this is where you pad them separately */
#index .container
#exhibit .container { }

Any Help would be much appreciated. All I want to do is to have all the same hover, link, active and inactive states as per eatock.com but using the web font I have purchased from webfonts.fonts.com.

I have also looked at the CSS in base.css but I'm really stuck.

Thank you in advance.
F

arsondpi / 2012-11-14 07:45:23   

then change these lines:

  1. /* link scheme */
  2. /* you can customize links further down the page too */
  3. a:link { text-decoration: none; color: #0000ff }
  4. a:visited { text-decoration: none; color: #000000 }
  5. a:hover { text-decoration: underline; color: #000000 }
  6. a:active { text-decoration: none; color: #0000ff }
Fred_Birdsall_studio / 2012-11-14 09:47:23   

For some reason – when I change these it seems to have little or random effect.

Does the order I have them in make a difference I assume it does? If so do you know what it should be?

Also one other thing – do I need to change this in the base.css also?

arsondpi / 2012-11-14 10:06:34   

Fred,
I know that colour is the correct English spelling of the word, although css uses the americanized spelling of color for the attribute.

:-P

Fred_Birdsall_studio / 2012-11-14 20:05:10   

Ah!

I see – sorted now. Thanks A.

F

This thread has been closed, thank you.