Closed Thread Icon

Preserved Topic: span positioning...problem Pages that link to <a href="https://ozoneasylum.com/backlink?for=18503" title="Pages that link to Preserved Topic: span positioning...problem" rel="nofollow" >Preserved Topic: span positioning...problem\

 
Author Thread
Tkins
Obsessive-Compulsive (I) Inmate

From: San Francisco, CA, USA
Insane since: Apr 2002

posted posted 04-17-2002 23:02

I'm trying to create a onClick function that makes a span visible when the portfolio link is clicked on. The span should display above the link. Which I kind of have working already. But when I resize my screen the span comes up in the wrong place because I'm using absolute positioning.

How can I correct this with out creating a space were the hidden span are?

Take a look here: http://www.peteratkins.com/jpdavid/

Thanks!


Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 04-19-2002 02:43

Tkins, one of the things that accompanys absolute positioning your elements on a page is that you need to position them correctly. This means that if the window resizes or some other event occurs that messes up the original position, you will need to reposition the element accordingly.

Several of us here do this a lot on our pages, and I have written this demo page to help people understand how to maintain proper absolute positioning:

http://www.bugimus.com/gurus/center_div.html

I hope it helps

. . : newThing

« BackwardsOnwards »

Show Forum Drop Down Menu