HighDots Forums  

show/hide blocks in list items

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss show/hide blocks in list items in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
steven
 
Posts: n/a

Default show/hide blocks in list items - 01-08-2005 , 03:55 PM






Hi,
sorry for the crosspost, but I'm not sure if my problem is with the HTML or
the CSS :-(

URL: http://www.nenya.be/temp/list.htm

I have a list with in each list item a text + link which are always visible,
and a blockquote which can be shown or hidden by clicking the link.
Showing/hiding works, but the blockquote's margins behave a bit strange.
I'll try to explain, though the best way to understand what happens is to go
and see on the page itself.

1. when I show a block with no blocks visible, I don't get the bottom margin
I want.
2. when I show a block with the *next block visible*, I do get the bottom
margin (and the other block becomes hidden as it should).
3. when I hide a block with the bottom margin present, the margin remains
even though the block is invisible.
4. Now I have, say, list item 3 where the blockquote is hidden, but it's
margin is visible. The margin only disappears when I show the *next* list
item's blockquote (4 in this case).

I hope the description makes sense. Just tell me if it needs clarification.

Now all this happens in FF1; even IE6 gets it right! (I mean, normally it's
the other way around).
Am I using the wrong structure, I mean the blockquote within the list item?
Other stupid mistakes?
Any help will be rewarded with eternal gratitude.

Steven



Reply With Quote
  #2  
Old   
Martin Johansen
 
Posts: n/a

Default Re: show/hide blocks in list items - 01-09-2005 , 03:55 PM






Hi

I succedded by changing the style to

position: absolute;
visibility: hidden;

This may help you.

--
_____
New computer algebra system:
http://sourceforge.net/projects/dcas/
My website:
http://www.denotesoftware.com/
"steven" <stevenPANTSvh (AT) pandora (DOT) be> wrote

Quote:
Hi,
sorry for the crosspost, but I'm not sure if my problem is with the HTML
or
the CSS :-(

URL: http://www.nenya.be/temp/list.htm

I have a list with in each list item a text + link which are always
visible,
and a blockquote which can be shown or hidden by clicking the link.
Showing/hiding works, but the blockquote's margins behave a bit strange.
I'll try to explain, though the best way to understand what happens is to
go
and see on the page itself.

1. when I show a block with no blocks visible, I don't get the bottom
margin
I want.
2. when I show a block with the *next block visible*, I do get the bottom
margin (and the other block becomes hidden as it should).
3. when I hide a block with the bottom margin present, the margin remains
even though the block is invisible.
4. Now I have, say, list item 3 where the blockquote is hidden, but it's
margin is visible. The margin only disappears when I show the *next* list
item's blockquote (4 in this case).

I hope the description makes sense. Just tell me if it needs
clarification.

Now all this happens in FF1; even IE6 gets it right! (I mean, normally
it's
the other way around).
Am I using the wrong structure, I mean the blockquote within the list
item?
Other stupid mistakes?
Any help will be rewarded with eternal gratitude.

Steven





Reply With Quote
  #3  
Old   
steven
 
Posts: n/a

Default Re: show/hide blocks in list items - 01-10-2005 , 11:31 AM



(top post corrected)
"Martin Johansen" <mfag (AT) online (DOT) no> wrote

Quote:
"steven" <stevenPANTSvh (AT) pandora (DOT) be> wrote in message
news:2FYDd.25206$EF4.1714235 (AT) phobos (DOT) telenet-ops.be...
Hi,
sorry for the crosspost, but I'm not sure if my problem is with the HTML
or
the CSS :-(

URL: http://www.nenya.be/temp/list.htm

I have a list with in each list item a text + link which are always
visible,
and a blockquote which can be shown or hidden by clicking the link.
Showing/hiding works, but the blockquote's margins behave a bit strange.
I'll try to explain, though the best way to understand what happens is
to
go
and see on the page itself.

1. when I show a block with no blocks visible, I don't get the bottom
margin
I want.
2. when I show a block with the *next block visible*, I do get the
bottom
margin (and the other block becomes hidden as it should).
3. when I hide a block with the bottom margin present, the margin
remains
even though the block is invisible.
4. Now I have, say, list item 3 where the blockquote is hidden, but it's
margin is visible. The margin only disappears when I show the *next*
list
item's blockquote (4 in this case).

I hope the description makes sense. Just tell me if it needs
clarification.

Now all this happens in FF1; even IE6 gets it right! (I mean, normally
it's
the other way around).
Am I using the wrong structure, I mean the blockquote within the list
item?
Other stupid mistakes?
Any help will be rewarded with eternal gratitude.


Hi

I succedded by changing the style to

position: absolute;
visibility: hidden;

This may help you.

Thanks for the reply Martin.
It doesn't seem to work though: when I add the properties to the blockquote
style nothing happens. And when I add them to the paragraph's style, the
margin problem remains, but the blockquote's text doesn't show, just the
border as a thick horizontal line.
Could you post your code? Sure it worked in *Firefox*?

Steven




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.