WordPress.org

Ready to get started?Download WordPress

Forums

Easy FAQ with Expanding Text
[resolved] formatting (8 posts)

  1. ian6
    Member
    Posted 1 year ago #

    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/

  2. ian6
    Member
    Posted 1 year ago #

    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.

  3. bgentry
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  4. ian6
    Member
    Posted 1 year ago #

    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).

  5. ian6
    Member
    Posted 1 year ago #

    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?

  6. ian6
    Member
    Posted 1 year ago #

    ... or
    's

  7. bgentry
    Member
    Plugin Author

    Posted 1 year ago #

    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>
  8. ian6
    Member
    Posted 1 year ago #

    this works like the most natural thing in the world...

    thank you very much again!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.