[Pro] CSS frustration

I am having a problem with styling of links on the linked page. The body text is set to white as is the active and visited style with hover set to green but whenever I put a link in the text turns black. In the footer I have the opposite problem whereas the black text turns white as soon as I add a link. The hover style works ok.

Also I have a CSS menu but when I click on a clink the text and background get smaller, is this meant to happen to show the click is working?.

Hope you can help
Neil

http://www.miresbeck.co.uk/index.php/miresbeck/plants


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

http://www.miresbeck.co.uk/index.php/miresbeck/plants

Hi Neil,

Looking at your code, you appear to have set link styles for the page through the Links pane of the Inspector-- the code shows up in the css stylesheet for that page…

stylesheet: plants1.css
#Body a:link {
        color: #000;
        text-decoration: underline;
    }

While in the user stylesheet you have…

stylesheet: sheet2.css
#Body a, a:visited {
        color: #fff;
        font-family: "Trebuchet MS", arial, helvetica, sans-serif;
        font-size: medium;
    }

Both definitions use the same property (color) which creates a style conflict. Because of the way the selector is written in the plants1.css file, it gets chosen by the browser to define the color.

One solution is fairly simple-- remove one of the definitions (either the Freeway written style from the Page Links Inspector, or your nicely written user styles). This will simplify how the browser chooses which direction to follow.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Ernie, I knew it would be simple, I don’t remember setting those styles. Any idea why the css menu behaves the way it does?

Neil


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

You appear to have set the font size to small on the visited and active states.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

It wasn’t that I had set them to small but rather that I hadn’t set them to medium. I had taken the menu from one of the template files so maybe something lingered from that. All sorted now.
Thanks

Neil


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

It wasn’t that I had set them to small but rather that I hadn’t set them to medium

Personally I am not a fan of using relative sizes such as small, medium, large etc. as that way I find gives too wide a variation in text size cross browser/platform.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options