PDA

View Full Version : CSS/DOM in firefox


ghell
05-24-2004, 06:30 PM
well i was told that these were the same as IE but they arent, for example A and A:HOVER dont seem to work in firefox

is there any solution to this or firfox mod that sets it to IE style (and the same with the javascript DOM whih i havnt found many flaws with but still a few)

]|V|[agnus
05-24-2004, 07:06 PM
It seems unclear as to what you are asking about. I mean, right off the bat you claim that "a" and "a:hover" don't work in Firefox? I have no idea what you could possibly mean by that, since all assumptions lead to you're in fact being wrong on that. Could you clarify perhaps?

liorean
05-24-2004, 07:19 PM
Post your non-working code. a and a:hover are perfectly working in moz, so you must be doing something wrong...

ghell
05-24-2004, 07:20 PM
well, you see, silly, its simple, i go on a site (even one i made) that uses A:hover and a in the css, and looky, its all blue and purple.. try using firefox not mozilla, and going to a site such as eng.pristontale.com in ie too, the links are light bliue with underline on hover, but on firefox they are normal text colour and standard decor settings

liorean
05-24-2004, 07:38 PM
Well, try the W3C validators before you say moz does not support it. That site is a mess, so it should not be any surprise that it does not work okay.


(ff ~= moz. The difference lies in time of forking... In fact when I say moz, I mean any Gecko based browser, not only Mozilla Application Suite or Mozilla Firefox)

ghell
05-24-2004, 07:40 PM
ITS NOT MY SITE NAD IT WORKS FINE IN IE, I KNOW MOZ IS ALMOST THE SAME AS FIREFOX BUT FIREFOX DEFINATELY ISNT RUNNING IT CORRECTLY

now u gone and made me type in all caps cos of ur annoyingness

the thing is, it works half on some sites, but not others

liorean
05-24-2004, 07:47 PM
No. The browser that gets it wrong is iew, not moz. You get what you develop for, and if that is iew support, that is all you're going to get. You might not have noticed it, but the majority of the web design world drops their heads in resignation at the mention of iew.

bradyj
05-24-2004, 07:57 PM
No. The browser that gets it wrong is iew, not moz. You get what you develop for, and if that is iew support, that is all you're going to get. You might not have noticed it, but the majority of the web design world drops their heads in resignation at the mention of iew.

liorean's right -- Mozilla is one of the most accurate browsers out -- if the site is coded properly, it will work in it. There must be errors in the coding for it to work in IE and not Mozilla, because I've never seen an instance where it's been the other way around.

Can you find a site that has an example so we can look and see if it's the browser or the webpage? I'll take the pepsi challenge and vote the webpage is off.

silenus
05-24-2004, 08:25 PM
ghell: Lay off the crack dude ;)

The bad workman always blames his tools

JohnnyPotseed
05-24-2004, 09:33 PM
It aint FireFox dude. I have FireFox and I use A and A:Hover on my site and it works in FireFox just as well as it works in IE.

sidvorak
05-25-2004, 10:13 PM
um...yeah...

uh...nevermind...this guy is hosed! :o

ghell
05-26-2004, 08:31 AM
i did actually give a url, blindy,that is http://eng.pristontale.com
i said look at it in IE and an unmodified FireFox (not mozilla assuming it is the same) and notice the crapped up navigation on the left in firefox but not IE

btw wats the w for in iew

The bad workman always blames his toolsI don't know about you, but there's nothing wrong with my tool ;)

liorean
05-26-2004, 01:52 PM
W for Windows. The Internet Explorer browser for the Mac is substantially different, so much different that the fact it has the same name does more harm than good. Thus, when you say Internet Explorer, you should always specify the platform you are talking about.

llizard
05-26-2004, 02:27 PM
i did actually give a url, blindy,that is http://eng.pristontale.com
i said look at it in IE and an unmodified FireFox (not mozilla assuming it is the same)

How very annoying... that site generates a popup ad in IE6 (Win2K). Yes, the hover works in IE6. No, it doesn't work in Firefox (Win2K). However, there are plenty of other sites that have a:hover working just fine in Firefox. Here's the reason that the a:hover is probably not working on eng.pristontale.com site:

I plugged the frame URL (http://eng.pristontale.com/Home/HomeMain.aspx) from eng.pristontale.com into the WDG HTML validator (http://www.htmlhelp.org/tools/validator/). There are so many coding errors that it's amazing that IE has managed to guess at the intent of whoever designed that site.

Excuse the repetitive nature of this post. I realize that liorean has already suggested on more than one post that the html is likely incorrect and is causing this "error" in Firefox.


(Remind me not to open anything in IE until I find out how to disable unrequested popups there)

Rex
05-26-2004, 02:57 PM
Hello Ghell -

Make all CSS selectors lowercase. a and a:hover. And use all four pseudo classes for a; link, visited, hover and active - and in that particular order:
a:link
{
/* properties */
}

a:visited
{
/* properties */
}

a:hover
{
/* properties */
}

a:active
{
/* properties */
}

Maybe you shouldn't SHOUT like that when your code is wrong after all, not the browser (w3.org (http://www.w3.org/TR/CSS2/))

- Rex

ghell
05-30-2004, 09:48 AM
i do actualy use lowercase although i didnt look at eng.p....'s source, i allcapsd it in my 1st post because i am to lazy to use bold or |code/] for just 1 word ;)

thanks for explaing the w in IEw btw, although i never use a mac because i find it the worst operating system ever made (seriously, i prefer acorn's RISC system) but that is another deeply opinionated story :p

why are all pseudos needed though, doesnt A cover them all and then A:HOVER append the style for anchors when being hovered over??!

i have switched back to IEw as my default browser for now anyway, maby i will have another go at FF later ;)

btw you can stop popups with lots of 3rd party tools (i use meaya popup ad filter, but google toolbar will do it for free usually :thumbsup: )

thanks all, big help :D

bradyj
05-30-2004, 07:24 PM
... although i never use a mac because i find it the worst operating system ever made (seriously, i prefer acorn's RISC system) but that is another deeply opinionated story :p-

Grrr...

ghell
05-31-2004, 05:34 PM
Grrr...

oh what a fantastically useful post, that solved ALL my problems, you should be proud to be such a useful advisor




incase you couldnt tell, that was sarcasm

bradyj
05-31-2004, 06:16 PM
oh what a fantastically useful post, that solved ALL my problems, you should be proud to be such a useful advisor
incase you couldnt tell, that was sarcasm

I hope it was, because I spent a lot of time reading and posting here, and I was hoping I could still joke around on occassion since I'm a mac fanatic. Thanks for the kind words ghell.

liorean
05-31-2004, 06:26 PM
Now, if you children don't play nice with eachother, maybe your teacher needs to give you an extra homework assignment...

llizard
05-31-2004, 10:14 PM
btw you can stop popups with lots of 3rd party tools

Actually, I was hoping that there was a way to configure IE (without disabling javascript) so that unsolicited popups would not appear. I don't particularly want to use a third party tool.