PDA

View Full Version : script that hides <div>s causing weird layout bug


]|V|[agnus
11-16-2004, 03:00 AM
http://sethrasmussen.com/

On my blog, the posts under "Older Entries" have their post content hidden at page load by a script. If you look at the page there, you can see links from some of the older entries overlapping the "Recent Babble" column if you load the page at a small enough resolution. (Try maximized 800x600 to test.)

When you click one of the offending links, it and any other elements doing the same that occur AFTER the clicked link in the document will reset themselves. Anything before remains messed up.

Edit: This happens in Firefox, by the way.

Is there anything I can change to fix that, or is this a bug? Also, I would love any suggestions on how I could maybe make that script faster, other than stripping white space. The script is viewable in the document source. Thanks!

p.s. not a shameless plug, I swear!

]|V|[agnus
11-16-2004, 08:59 PM
Bueller? Bueller?

:(

joh6nn
11-17-2004, 02:58 PM
i think that this is most likely a browser issue, and nothing to do with your script. i doubt there's a work around, though it wouldn't hurt to google it (i'm guessing you probably did that already, though). the only thing i can think of is to check bugzilla, and see if it's mentioned.

]|V|[agnus
11-17-2004, 03:33 PM
i think that this is most likely a browser issue, and nothing to do with your script.

Well, right on the first part there. I was thinking that somebody might recognize something in the script that triggers the bug, so that I might consider alternative methods. But yes, I follow you.

I think I might just achieve the effect with stylesheets. Makes more sense anyway, and is probably quicker.