• Hi i was wondering how can i separate my main sidebar from the body and move it to the right a bit more.I want to be a gap between the main sidebar and the body in order for the background image to appear in this gap thx ?? i use the twenty eleven theme

Viewing 10 replies - 1 through 10 (of 10 total)
  • Can you post a link to your website?

    Thread Starter boomheadshot

    (@boomheadshot)

    https://www.lolprothoughts.net is my site and i want to do the main sidebar look like this site’s https://www.surrenderat20.net

    The sample you’re showing has less of a gap between the body main and sidebar area than what you have now.

    What, specifically are you trying to change?

    Thread Starter boomheadshot

    (@boomheadshot)

    i want the body where I post all the news to be separated from the main sidebar

    Get a custom CSS plugin and try:

    #content {
    width: 50%;
    }

    That will make the main content area a bit smaller without throwing off the placement of the sidebar. Experiment with other values until you get the look you’d like.

    Thread Starter boomheadshot

    (@boomheadshot)

    yes it worked on making my content smaller but you still don’t understand what i want,i want my main sidebar to be cut from the content so there is a space between the sidebar and the content letting the background appear a little in this space

    Ah, I understand now. This gets a bit complex.

    #page {
    background: transparent !important;
    }
    
    #primary {
    float: none;
    }
    
    #content {
    width: 54%;
    margin-left: 4%;
    margin-right: 2%;
    margin-bottom: 10px;
    float: left;
    background: black;
    }
    
    #secondary {
    float: left;
    margin-right: 7.6%;
    width: 30%;
    background: black;
    padding: 0 10px;
    }
    
    #supplementary {
    border-color: transparent;
    background: black;
    }

    Basically, this code “fakes” it by making the entire page transparent so you can see the background image through it, and then sets the background on the content area, sidebar, and the footer to black so you can still see the text. You can play around with the width and margin settings, but be aware that you might push the sidebar down to the next line by mistake.

    Thread Starter boomheadshot

    (@boomheadshot)

    thank you i will try to experiment it in localhost although i don’t know much staff about coding :/

    Thread Starter boomheadshot

    (@boomheadshot)

    THANK YOU IT WORKED and how can i do the same between each post i make?

    Thread Starter boomheadshot

    (@boomheadshot)

    This is my website https://www.lolprothoughts.net/

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Main sidebar separation’ is closed to new replies.