One of the first things to look at in removing whitespace is removing
whitespace from the code. If you have
<span>
some text
</span>
try
<span>some text</span>
The same trick that works with tables also works with divs and spans.
// gilbert midonnet
-----Original Message-----
From: FlashGuy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 10:28 AM
To: CF-Talk
Subject: OT: Cont'd from previous thread - Expanding menu
Sorry to keep bugging you on this subject but I've messed with the <span
style attributes and I can't get the whitespace removed above the paragraph
text. I've tried them all.
What am I doing wrong?
-- begin script
var ie = document.all? true : false;
var ns4 = document.layers? true : false;
var dom = document.getElementById && !document.all ? true : false;
function getObject(nameStr) {
if (dom) {
return document.getElementById( nameStr );
}
else if (ie) {
return document.all[nameStr];
}
else if (ns4) {
return document.layers[nameStr];
}
}
function popUp(boxName,on) {
objLayer = getObject(boxName);
if (on)
objLayer.style.visibility = ns4 ? "show" : "visible";
else
objLayer.style.visibility = ns4 ? "hide" : "hidden";
}
-- end script
<span id="control" style="position:absolute;visibility:visible;">
<a href="javascript:popUp('code',true);">Maximize</a>
</span>
<span id="code"
style="position:relative;visibility:hidden;background:white;">
<a href="javascript:popUp('code',false);">Minimize</a><br>
<a href="fileactions/folder-new.cfm" target="display">[New]</a>
<a href="fileactions/folder-rename.cfm" target="display">[Rename]</a>
</span>
<p>It comes in the night, a flying sphere emitting red and blue lights that
attacks villagers in this poor region, extensively burning those victims
it does not kill. At least that's what panic-stricken villagers say. At
least
seven people have died of unexplained injuries in the past week in Uttar
Pradesh state.</p>
______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists