Hi All,
James Alvies wrote the list with a question about float clearing on a
layout with fairly complex source. I run XP and Vista on VirtualBox
inside my Ubuntu OS and hadn't installed any of the development tools
for IE. Wondering whether it would be possible to use the javascript
protocol to clear an element after the page had loaded, I came up with
the solution below. It's JavaScript, but since it pertains to a CSS fix,
I thought I'd send it along as an interesting method to test float
clearing without having to cycle back and forth to your IDE or text editor.
Not exactly sure why setting the cssText to null would clear a float,
but it seems to do the trick.
Here's the snippet:
javascript:(document.getElementById('container').style.cssText=null)();
Just replace 'container' with 'your-container-name' and paste it into
the URL after the page has loaded. If you're clearing the right
container, IE will adjust the layout.
Anyway, thought it was interesting, so I'm sending it along in case it
helps someone else.
Best Regards,
Bill
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Bill Brown, MacNimble.com :: "From dot concept to dot com since 1999"
WebDevelopedia.com, TheHolierGrail.com, Cyber-Sandbox.com, Anytowne.com
"The intuitive mind is a sacred gift and the rational mind is a
faithful servant. We have created a society that honors the servant and
has forgotten the gift. -- Albert Einstein
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/