• Resolved ian6

    (@ian6)


    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

    https://www.ads-software.com/extend/plugins/easy-faq-with-expanding-text/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter ian6

    (@ian6)

    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

    (@bgentry)

    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

    (@ian6)

    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

    (@ian6)

    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

    (@ian6)

    … or
    ‘s

    Plugin Author bgentry

    (@bgentry)

    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

    (@ian6)

    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.