Obeying only part of a style

S

sheldonlg

I have a small test html program (www.sheldonlg.com/toggling4.htm) that
works fine. Clicking "Show" causes a block to appear at 200,200. The
Javascript handles this and causes the Show to change to hide.

My problem is that when I put this into my actual application,
everything works fine (including toggling and color changes, etc.)
except that the positioning is ignored. It appears in the position
where it was defined in the page (after another block) and causes the
rest of the page to be pushed down by that amount.

The css class is:
..showHide {
zIndex: 99;
transparency: 80%;
position: absolute;
top: 200px;
left: 200px;
background-color: #DDDDDD;
visibility:hidden;
}

What could cause just the positioning to be ignored?
 
E

Els

sheldonlg said:
I have a small test html program (www.sheldonlg.com/toggling4.htm) that
works fine. Clicking "Show" causes a block to appear at 200,200. The
Javascript handles this and causes the Show to change to hide.

My problem is that when I put this into my actual application,
everything works fine (including toggling and color changes, etc.)
except that the positioning is ignored. It appears in the position
where it was defined in the page (after another block) and causes the
rest of the page to be pushed down by that amount.
zIndex: 99;

zIndex should be z-index.
What could cause just the positioning to be ignored?

Difficult to say if we can't see the page where this is happening.
 
S

sheldonlg

Els said:
zIndex should be z-index.


Difficult to say if we can't see the page where this is happening.

Thank you. I made that change (I should have noticed it myself) and
also noticed that in the actual app I had 200 and not 200px. Making
both these changes got it to work.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top