Using a custom settings for the margin-left value |.collapseomatic_excerpt
-
I would like to ask regarding the option of nested section and the “indent” settings.
The default CSS style include a default class that use setting that indent the content (margin-left: 16px)
.collapseomatic_excerpt, .collapseomatic_content {
margin-top: 0px;
margin-left: 16px;
padding: 0px;Scenario 1: using the “standard” expand and collapse
I use the option of “expand” for standard text section without the need to “indent” the text (cancel the default settings of (margin-left: 16px)
HTML
[expand title=”Title” trigclass=”Head01″ expanded=”true”]
[/expand]
CSS style ( update the default setting of margin-left to 1 px)
.collapseomatic_excerpt, .collapseomatic_content {
margin-top: 0px;
margin-left: 1px;
padding: 0px;
}Scenario 2: using nested expand and collapse + custom style (.Head01)
In other article I would like to use the nested option + use the indent (margin-left: 16px)
HTML
[expand title=”Root Level” ]
Some txt
[expandsub1 title=”Nested Level 1″ trigclass=”Head01″]
Some txt
[/expandsub1]
[/expand]CSS style
For this purpose I add a custom CSS class as follow:.Head01
{
background: #eee url(images/plus.png) no-repeat 98% 50%;;
border-color:#949494 #949494;
font-size: 110%;
padding: 0px 5px 5px 10px;
cursor: pointer;
color:#000;
}.Head01.colomat-close
{
background: #eee url(images/minus.png) no-repeat 98% 50%; }.Head01.collapseomatic_excerpt, .Head01.collapseomatic_content
{
margin-top: 0px;
margin-left: 16px;
padding: 0px;
}
The problem is that the “indent” settings for the custom style are not applied. In other words: the nested use the custom style (color etc) but doesn’t use the custom settings of margin-left: 16px;
If you can look, I have some example in the following link:
http://www.o365pilot.com/2014/04/test-expand-005.htmlthanks in advanced
Eyal
The topic ‘Using a custom settings for the margin-left value |.collapseomatic_excerpt’ is closed to new replies.