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 background image problem
Old 02-25-2008, 01:52 AM a:hover background image problem
mr.aliks's Avatar
Average Talker

Posts: 27
Trades: 0
Hi,

I've asked a similar question a while back, but i've got a new problem with my navigation menu on http://screwtheschool.com

when you hover, in IE7 and FF, it works fine. In IE6, everything is messed up as well as some boxes that arent aligned like they should be. Could someone help me out, where the problem is? It's really getting me frustrated that I cant get a nav with two background images o work properly.

Thanks to those who have helped me already so far.



Also, a few other questions in the meanwhile:
1. Does anyone have any portable versions of IE6, IE5, Mozilla, etc? So I can test these myself instead of running between two pc's?
2. Any ways optimizing my site to remove unnecessary images? I like my design, so I need someone else's input on what I can throw away to still make the site look similar to what it is now.
__________________

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

Last edited by mr.aliks; 02-25-2008 at 01:56 AM..
mr.aliks is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-25-2008, 01:57 AM Re: a:hover background image problem
Arenlor's Avatar
Ultra Talker

Posts: 462
Name: Jerod Lycett
Location: /home/arenlor
Trades: 0
First, make it valid, secondly, this could be one of the parts of IE that is broken, it shows up fine in Opera, so that's what I'd bet it is.
__________________
PHP Code:
<?php echo "Hello World"?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
Arenlor is offline
Reply With Quote
View Public Profile Visit Arenlor's homepage!
 
Old 02-25-2008, 02:48 AM Re: a:hover background image problem
mr.aliks's Avatar
Average Talker

Posts: 27
Trades: 0
The template itself is valid xhtml/css, but when I added in all the php, its those <? and uppercase tags in the actual script core that are causing it to be invalid.
I've removed a comma that I accidentally left in the style.css file which was the only error in that file.

Speaking of php, is there any way to validate those tags, or will it always display as invalid?

thanks
__________________

Please login or register to view this content. Registration is FREE
mr.aliks is offline
Reply With Quote
View Public Profile
 
Old 02-25-2008, 03:02 AM Re: a:hover background image problem
Arenlor's Avatar
Ultra Talker

Posts: 462
Name: Jerod Lycett
Location: /home/arenlor
Trades: 0
PHP tags get parsed, they don't show up in HTML. Remove the uppercase tags and attributes and make them lowercase. Here is an introduction on why you need the page to validate. http://en.wikipedia.org/wiki/Quirks_mode
http://validator.w3.org/check?uri=ht...Inline&group=0
As you can see there is a lot of things to fix.
__________________
PHP Code:
<?php echo "Hello World"?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
Arenlor is offline
Reply With Quote
View Public Profile Visit Arenlor's homepage!
 
Old 02-25-2008, 03:15 AM Re: a:hover background image problem
mr.aliks's Avatar
Average Talker

Posts: 27
Trades: 0
yea I was just running through the validator so I'll be digging through the code soon...do people code in uppercase in php just so that we have to go back and fix it?

anyways, that still doesn't solve my a:hover problem.
__________________

Please login or register to view this content. Registration is FREE
mr.aliks is offline
Reply With Quote
View Public Profile
 
Old 02-25-2008, 11:32 AM Re: a:hover background image problem
Arenlor's Avatar
Ultra Talker

Posts: 462
Name: Jerod Lycett
Location: /home/arenlor
Trades: 0
.listSmallText a:active {
text-decoration: none;
font-family: 'Trebuchet MS', Tahoma, Verdana !important;
font-size: 14px;
margin: 0 0 0 5px;
color: #009ECF;
text-align: left;
}

.listSmallText a:hover {
text-decoration: underline;
}
I'm not sure if that's the area you're having the problem crop up or not, but try reversing those two.
Note: a:hover MUST come after a:link and a:visited in the CSS definition in order to be effective!!

Note: a:active MUST come after a:hover in the CSS definition in order to be effective!!
http://www.w3schools.com/css/css_pseudo_classes.asp
__________________
PHP Code:
<?php echo "Hello World"?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
Arenlor is offline
Reply With Quote
View Public Profile Visit Arenlor's homepage!
 
Old 02-25-2008, 05:36 PM Re: a:hover background image problem
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Actually, the thing to remember with pseudo classes is LoVeHAte - link , visited, hover, active
__________________
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 background image problem
 

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