/    Sign up×
Community /Pin to ProfileBookmark

Relative Layer Occupies Space

I’m having issues getting my relative layer to not create “ghost” space in my table where I’ve inserted the layer code. I doesn’t matter where I place the layer code, same result.

Here’s my code:
[URL=http://www.salonpr.com/consultation.htm]http://www.salonpr.com/consultation.htm[/URL]

You’ll need to mouse over the bottom left link “free phone consultation with every book” to see the layer. I’ve inserted the code just to the right of that. That big red empty area shouldn’t be there.

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@BonRougeSep 19.2005 — That's the nature of using 'left' and 'top' with relative positioning. That's what it does. It's not an error. To position elements which are 'position:relative;' use margin-top and margin-left.
Copy linkTweet thisAlerts:
@druidfogauthorSep 19.2005 — That took care of the vertical space issue, but I still have the horizontal issue. Is something else conflicting? I put the code in a different place and I still had the horizontal issue. Thx
Copy linkTweet thisAlerts:
@BonRougeSep 19.2005 — The script you're using just makes the element invisible. It's still there taking up the space - you just can't see it. You need to change the script. You could either use a different script, [url=http://bonrouge.com/br.php?page=faq#tooltips]use css[/url] (the way, I would recommend) or make a few small changes to the DW script....

function MM_showHideLayers() { //v6.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'[B]block[/B]':(v=='hide')?'[B]none[/B]':v; }
obj.[B]display[/B]=v; }
}

...and change this part of the inline style of that "Layer1' : visibility: hidden to this : display:none;

I hope this helps.
×

Success!

Help @druidfog spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...