[Resolved] Sidebar in 2 columns

Home Forums Support [Resolved] Sidebar in 2 columns

Home Forums Support Sidebar in 2 columns

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1385315
    Anil

    Hi

    I want to have sidebar in 2 columns @media (min-width: 600px) and (max-width: 767px)

    Please guide

    #1385430
    David
    Staff
    Customer Support

    Hi there,

    can you explain a little more?
    Do you want the desktop layout to be kept as low as 600px?

    #1385528
    Anil

    Yes David. 2 columns blog is set at that width also.

    #1385659
    David
    Staff
    Customer Support

    sorry still not clear.
    Currently on Desktop you have 3 columns: Archive Column 1 | Archive Column 2 | Sidebar
    Do you want to keep that layout at 600px ?

    #1385890
    Anil

    At 600 = 2 columns of archive

    sidebar which flows down after this, it is displayed in 1 wide column of 600px width…

    Can I float different widgets of sidebar with 50% width appearing as 2 columns of widgets of sidebar….

    #1385919
    David
    Staff
    Customer Support

    Aah ok. Try this:

    @media (max-width: 768px) and (min-width: 600px) {
        #right-sidebar .inside-right-sidebar {
            display: flex;
            flex-wrap: wrap;
        }
        #right-sidebar .widget {
            flex-basis: calc( 50% - 5px );
        }
        #right-sidebar .widget:nth-of-type(even) {
            margin-left: 5px;
        }
        #right-sidebar .widget:nth-of-type(odd) {
            margin-right: 5px;
        }
    }
    #1386122
    Anil

    Thanks David, it is working fine.
    Regards.

    #1386136
    David
    Staff
    Customer Support

    Glad to hear that !

    #1386144
    Anil

    Thanks David, I believe you a maestro in CSS.
    Regards

    #1386616
    David
    Staff
    Customer Support

    Thank you! Glad to be of help

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