Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
a:hover text/images bouncing around, changing colors
Old 03-08-2008, 09:13 PM a:hover text/images bouncing around, changing colors
mr.aliks's Avatar
Average Talker

Posts: 27
Trades: 0
Hi,

I have the site, http://screwtheschool.com and I'm installing the phparcadescript on it. My problem is with that unless specifying a specific font/size/ and line height, on a:hover, and a:active links, the links move up when hovered over and turn a different color.

I've looked through the css, but the only way I can fix these problems is for every different class that has a link, is to specify specific font size/font/line height, and then on a:hover, the links dont go wierd and the images stay in one piece.

Heres an example page with these problems: http://www.screwtheschool.com/games/386/kickoff.html
If you hover over the words, "rate", "tell-a-friend", "report" and the tiny image next to those, you'll see what I mean.

How can I fix this without adding specific attributes to all the elements?

Thanks

PS. I know the html is invalid, but its the script that causes it, so not much I can change.
__________________

Please login or register to view this content. Registration is FREE
mr.aliks is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-08-2008, 10:18 PM Re: a:hover text/images bouncing around, changing colors
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 8,936
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
You're going to hate me for saying this, but you're going to have to specify a default setting for all links first in your CSS (in order, link, visited, hover, active, LoVeHAte is the mnemonic) then again in that order if there's a group of them with different styling by a class name. And if they're not in that order it can wreak havoc. Yeah, it's work, but at least your links won't jump.

tim
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 03-09-2008, 01:51 AM Re: a:hover text/images bouncing around, changing colors
mr.aliks's Avatar
Average Talker

Posts: 27
Trades: 0
yea i figured. I dont mind doing that, but my css file is getting pretty big. more than 12kb now.
__________________

Please login or register to view this content. Registration is FREE
mr.aliks is offline
Reply With Quote
View Public Profile
 
Old 03-09-2008, 11:25 AM Re: a:hover text/images bouncing around, changing colors
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
12Kb ? That's NOTHING, and it's not all that big a deal either.

You CAN group selectors and avoid re-defining all the common rules over and over again. By that I mean you can do this:

#nav a:link, #nav a:visited, #nav a:active, #box a:link{
color: #cccccc;
line-height: 1.5em;
}

Then create a separate set of rules for ONLY those things that will be different for a selector.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to a:hover text/images bouncing around, changing colors
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29684 seconds with 12 queries