...

View Full Version : shifted content



imatus
10-17-2005, 05:28 PM
Hello again everybody,

I'm facing the same problem for the second time that is why I ask for your help. Here (http://imatus.free.fr/ebenesy) for example when I click Contactez-moi the address that appears shifts the rest of the content down. However it wasn't doing that before I changed the layout of these navigation links, still I cannot figure out why it started doing that :confused:

If you've got an idea, please drop me a hint,

Thank you in advance
imatus

_Aerospace_Eng_
10-17-2005, 05:49 PM
What did you expect to happen? You are adding content to the page. If you don't want the content to move you would need to make the spans position absolute using CSS.

vwphillips
10-17-2005, 05:52 PM
you are innerHTML a table to <span id="content0"></span>

The size of <span id="content0"></span> is therefore increasing

replace
<span id="content0"></span>
with
<div style="position:relative;left:100px;width:20px;height:20px;" >
<div id="content0" style="position:absolute;top:0px;left:0px" ></div>
</div>

and position where required

imatus
10-17-2005, 06:01 PM
OK, "absolute position" seems to be a key phrase :) thank you for your help guys :thumbsup: have a great day



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum