Tagged: 

Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #975394

    Hi, I would like a very light grey background over the entire sidebar, all the way to the right and the bottom. I’ve tried a lot of solutions from other threads, but none satisfactory. One overflowed the left, one shrank the form content, one added a scrolling mechanism if the page was shorter than the sidebar…

    Code I have in right now is .sidebar{background:#f9f9f9;}

    Please help me get that all the way to the right and bottom!

    Thank you

    #975549

    Hey andrea,

    Please add the following code

    @media only screen and (min-width:767px) {
    #main .container_wrap_first > .container {
    padding-right:0!important;
    }
    .sidebar {
    	position: absolute;    
        top:0;
        left:0;
        padding-left:30px!important;
        bottom:0;
        max-width:calc(25% - 50px);
        background:#f9f9f9;
    }}

    and let us know if that does solve the issues.

    Best regards,
    Basilis

    #975746

    Thank you, but unfortunately that didn’t work, it pushed the sidebar to the left instead of right, leaving a blank sidebar on the right hand side. Link to screenshot in private area.

    #976137

    Hi,

    Thanks for the update.

    This css code should do the trick.

    @media only screen and (min-width: 768px) {
    .container_wrap.sidebar_right:before {
        content: '';
        display: block;
        position: absolute;
        right: 25px;
        top: 0;
        background: #f9f9f9;
        height: 100%;
        width: calc(24%);
    }
    }

    Don’t forget to remove the browser cache prior to checking the page.

    Best regards,
    Ismael

    #976203

    Thanks Ismael, nearly there, but still a bit of a gap down the right hand side. I’ve tried tweaking it, but not managed to fix…

    #976243

    Hi ac,

    Can you try adding this code:

    @media only screen and (min-width: 768px) {
      .responsive .sidebar_right .container {
        display: flex;
      }
    
      .responsive .sidebar_right .container .sidebar {
        width: 24% !important;
      }
    }

    Best regards,
    Nikko

    #976314

    Sorry, I’ve got a bigger gap to the right now, I’m afraid that has not worked.

    #976857

    Hi ac,

    The sidebar width set to 24% should have prevented it from expanding.
    Can you give us admin access? so we can try to adjust the code.

    Best regards,
    Nikko

    #976872

    Thanks Nikko, credentials in private area below.

    #977198

    Hi,

    You are done :-)
    Make sure you clear cache!

    Best regards,
    Basilis

    #983631

    Hi, sorry for the delay in reply. I’m afraid I’m still not seeing the grey go all the way to the edge on the right hand side. It stops in line with the contact form but I want it all the way across as a background for the entire column.

    I’ve cleared cache and checked both chrome and firefox.

    #984012

    Hi,

    Please try this CSS to see if you have any luck with it:

    .sidebar_right .container {
        padding-right: 0 !important;
        margin-right: 0 !important;
    }
    
    .sidebar_right .sidebar {
        padding-right: 60px;
    }
    

    Best regards,
    Rikard

    #984221

    Fabulous – it works!!! Thank you.

    Full code for this is now as below – also copying for other users’ reference. Is there any of this I can delete as it’s quite long, not sure what all the various bits do now (but at last it works!!)

    .sidebar{background:#f9f9f9;}

    @media only screen and (min-width: 768px) {
    .responsive .sidebar_right .container {
    display: flex;
    }

    .responsive .sidebar_right .container .sidebar {
    width: 24% !important;
    }
    }

    .sidebar_right .container {
    padding-right: 0 !important;
    margin-right: 0 !important;
    }

    .sidebar_right .sidebar {
    padding-right: 50px;
    }

    #984241

    Hi ac,

    Glad that Rikard helped you :)
    Let us know if you need further assistance or if we can close this thread.

    Best regards,
    Nikko

    #984296

    Feel free to close the thread, thanks.

    #984520

    Hi,

    Great, glad we could help and thanks for sharing your solution. I’ll close this for now then, please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 16 posts - 1 through 16 (of 16 total)
  • The topic ‘Sidebar background colour’ is closed to new replies.