IE vs Firefox
i had a feedback about my site looking different with using IE and Firefox...people said that in firefox the link hovers just fine but in IE the whole sentence are highlighted...can you give some reason why this happens aside from browser standard non-compliance of IE? http://www.fhwc.bravehost.com
Have a Free Hosted Website? Join us to exchange links, feature your website and improve your traffic! visit http://fhwc.50webs.com
Busy posted this at 10:39 — 9th July 2006.
He has: 6,151 posts
Joined: May 2001
It's bad coding. you also still have the double up head tags as well.
you have:
forum.
your missing the closing tag, in this case IE is displaying it correctly and firefox is not.
Instead of using the onmouseover and onmouseout you should use CSS, using something like this in your head section
a.maincontent:link {text-decoration:none; font-weight:bold;}
a.maincontent:active {text-decoration:none; font-weight:bold;}
a.maincontent:visited {text-decoration:none; font-weight:bold;}
a.maincontent:hover {color:#0000a0; text-decoration:underline; font-weight:bold;}
and on the page, in the link you want this effect you just add class="maincontent" to the link tag, using your link above, it would just be like so:
forum.
This way it will work even if javascript is disabled, all the links this is used in can be changed with just changing the CSS, is less code.
If you just want to use that colour/effect on all the links (as default), just remove the .maincontent from the a.maincontent:link, a.maincontent:visited etc like so:
a:link {text-decoration:none; font-weight:bold;}
a:active {text-decoration:none; font-weight:bold;}
a:visited {text-decoration:none; font-weight:bold;}
a:hover {color:#0000a0; text-decoration:underline; font-weight:bold;}
and your links are just a normal forum. but has the bold and coloured on mouseover (hover) with no underline
Marvz posted this at 15:44 — 9th July 2006.
They have: 37 posts
Joined: Jun 2006
Thank you very much!! that css thing really helped me..i tried it in a test page and i figured it out and it works thanks..i will now apply it to my website!
Have a Free Hosted Website? Join us to exchange links, feature your website and improve your traffic! visit http://fhwc.50webs.com
Marvz posted this at 17:06 — 9th July 2006.
They have: 37 posts
Joined: Jun 2006
i removed all the javascripts for link hovers and put these codes at the head of my page
and i add class="navi" to all my links at my navigation
i used two styles..one for my navigation and the other for the rest of my links..is that correct?
Have a Free Hosted Website? Join us to exchange links, feature your website and improve your traffic! visit http://fhwc.50webs.com
waffles posted this at 17:48 — 9th July 2006.
They have: 54 posts
Joined: Jun 2006
If you want to give them two different sets of attributes, then yes.
Busy posted this at 21:20 — 9th July 2006.
He has: 6,151 posts
Joined: May 2001
text-decoration: is either underline or none - not 0
Marvz posted this at 23:29 — 9th July 2006.
They have: 37 posts
Joined: Jun 2006
oh, about that decoration..i will remove that 0...thanks
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.