Closed (won't fix)
Project:
Collapse Text
Version:
6.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Apr 2012 at 11:11 UTC
Updated:
27 Jul 2012 at 18:01 UTC
Is it possible to have inline collapsibles?
I am trying to accomplish this with CSS
.collapse-text-text.collapsed-text {
display:inline;
}
legend.collapse-processed {
line-height: 1em;
}
fieldset.collapsed-text-fieldset {
border: 0pt none; padding: 0pt; margin: 0pt; display: inline;
}
but the module adds paragraphs/divs to the output, which cause newlines which are impossible to disable/remove.
...</div>
<div class="collapse-text-text collapsed-text">
<p>paragraph 1</p>
<p>paragraph 2</p>
</div>
<fieldset class="collapse-text-fieldset collapsed-text-fieldset myclass collapsible collapsed">
<legend class="collapse-processed" style="line-height: 0.9em;">
<a href="#">MyLegend</a>
</legend>
<div class="fieldset-wrapper" style="display: none;">My collapsed content</div>
</fieldset>
<div class="collapse-text-text collapsed-text" style="display: inline;">...
Comments
Comment #1
pukku commentedHi! I'm not even sure how that would work with displaying things.
I suppose you could try to play with making the divs inline, but I don't really know what to tell you. The extra divs are added to make it all validate, and also to ensure that the text is displayed in the right order.
I'm sorry that I can't help you, but I don't think this is something that I can change without a lot of things suddenly not working correctly.
Ricky