Title: Spacing between Nested Sections is inconsistent
Last modified: August 21, 2016

---

# Spacing between Nested Sections is inconsistent

 *  Resolved [outtacontext](https://wordpress.org/support/users/outtacontext/)
 * (@outtacontext)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/spacing-between-nested-sections-is-inconsistent/)
 * My nested sections are showing inconsistent spacing when they are all collapsed.
   I can’t figure out why this is happening. Firebug in Firefox isn’t showing the
   problem. I did change span to div but that didn’t do anything.
 * Here’s a link: [http://americanartinvites.com/education/historical-eras/colonization-and-settlement/pair-young-moravian-girl-mrs-george-watson/](http://americanartinvites.com/education/historical-eras/colonization-and-settlement/pair-young-moravian-girl-mrs-george-watson/)
 * [http://wordpress.org/plugins/jquery-collapse-o-matic/](http://wordpress.org/plugins/jquery-collapse-o-matic/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Baden](https://wordpress.org/support/users/baden03/)
 * (@baden03)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/spacing-between-nested-sections-is-inconsistent/#post-4337366)
 * what do your first two shortcodes look like?
 *  Thread Starter [outtacontext](https://wordpress.org/support/users/outtacontext/)
 * (@outtacontext)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/spacing-between-nested-sections-is-inconsistent/#post-4337416)
 * They look like this:
 *     ```
       [expand title="Observation and Interpretation" tag="h2"]
       Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec congue ornare lacus, [/expand]
       [expand title="Focus On: Topics" tag="h2"]
       [expandsub1 title="Immigration" tag="h3"]
       [expand title="Observation and Interpretation" tag="h2"]
       Vestibulum ornare ante in nibh ullamcorper gravida. Aliquam rutrum arcu a metus pellentesque, auctor laoreet velit iaculis. [/expandsub1]
       [expandsub1 title="Religion" tag="h3"]
       Cras sollicitudin pellentesque pellentesque. In hac habitasse platea dictumst. Mauris eu varius nisl.
       [/expandsub1]
       [expandsub1 title="Moravian Community Life" tag="h3"]
       [/expandsub1]
       [expandsub1 title="Women’s Roles" tag="h3"]
       [/expandsub1]
       [expandsub1 title="Material Culture" tag="h3"]
       [/expandsub1]
       [expandsub1 title="Purpose of Portraiture" tag="h3"]
       [/expandsub1]
       [expandsub1 title="The American Revolution: Boston" tag="h3"]
       [/expandsub1]
       [expandsub1 title="The American Revolution: Bethlehem, PA" tag="h3"]
       [/expandsub1]
       [expandsub1 title="The Artist: John Singleton Copley" tag="h3"]
       [/expandsub1]
       [expandsub1 title="The Artist: Johann Valentine Haidt" tag="h3"]
       [/expandsub1]
       [/expand]
   
       [expand title="Discussion Questions" tag="h2"]
       [/expand]
       [expand title="Primary Sources" tag="h2"]
       Young Moravian Girl
       <ul>
       	<li>Writings/ memoirs of 4 Moravian women</li>
       	<li>Extracts from Moravian diary confirming Haidt as teacher</li>
       	<li>Lafayette’s letter to his wife describing Bethlehem</li>
       	<li>Various Moravian portraits by Haidt and prints of Bethlehem</li>
       </ul>
   
       Mrs. George Watson
   
       <ul>
       	<li>The death sermon of Mrs. Watson</li>
       	<li>Paul Revere’s print of the Bloody Massacre</li>
       	<li>John Singleton Copley's letter about George Watson</li>
       	<li>George Watson’s resignation letter to Gen. Gage</li>
       	<li>Henry Pelham’s letter on Tea Party incident</li>
       	<li>Letter by Richard Clarke about tea shipment (Boston Tea Party)</li>
       	<li>Letter from Abigail Adams to Elizabeth Cranch about daughter of Mrs. George Watson</li>
       	<li>Various portraits of family members by Copley</li>
       	<li>Contemporary transcript of the Boston Massacre Trials</li>
       </ul>
       [/expand]
       ```
   
 *  Plugin Author [Baden](https://wordpress.org/support/users/baden03/)
 * (@baden03)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/spacing-between-nested-sections-is-inconsistent/#post-4337421)
 * This is a common and well documented issue with [wpautop](http://wordpress.org/search/wpautop+br+p)
 * We came up with a [quick solution](http://spacedonkey.de/867/collapse-o-matic-nested-spacing-issue/)
   simply by removing all the hard returns from your source as follows:
 * Bad:
 *     ```
       [expand title="Observation and Interpretation" tag="h2"]
       Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec congue ornare lacus, [/expand]
       [expand title="Focus On: Topics" tag="h2"]
       [expandsub1 title="Immigration" tag="h3"]
       ...
       ```
   
 * Better:
 *     ```
       [expand title="Observation and Interpretation" tag="h2"]Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec congue ornare lacus, [/expand][expand title="Focus On: Topics" tag="h2"][expandsub1 title="Immigration" tag="h3"]...
       ```
   
 * See if that works for you.
 *  Thread Starter [outtacontext](https://wordpress.org/support/users/outtacontext/)
 * (@outtacontext)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/spacing-between-nested-sections-is-inconsistent/#post-4337422)
 * Yes, that seems to be working. Thanks.
 * May I make a few suggestions: first, if you can, please fix this problem. Bunching
   everything up like this makes it hard to “see” where one section ends and the
   next begins.
 * But, in the meantime, please post this issue with nesting in your documentation.
   It would have been really helpful to know a) this is a known issue, and b) there
   is a band aid fix for it.
 * I really appreciate your quite response. Thanks!!!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Spacing between Nested Sections is inconsistent’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/jquery-collapse-o-matic_fffeff.svg)
 * [Collapse-O-Matic](https://wordpress.org/plugins/jquery-collapse-o-matic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jquery-collapse-o-matic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jquery-collapse-o-matic/)
 * [Active Topics](https://wordpress.org/support/plugin/jquery-collapse-o-matic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jquery-collapse-o-matic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jquery-collapse-o-matic/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [outtacontext](https://wordpress.org/support/users/outtacontext/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/spacing-between-nested-sections-is-inconsistent/#post-4337422)
 * Status: resolved