Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-26-2006, 06:06 AM
WebProWorld Pro
 

Join Date: May 2004
Location: Sydney
Posts: 146
ozchris RepRank 0
Default Firefox hover problem

Hi.

I'm creating a new local site, so there's not much there yet.

It uses php includes for the menu and ads, source-ordered columns, css.

My problem is that Firefox is not recognising the links.

They work fine in IE.

In FF the links are not clickable, and hover doesn't work.

If I view the file through FF from my disk the non-php links work ok.

Any ideas? Everything validates.

Also, I was trying to make it robust, to see how it handles text expansion. When in IE, using ctl+= (zoom, not text increase), I noticed the right margin goes in. Anybody got ways of preventing that? I've seen it on a few other sites too.

cheers
Chris

it's www.dogs-only.com.au.
(when finished, it will be my first sql database ever)
Reply With Quote
  #2 (permalink)  
Old 01-27-2006, 08:01 PM
httpman's Avatar
WebProWorld Pro
 

Join Date: Aug 2003
Location: France
Posts: 196
httpman RepRank 0
Default

Hi,

It's a bit late to answer, no ?
I didn't look at your CSS file, coz it's in a separate file, but most - if not all - issues in CSS files with FF come from the syntax.
IE is cool, you can make mistakes it still correct them and works. At the opposite, FF is very strict and ignore any line with an error.
The "hover" style works fine within FireFox & Mozilla. Therefore in your case, I would suspect the code. Check your lines of code. You coul forget a "." in the begining of class name, or a } at the end etc. : IE will correct, but FF will ignore the whole definition.

JP
__________________
www.net-createurs.com [ french only website sorry ! ]
Reply With Quote
  #3 (permalink)  
Old 01-27-2006, 08:34 PM
Faglork's Avatar
WebProWorld Veteran
 

Join Date: Feb 2005
Location: Forchheim, Germany
Posts: 947
Faglork RepRank 0
Default

Since the Code and the CSS both validate (Good!) it must be something different.

I don't have the time to investigate, but from a quick glance it is

Code:
#rightcolumn	{position: absolute; top: 5.5em; right: 0}
Using FF's Web Developer Extension, you can see that the #rightcolumn *overlaps* - it "shields the links form clicking", so to speak.

If you switch off "position: absolute" your links start to work ...

When you find the solution, please post it.

hth,
faglork
Reply With Quote
  #4 (permalink)  
Old 01-29-2006, 12:11 AM
WebProWorld Pro
 

Join Date: May 2004
Location: Sydney
Posts: 146
ozchris RepRank 0
Default

Faglork, you're beautiful.

I put a width on the right column and it worked. So it was an overlapping problem.

I had installed the developers bar, but not really used most features.

Do you personally usually worry about the non-error warnings from css validation - re background colours, spare fonts etc? I guess it depends on whether I want to be a perfectionist or not.

Many thanks
Reply With Quote
  #5 (permalink)  
Old 01-29-2006, 09:44 AM
Faglork's Avatar
WebProWorld Veteran
 

Join Date: Feb 2005
Location: Forchheim, Germany
Posts: 947
Faglork RepRank 0
Default

Quote:
Originally Posted by ozchris
Do you personally usually worry about the non-error warnings from css validation - re background colours, spare fonts etc? I guess it depends on whether I want to be a perfectionist or not.

Usually, I don't worry. But as I typed this response, I got an idea.

These warnings occur because we habitually don't specify a background color when the background color of an ancestor element is used. So we can cover that issue by extending the "global whitespace reset" (which is a good idea to start your CSS with) to include background colors:


Code:
* {padding: 0; margin: 0; background-color: transparent;}
This might solve it - I have to check this.

UPDATE: It does not work as intended. Don't get me wrong, on the CSS level it works perfectly. The validator just does not recognize it ...

But it seems to be a validator issue - I noticed that the W3C CSS validator sometimes does not work correctly, it warned about elements without background-color where in fact the background-color was explicitely declared.

So we have a solution, you just can't validate it. So what.

Regarding the question of "spare fonts", you should always declare several fallback fonts. Like

Code:
font-family: yourfancyfont, arial, helvetica, sans-serif;
for non-serif fonts.

faglork
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , ,



Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0