Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #622927

    Hi, I’ve tried to enter this code into my custom css, but the backgroundcolor keeps flooding into my main content.

    @media only screen and (min-width: 768px) {
    .container_wrap.sidebar_right{
    background:-webkit-gradient(linear,right top,left top,color-stop(#f1f1f1,0.295),color-stop(white,0));
    background:-webkit-linear-gradient(right, #f1f1f1 29.5%, white 0%);
    background: -moz-linear-gradient(right, #f1f1f1 29.5%, white 0%);
    background: -o-linear-gradient(right, #f1f1f1 29.5%, white 0%);
    background: linear-gradient(right, #f1f1f1 29.5%, white 0%);
    }
    }

    #622981

    Hi Wendy!

    I’m not sure if that code is expected to work in fluid layouts where the content/sidebar width varies depending of screen size.

    Best regards,
    Josue

    #622998

    Okay, is there any other solution? Should I fix the layout width?

    #623129

    Hey!

    What are you trying to achieve? the link you posted is returning a coming soon page.

    Regards,
    Josue

    #623146

    I’m sorry… Try this one.

    #623652

    Use this code instead:

    #top .container_wrap.sidebar_right .sidebar{
        background: gray;
    }
    #top .container_wrap.sidebar_right .sidebar .inner_sidebar  {
        padding-right: 50px;
    }
    
    #top .container_wrap.sidebar_right .container {
        padding: 0;
    }
    
    #top .container_wrap.sidebar_right  .entry-content-wrapper {
        padding-left: 50px;
    }
    #624858

    Hi Josue, thank you for your reply! :)

    The sidebar however doesn’t go all the way down to the footer. Check the link below. Is there another code for editing this problem? Thank you!

    #624917

    Use this code instead:

    #top .container_wrap.sidebar_right {
        background: #d6d6d6;   
    }
    #top .container_wrap.sidebar_right .sidebar{
        background: transparent;
    }
    #top .container_wrap.sidebar_right .sidebar .inner_sidebar  {
        padding-right: 50px;
    }
    
    #top .container_wrap.sidebar_right .container {
        padding: 0;
    }
    
    #top .container_wrap.sidebar_right  .entry-content-wrapper {
        padding-left: 50px;
        
    }
    #top .container_wrap.sidebar_right .content{
        background: white;
    }
    #624940

    I’m sorry to bother you again… Now the background color seems to flow into my main content again… :(

    • This reply was modified 8 years, 8 months ago by Wendy.
    #624969

    Hi,

    Change the #top .container_wrap.sidebar_right .content part to:

    #top .container_wrap.sidebar_right .content{
    background: white;
    min-height: 750px;
    }

    Best regards,
    Josue

    #624978

    Thanks, this one works PERFECT! :))

    #625000

    You are welcome, glad to help :)

    Regards,
    Josue

    #625312

    Hi Joshue, I’m sorry to bother you again. The website is fully up and running, but I discovered that the responsive version of the website on the iPhone is having some trouble with the padding of the sidebar. Could you please check? Thank you.

    #625318

    Hi,

    No bother at all, just change the whole code to this:

    @media only screen and (min-width: 767px) {
    	#top .container_wrap.sidebar_right {
    		background: #d6d6d6;   
    	}
    	#top .container_wrap.sidebar_right .sidebar{
    		background: transparent;
    	}
    	#top .container_wrap.sidebar_right .sidebar .inner_sidebar  {
    		padding-right: 50px;
    	}
    
    	#top .container_wrap.sidebar_right .container {
    		padding: 0;
    	}
    
    	#top .container_wrap.sidebar_right  .entry-content-wrapper {
    		padding-left: 50px;
    
    	}
    	#top .container_wrap.sidebar_right .content{
    		background: white;
    		min-height: 600px;
    	}
    }
    

    As you’re hiding the sidebar on mobile we can set these changes to apply only on desktop.

    #625324

    Ha! That’s it! Thanks! :D

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