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

    Hi, i have a grey sidebar on my site with left padding.
    Everything is ok in desktop version, but in mobile devices left padding is missing and have a blank space to the left.

    Could you help me please?

    Thanks and have a nice day!

    #1018442

    Hey enfold,

    Please try the following in Quick CSS under Enfold->General Styling:

    @media only screen and (max-width: 767px) {
    .responsive #top #main .sidebar.smartphones_sidebar_active {
        padding-left: 20px;
    }
    }

    Best regards,
    Rikard

    #1018584

    Hi Rikard, thanks for your assistance.
    Unfortunately, blank space still appears on mobile devices.
    It is the blank space to the left of the sidebar background (linear gradient black and grey)

    #1018615

    Hi,

    Thanks for the feedback, though I’m not sure I understand what you want to remove anymore. Could you post screenshot highlighting the problem please?

    Best regards,
    Rikard

    #1018674

    Hi Rikard, screenshot via private.

    Regards
    Santiago

    #1018823

    Hi Santiago,

    Thanks for the screenshot. That space is the main container of all your content on the page. If that space is removed then all content on the page will be affected and will run to the sides of the screen. Let us know if you still want to remove it or not.

    Best regards,
    Rikard

    #1019066

    Thanks Rikard, I understand what you mean but is there a way to just move the sidebar div (linear gradient grey to white) to the left to cover full screen on mobile devices? Besides, form fields and button, missed the right padding…

    #1019103

    Hi,
    Try adding this to quick css:

    @media only screen and (max-width: 767px) {
    aside.sidebar{
    margin-left:-45px!important;
    }
    
    .inner_sidebar{
    margin-left:45px!important;
    }}

    Best regards,
    Jordan Shannon

    #1019530

    Hi Jordan, thanks!! Now div is covering full screen. But in the right side of the form, fields and button loose the right margin.
    I send link via private.

    Best Regards
    Santiago

    #1019937

    Hi Santiago,

    Here is the code you can put in Enfold > General Styling > Quick Css,  if it does not work, put into themes/enfold/css/custom.css

    
    @media only screen and (max-width: 479px) {
        #gform_widget-2 {
            padding-right: 5px;
            padding-left: 5px;
        }
    }
    

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #1019972

    Hi Victoria, everything goes perfect.
    Thanks for your assistance!!

    Have a nice day
    Santiago

    #1019980

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Sidebar margin on mobile’ is closed to new replies.