![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I have the code below in which the play1.gif image is visible and when the associated sound has been played the the 2 images same1.gif and different1.gif appear. Once one of these has been selected the 3 images and the title disappear and the second title and play image appear etc. Problem is that for sucessive Test titles the titles and the associated images move down the page. I am using the following css. .hiddenDiv2 { display: none; } .visibleDiv2{ display: block; } Is it possible to keep the successive titles and images in the same place on the page? |
#3
| |||
| |||
|
|
On 2008-04-25, Geoff Cox <gcox (AT) freeuk (DOT) notcom> wrote: Hello, I have the code below in which the play1.gif image is visible and when the associated sound has been played the the 2 images same1.gif and different1.gif appear. Once one of these has been selected the 3 images and the title disappear and the second title and play image appear etc. Problem is that for sucessive Test titles the titles and the associated images move down the page. I am using the following css. .hiddenDiv2 { display: none; } .visibleDiv2{ display: block; } Is it possible to keep the successive titles and images in the same place on the page? It sounds like you want to use .hiddenDiv2 { visibility: hidden; } .visibleDiv2{ visible: visible; } |
|
instead. Display: none makes the element disappear, which alters the position of other elements. Visibility: hidden just makes it invisible. |
#4
| |||
| |||
|
|
On 2008-04-25, Geoff Cox <gcox (AT) freeuk (DOT) notcom> wrote: Hello, I have the code below in which the play1.gif image is visible and when the associated sound has been played the the 2 images same1.gif and different1.gif appear. Once one of these has been selected the 3 images and the title disappear and the second title and play image appear etc. Problem is that for sucessive Test titles the titles and the associated images move down the page. I am using the following css. .hiddenDiv2 { display: none; } .visibleDiv2{ display: block; } Is it possible to keep the successive titles and images in the same place on the page? It sounds like you want to use .hiddenDiv2 { visibility: hidden; } .visibleDiv2{ visible: visible; } |
|
instead. Display: none makes the element disappear, which alters the position of other elements. Visibility: hidden just makes it invisible. |
#5
| |||
| |||
|
|
Ben, In fact contrary to my other reply it seems that it is postion:absolute that keeps successive titles and images in the same place ...? |
#6
| |||
| |||
|
|
In article <69m514tsriaqub03jaup70mtonv46lie6q (AT) 4ax (DOT) com>, Geoff Cox <gcox (AT) freeuk (DOT) notcom> wrote: Ben, In fact contrary to my other reply it seems that it is postion:absolute that keeps successive titles and images in the same place ...? position: absolute has a bad habit of doing this sort of thing. |
#7
| |||
| |||
|
|
On Sat, 26 Apr 2008 17:53:25 +1000, dorayme doraymeRidThis (AT) optusnet (DOT) com.au> wrote: In article <69m514tsriaqub03jaup70mtonv46lie6q (AT) 4ax (DOT) com>, Geoff Cox <gcox (AT) freeuk (DOT) notcom> wrote: Ben, In fact contrary to my other reply it seems that it is postion:absolute that keeps successive titles and images in the same place ...? position: absolute has a bad habit of doing this sort of thing. Yes - but that's what I want! |
#8
| |||
| |||
|
|
In article <eco514lul30t33n81e4s22v6b1vb9s4rva (AT) 4ax (DOT) com>, Geoff Cox <gcox (AT) freeuk (DOT) notcom> wrote: On Sat, 26 Apr 2008 17:53:25 +1000, dorayme doraymeRidThis (AT) optusnet (DOT) com.au> wrote: In article <69m514tsriaqub03jaup70mtonv46lie6q (AT) 4ax (DOT) com>, Geoff Cox <gcox (AT) freeuk (DOT) notcom> wrote: Ben, In fact contrary to my other reply it seems that it is postion:absolute that keeps successive titles and images in the same place ...? position: absolute has a bad habit of doing this sort of thing. Yes - but that's what I want! I suspected you did! Let me add <g> to help along here. |
![]() |
| Thread Tools | |
| Display Modes | |
| |