Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1141073

    Hi,

    I have added some css (suggested on this forum) to create a sidebar background colour.

    .sidebar {
    background:#e8e8e8;
    }
    
    @media only screen and (min-width: 768px) {
    .responsive .sidebar_right .container {
    display: flex;
    }
    
    .responsive .sidebar_right .container .sidebar {
    width: 20% !important;
    }
    }
    
    .sidebar_right .container {
    padding-right: 0 !important;
    margin-right: 0 !important;
    }
    
    .sidebar_right .sidebar {
    padding-right: 50px;
    }

    This works well except it creates the effect of a large left margin, so that when viewed on larger screens the main content is pushed right and no longer aligns with the header. Can you help please? It would be great if you could reply soonish as we are hoping to launch the site in the next few days.

    Thank you

    • This topic was modified 5 years, 3 months ago by Fionadee.
    #1141796

    Hey Fionadee,

    I see an empty page on the website.

    Could you please attach a mockup of what you’re trying to achieve? And where can we see the code in action?

    Best regards,
    Victoria

    #1143364

    Hi Victoria,

    Apologies for the delay in replying. Not sure why you couldn’t see the page, it’s definitely there. We found a workaround by centering the layout.
    I now have another question which I will post separately.

    Many thanks

    #1143635

    Hi,

    Thanks for the update, should we close this thread for now then?

    Best regards,
    Rikard

    #1143644

    Yes, fine to close this topic now.
    Thank you

    #1143721

    Hi Fionadee,

    Glad you got it working for you! :)

    If you need further assistance please let us know in another thread as we are closing this thread.

    Best regards,
    Victoria

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Sidebar background css and huge margin’ is closed to new replies.