hello
could someone help me with div position
This is code:

<th width="200" scope="col" bgcolor="#666666"">
    <div class="css" id="myOtherElement">
		<span><strong>Menu</strong></span>
		<div>
			<a href="#">Menuelement 1</a>
			<a href="#">Menuelement 2</a>
			<a href="#">Menuelement 3</a>
		</div>
	</div>
    </th>

css code:

.css{
position:absolute;
left:0px;
top:0px;
z-index:-1
}

the problem is when i set its position, the javascript(mootools) doesn't work.
i want to find another way of changing the position

I'm not sure what you mean. Is the problem that your javascript function, when called, does not reposition the elements from what is specified in CSS?

If this is the case, it is because Javascript can't reposition an element if its position is specified in an external stylesheet. Instead, try making these style specifications inline, and that should work better.

Hope this helps.

I mean that when i call position method its postion changes but javascript will not work

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.