View Full Version : shifted content

10-17-2005, 06: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

10-17-2005, 06: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.

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

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

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

and position where required

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