The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

using inline style sheets to override a linked style sheet

I am using a universal style sheet to make rollovers work for links on my site but I now have links that because of background colors where I want them to ignore the universal sytle sheet. I tried using an inline style sheet to treat the links diffrently but to no avail. Is what I want to do possible or am I just spinning my wheels?

Incidentally, when specifying pseudo-classes for text links, you only need to specify those aspects that differ from the default a:link attributes.

Also a {... is the same as a:link {... so there is no need to specify both.

See the W3Schools pseudo-classes page for more info on how to use them on their own and how to use pseudo-classes in conjunction with 'proper' classes.

e.g.

Code:

a.gr:link {...}
...

p.s.
It's not generally a good idea to change the font-size in a text link during rollover.
Not only does it tend to 'throw' the user's eye, but it can also create layout problems as surrounding text/links is pushed around to make space for the larger font size.

Changing the font-weight for rollover links also creates the same problem with throwing the eye and can also cause surrounding text to shift.

It is better to stick to affecting just those attributes that are less disruptive to the space/layout such as the text-decoration and color.

I had been at the W3's page and several others for the past couple hours and just wasn't getting it but now it finally clicked, Thanks.

I know it's a bad idea to up the font size but I did finally get it by keeping my text to small lengths and forcing it into a table. I like the way it catches the eye and I figure you should do one thing crazy that scares you and that was mine last week!!