<div> blocks in same position?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Geoff Cox

    <div> blocks in same position?

    Hello,

    Sorry for separate posting in both this and the authoring.html group -
    my mistake.

    I have a series of <divblocks which I want to appear in the same
    position on the page, one after the other.

    Can I do this with css/javascript?

    At the moment one <divblock is visible and the other 3 invisible.
    Once the first block has been used I want it to become invisible and
    the second block to become visible and take its place on the page.

    I can do the visible/invisible bit but the problem at the moment is
    that each <divoccupies its own space and successive blocks, when
    they are made visible, move along the page.

    Cheers

    Geoff
  • Geoff Cox

    #2
    Re: &lt;div&gt; blocks in same position?

    On Wed, 16 Apr 2008 07:54:51 +0100, Geoff Cox <gcox@freeuk.no tcom>
    wrote:


    Got my answer from html.authoring group

    "There are various ways to do this but one is to switch them between
    display:block and display:none rather than between visibility:visi ble
    and visibility:hidd en.

    If something's display:none then it's as though it weren't there at
    all."

    Cheers

    Geoff

    Comment

    Working...