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

Posts: 23
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.
__________________
http://streaming-music.net -Free Music/Videos listen, download, put on Myspace, Facebook, etc.!!
aliks0905 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 03-08-2008, 09:18 PM Re: a:hover text/images bouncing around, changing colors
serandfae's Avatar
Bank holdup redefined....

Posts: 4,667
Name: Tim Daily
Location: Apex, NC, US, Sol 3
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
__________________
Springs hop eternal in the hearts of the eccentric....
E-GADS! (Evil Genius' Art and Design Studio) http://bellsouthpwp2.net/j/a/jam331
serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 03-09-2008, 12:51 AM Re: a:hover text/images bouncing around, changing colors
aliks0905's Avatar
Average Talker

Posts: 23
yea i figured. I dont mind doing that, but my css file is getting pretty big. more than 12kb now.
__________________
http://streaming-music.net -Free Music/Videos listen, download, put on Myspace, Facebook, etc.!!
aliks0905 is offline
Reply With Quote
View Public Profile
 
Old 03-09-2008, 10:25 AM Re: a:hover text/images bouncing around, changing colors
LadynRed's Avatar
Super Moderator

Posts: 6,534
Location: Tennessee
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 !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to a:hover text/images bouncing around, changing colors
 

Thread Tools

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

vB 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.12448 seconds with 12 queries