[Resolved] FAQ with toggles

Home Forums Support [Resolved] FAQ with toggles

Home Forums Support FAQ with toggles

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #243613
    Farokh

    Hi, how can I make FAQs with toggles?

    #243636
    Tom
    Lead Developer
    Lead Developer
    #244568
    Farokh

    Thanks, it’s great, but can you help with some short css to move the BUTTONS to the right side of the page (RTL)?

    .my_button {
    background: #00A5F2;
    color: white;
    padding: 5px;
    width: 130px;
    text-align: right;
    }

    #244577
    Tom
    Lead Developer
    Lead Developer

    float:right might be what you’re looking for.

    You can place your content in columns: https://wordpress.org/plugins/lightweight-grid-columns/

    #244579
    Farokh

    float: right makes buttons stand in a line one after another (on the right side of the page of course), but I need them to stand vertically one above each other (on the right side)

    #244584
    Tom
    Lead Developer
    Lead Developer

    Then using columns might be your best bet.

    Otherwise you’ll need to place your buttons inside a div which is floating to the right:

    <div style="float:right">
        buttons in here
    </div>
    #244585
    Farokh

    Like this!? Cuz its not working

    .my_button {
    background: #00A5F2;
    color: white;
    padding: 5px;
    width: 130px;
    text-align: right;
    }

    .my_button.colomat-hover{
    background: #999;
    text-decoration: none;
    }

    .my_content{
    margin-left: 0;
    text-align: right;
    }

    #244613
    Farokh

    How Can I use coloumns?

    #244692
    Tom
    Lead Developer
    Lead Developer

    By using a plugin like this: https://wordpress.org/plugins/lightweight-grid-columns/

    Your CSS depends on the HTML structure. I’m assuming you need float:right instead of text-align:right;

    #245056
    Farokh

    Hi, Tom

    Lightweight Grid Columns is Great!

    But, how can I have the content in the columns float right (rtl) using simple CSS?

    #245065
    Tom
    Lead Developer
    Lead Developer

    You could try this:

    .inside-grid-column {
        text-align: right;
    }
    #245066
    Farokh

    Thanks, worked perfect

    How can I learn more about working with CSS in general? Any suggestions?

    #245191
    Tom
    Lead Developer
    Lead Developer

    Just general practice. Codecademy is also a good learning resource.

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.