Title: formatting
Last modified: August 20, 2016

---

# formatting

 *  Resolved [ian6](https://wordpress.org/support/users/ian6/)
 * (@ian6)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/formatting-9/)
 * a question about formatting,
 * in order to separate categories of questions I’d like to either include them (
   with header & all, or only the answer text) within a “box” or just set a different
   background-color (either for each group or only the answers).
 * I can do it to some degree, but then the first question appears expanded, sometimes
   all of them etc
 * Any ideas?
    Thanks
 * [http://wordpress.org/extend/plugins/easy-faq-with-expanding-text/](http://wordpress.org/extend/plugins/easy-faq-with-expanding-text/)

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

 *  Thread Starter [ian6](https://wordpress.org/support/users/ian6/)
 * (@ian6)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/formatting-9/#post-3236206)
 * I have to clear the above question a bit:
 * in order to separate categories of questions I’d like to either include them (
   with header & all, or in worst case: only the answer text) within a “box” or 
   just set a different background-color (either for each group or only the answers).
 * The first question appears expanded, sometimes all of them etc (it reacts unpredictably
   with or without some text or tag on the very top of the page content)
 * —
    Now I use separating horizontal lines, but a colour indication too has my 
   preference.
 *  Plugin Author [bgentry](https://wordpress.org/support/users/bgentry/)
 * (@bgentry)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/formatting-9/#post-3236216)
 * This is a bit more complicated than the plugin was designed to handle automatically,
   but it is worth a shot.
 * How are you adding the separate colors? Please supply a link to your page if 
   you can so I can see it.
 * If you are using HTML Divs, I would recommend having an element above the first
   question of each Div. This element could be an empty paragraph, or a heading 
   that gives the section name.
 *  Thread Starter [ian6](https://wordpress.org/support/users/ian6/)
 * (@ian6)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/formatting-9/#post-3236238)
 * After having devised a satisfactory & simple way to format my FAQ-page I notice
   another unexpected thing (from my point of view).
 * I set a background-colour for the paragraph containing the answer.
    But when 
   I need an empty line between text, using either <p> separates the paragraphs,
   which discontinues the background, or a double  which does the same.
 * Any way to circumvent this (and keep the background continuous) ?
 * (I tried also using a <section>-tag instead of <p>’s under the <h>, but it rather
   mixes everything up, while keeping the background throughout).
 *  Thread Starter [ian6](https://wordpress.org/support/users/ian6/)
 * (@ian6)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/formatting-9/#post-3236239)
 * Hmm, previous post came again partially over…
 * I mean:
    in the “answer” space sometimes I need more paragraphs, inside a common
   background colour. If I use either <p>’s or ‘s the background breaks between 
   the two groups, leaving a space without this uniform background-colour of the
   answer.
 * Using <section>-tags kind of works, but makes things complicated for such a simple
   task.
 * Any ideas?
 *  Thread Starter [ian6](https://wordpress.org/support/users/ian6/)
 * (@ian6)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/formatting-9/#post-3236240)
 * … or 
   ‘s
 *  Plugin Author [bgentry](https://wordpress.org/support/users/bgentry/)
 * (@bgentry)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/formatting-9/#post-3236241)
 * To accurately diagnose the problem I need to see more code (the style codes and
   the section tags you are using) or, preferably, a sample page that is having 
   this issue.
 * This worked for me:
 * add this to the stylesheet:
 *     ```
       .greenback {
           background-color:green;
       }
       ```
   
 * and add this around each section of answers:
 *     ```
       <div class="greenback">
           <!--answer goes in here-->
       </div>
       ```
   
 *  Thread Starter [ian6](https://wordpress.org/support/users/ian6/)
 * (@ian6)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/formatting-9/#post-3236242)
 * this works like the most natural thing in the world…
 * thank you very much again!

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

The topic ‘formatting’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/easy-faq-with-expanding-text.svg)
 * [Easy FAQ with Expanding Text](https://wordpress.org/plugins/easy-faq-with-expanding-text/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-faq-with-expanding-text/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-faq-with-expanding-text/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-faq-with-expanding-text/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-faq-with-expanding-text/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-faq-with-expanding-text/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [ian6](https://wordpress.org/support/users/ian6/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/formatting-9/#post-3236242)
 * Status: resolved