Click here to get back home

contents in same position?

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Geoff Cox 04-16-2008
Posted by Geoff Cox on April 16, 2008, 2:52 am
Please log in for more thread options
Hello,

I have a series of <div> blocks 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 <div> block 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 <div> occupies its own space and successive blocks, when
they are made visible, move along the page.

Cheers

Geoff

Posted by Ben C on April 16, 2008, 3:25 am
Please log in for more thread options
> Hello,
>
> I have a series of <div> blocks 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 <div> block 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 <div> occupies its own space and successive blocks, when
> they are made visible, move along the page.

There are various ways to do this but one is to switch them between
display:block and display:none rather than between visibility:visible
and visibility:hidden.

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

Posted by Geoff Cox on April 16, 2008, 3:48 am
Please log in for more thread options


>> I can do the visible/invisible bit but the problem at the moment is
>> that each <div> occupies its own space and successive blocks, when
>> they are made visible, move along the page.
>
>There are various ways to do this but one is to switch them between
>display:block and display:none rather than between visibility:visible
>and visibility:hidden.
>
>If something's display:none then it's as though it weren't there at all.

Thanks a lot! Works as wished for.

Cheers

Geoff

Similar ThreadsPosted
Fixing a Table of Contents Menu, when contents Scroll May 5, 2008, 7:40 am
remembering div position September 19, 2006, 8:50 am
flip/flop contents of a frame ? February 24, 2006, 12:09 pm
Multiple-level Table of Contents April 6, 2006, 9:59 am
IE does not display/position June 14, 2005, 7:58 pm
Trying to position table columns December 28, 2005, 9:43 am
negative vertical position? December 20, 2006, 3:09 pm
Force justification of inline frame contents April 6, 2005, 12:02 am
table/cell contents postioning question? September 3, 2005, 10:27 am
forcing ie to save the contents of the html instead of displaying it September 9, 2005, 5:47 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap