Need help? Check out our Support site, then

Help needed building a Q&A page on my blog

  1. Hi, I'm trying to build a question and answer page with various sub questions and answers.
    I need to hide the answers and make them appear after a question is selected.
    Thus far I have tried to solve this with css.
    I have succeeded in hiding the answers and making them appear on hover.
    But I want it to happen by clicking on the question. Can you help me?

    CSS used:

    /* relates to the div that needs to be hidden */
    .xverborgen_element {
    height: 0;
    visibility: hidden;
    -webkit-transition: height 0 ease-out;
    -moz-transition: height 0 ease-out;
    -o-transition: height 0 ease-out;
    transition: height 0 ease-out;
    transition-delay: 0;
    -moz-transition-delay: 400ms;
    /* Firefox 4 */
    -webkit-transition-delay: 400ms;
    /* Safari and Chrome */
    -o-transition-delay: 400ms;
    /* Opera */

    /* relates to the div that triggers the visablity of the answer */

    .xschakel_element:hover .xverborgen_element {
    margin-left: 50px;
    margin-bottom: 50px;
    height: 100%;
    visibility: visible;
    background-color: whitesmoke;
    border: 2px solid lightgrey;
    -webkit-border-radius: 25px;
    -moz-border-radius: 25px;
    border-radius: 25px;
    /* Old Firefox */

    The blog I need help with is

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.