|
|||||||
| Programming, Coding, (Web)Design Discuss all your programming or design needs with likeminded people. |
![]() |
|
|
Thread Tools |
|
|
#1 |
|
A Legend in Underwear
Join Date: May 2002
Location: Unknown
Posts: 5,255
Rep Power: 0 ![]() |
After playing around about with mouseover and mouseout for funky stuff with my "There is no postcount" bit, I've discovered that using <div> tags doesn't really work too well.
For starters it causes Mozilla 1.4b to crash with out forum - but the same code works fine outside the forum. Ah well. This prompted me to find a workaround/solution. I discovered that the <span> tag also works with javascript which is great! I didn't think it would work as <span> is a very light-weight version of <div>. But the great thing is that using mouseover/out with <div> could cause problems when leaving the <div> and you are using tables or it's enclosed in another <div>. When using <span> instead this problem just doesn't happen! So, if you need to place a <div> in a set place then keep using <div>'s, otherwise start using <span> instead
__________________
Gentoo Linux - Developer (baselayout) Read my blog "I contend that we are both atheists. I just believe in one fewer god than you do. When you understand why you dismiss all the other possible gods, you will understand why I dismiss yours." Stephen Roberts |
|
|
|
|
|
#2 |
|
Flash Banner Hater
|
Are you referring to TAGS which are not being displayed, as it seems to be somewhat disjointed?
Have you logged a bug for Mozilla - if it's WRONG, then THIS is the time when it's GOT to be fixed - 1.4 final is marked down as the build to continue the "stable" linem while the scary stuff happens on the trunk toward 1.5. |
|
|
|
|
|
|
|
A Legend in Underwear
Join Date: May 2002
Location: Unknown
Posts: 5,255
Rep Power: 0 ![]() |
Edited my post - understand it now Matth? Haven't entered a bugzilla report as the code doesn't crash in a simple web page just when included within this forum
__________________
Gentoo Linux - Developer (baselayout) Read my blog "I contend that we are both atheists. I just believe in one fewer god than you do. When you understand why you dismiss all the other possible gods, you will understand why I dismiss yours." Stephen Roberts |
|
|
|
|
|
#4 |
|
Yarr... I be blind!
Join Date: May 2002
Location: Calgary, Canada
Posts: 3,191
Rep Power: 80 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
<span> is an empty inline-element, <div> is an empty block-level element, they do what they do
![]() Strange about the Mozilla thing though...
__________________
|
|
|
|
|
|
#5 |
|
Freedom is a feature.
|
Rule numero uno about Mozilla: something might not be displayed correctly, but there is nothing that should make it crash (it should be reported if it's a regression over previous version).
Working on sample code
__________________
-- Vedran Last edited by RIV@NVX; May 12, 2003 at 08:00 PM. |
|
|
|
![]() |
| Thread Tools | |
|
|