Page 1 of 1

Height of collapsible

Posted: Fri Jun 27, 2014 1:01 am
by Aeneas McBurney

How do I change the height of a collapsible component? I have tried adding a property of height and setting it to 20px but it makes no difference.


Height of collapsible

Posted: Fri Jun 27, 2014 1:26 am
by Alena Prykhodko

To change height of Collapsblock content:

pre.ui-collapsible-content {height:100px;}/pre

To change height of Collapsblock header:

pre.ui-collapsible-heading-toggle {height:100px;}/pre


Height of collapsible

Posted: Fri Jun 27, 2014 1:56 am
by Aeneas McBurney

I have added this to my Swatch B and it doesn't appear to have made any difference to height of the collapsible box

.ui-collapsible-content-b {height:50px;}
.ui-collapsible-heading-toggle-b {height:50px;}


Height of collapsible

Posted: Fri Jun 27, 2014 1:59 am
by Alena Prykhodko

Not sure I understand this
[quote:]
I have added this to my Swatch B [/quote]
You need to add code posted above to CSS asset.


Height of collapsible

Posted: Fri Jun 27, 2014 2:11 am
by Aeneas McBurney

Sorry I'm quite new to CSS and I added it to the Themes sheet. I have now added to CSS file and it works but on every collapsible. How do I get it to change height on just one?


Height of collapsible

Posted: Fri Jun 27, 2014 3:15 am
by Alena Prykhodko

Thus use this CSS

To change height of Collapsblock content:

prediv[name = mobilecollapsblock_1] .ui-collapsible-content {height:60px;}/pre

Where mobilecollapsblock_1 - your Collapsblock name;

To change height of Collapsblock header:
pre
[name = mobilecollapsblockheader_2] .ui-collapsible-heading-toggle {height:60px;}/pre

Where mobilecollapsblockheader_2 - your Collapsblock header name;


Height of collapsible

Posted: Fri Jun 27, 2014 4:06 am
by Aeneas McBurney

Sorry I'm still trying to get this to work. I have a collapsible item called collapseSavings and when I add this line to my CSS file nothing changes?

[name = collapseSavings] .ui-collapsible-heading-toggle {height:20px;}

I've also tried
div[name = collapseSavings] .ui-collapsible-heading-toggle {height:20px;}

I'm also saving the file before checking but still makes no difference. Am I doing this right?


Height of collapsible

Posted: Fri Jun 27, 2014 5:32 am
by Alena Prykhodko

It's important where you add component names.

Note:

To change height of Collapsblock content:
pre
div[name = mobilecollapsblock_1] .ui-collapsible-content {height:60px;}/pre

mobilecollapsblock_1 - it's Collapsblock name http://prntscr.com/3wxpn7/direct
.ui-collapsible-content - it's class of content

To change height of Collapsblock header:

pre

[name = mobilecollapsblockheader_2] .ui-collapsible-heading-toggle {height:60px;}
/pre

mobilecollapsblockheader_2 - it's Collapsblock header name http://prntscr.com/3wxogr/direct
.ui-collapsible-heading-toggle - it's class of header

Please do not change the code, just replace given component names with yours.


Height of collapsible

Posted: Fri Jun 27, 2014 5:50 am
by Aeneas McBurney

This is what I have done, please see screenshot and this has been added as a new line in my CSS file

[name = collapseSavings] .ui-collapsible-heading-toggle {height:20px;}

Image


Height of collapsible

Posted: Fri Jun 27, 2014 12:26 pm
by Alena Prykhodko

This line is incorrect

pre[name = collapseSavings] .ui-collapsible-heading-toggle {height:20px;} /pre

As you use header class .ui-collapsible-heading-toggle with Collapseblock (collapseSavings) component.

You should use savingsHeader name instead.

pre[name = savingsHeader ] .ui-collapsible-heading-toggle {height:20px;} /pre