[Resolved] sidebar width

Home Forums Support [Resolved] sidebar width

Home Forums Support sidebar width

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1465048
    Stevie

    Hi guys
    I’m trying to get my sidebar widget image links ( 210px) to fill the sidebar
    in mobile view.
    Adjusting the width via sidebar layout in customiser works fine in desktop view
    but the image widget does not fill the sidebar in mobile view.
    is there a workaround to this?

    #1465088
    David
    Staff
    Customer Support

    Hi there,

    can you share a link to your site so i can see the issue?

    #1466940
    Stevie
    #1467011
    David
    Staff
    Customer Support

    Try this CSS:

    @media(max-width: 768px) {
        .sidebar .widget img {
            width: 100%;
        }
    }
    #1467799
    Stevie

    tip top, seems to work.
    I’m curious, in sidebar layout, there is no pixel width – just percentages.
    How do I figure that out?
    My container is 1200px.

    #1467812
    Leo
    Staff
    Customer Support

    Like the width of your sidebar in px?

    If so this formula should work:
    1200px (container width) * 20% (sidebar width %) = 240px.

    #1467949
    Stevie

    cheers Leo.

    #1467951
    Leo
    Staff
    Customer Support

    No problem ๐Ÿ™‚

    #1467977
    Stevie

    Do I center the sidebar image by playing with the padding in mobile view?
    It is nicely centered in desktop view with the default padding, but to the left of sidebar container in mobile view.

    #1468099
    Leo
    Staff
    Customer Support

    Give this CSS a shot:

    @media (max-width: 768px) {
        .separate-containers .inside-right-sidebar {
            text-align: center;
        }
    }
    #1468154
    Stevie

    cheers Leo

    #1468290
    Leo
    Staff
    Customer Support

    No problem ๐Ÿ™‚

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