0

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

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by samlabs821
0

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.

0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.