• Resolved withsugarontop2

    (@withsugarontop2)


    Hey all,
    I have been building my site using my CSS only, with the sandbox 1.6.2 theme. I have encountered a problem that is limited by my CSS knowledge to overcome. I have set it up such that the wrapper is 100% of the screen because I wanted my header and access to span the whole screen. The content area, I only want 900 px wide, with 200 px of that being devoted to the sidebar.

    Unfortunately, I don’t see how I can do that, because it seems that the ‘primary’ and ‘sencondary’ sidebars of sandbox are contained only by the wrapper and body. In the HTML, they follow all of the content. I.e. they aren’t part of the ‘container’ so if I float them, they line up to the edge of the ‘wrapper’ not the ‘container.’

    Any idea how I can accomplish want I am trying to do?
    I want the 200 px wide sidebar to overlap the 900 px content window, and I will use a 200px margin in the content (or container) window, to make sure that the text flows around the sidebars. Also, if I do accomplish putting the sidebar on the side, how do I get the secondary one to follow it?

    Here is the site:
    http://withsugarontop.biz

    Here is my css so far:

    body {
    margin:0;
    padding:0;
    }

    #wrapper {
    background-image:url(‘http://withsugarontop2.files.wordpress.com/2011/02/wrappersplash3.png’);
    background-repeat:no-repeat;
    background-position:center top;
    background-color:rgb(226,105,159);
    margin:0;
    padding:0;
    }

    #header {
    width:100%;
    height:210px;
    background-color:rgb(59,28,18);
    background-image:url(‘http://withsugarontop2.files.wordpress.com/2011/02/headerbackground1.png’);
    background-position:center;
    margin:0;
    padding:0;
    }

    div#header h1 {
    margin:0;
    padding:0;
    }

    div#blog-description {
    display:none;
    margin:0;
    padding:0;
    }

    div#header span {
    margin:0;
    padding:0;
    }

    div#header a {
    display:block;
    width:800px;
    height:210px;
    background-color:rgb(59,28,18);
    background-image:url(‘http://withsugarontop2.files.wordpress.com/2011/02/withsugartitle1.png’);
    background-position:center;
    background-repeat:none;
    text-indent:-1999px;
    overflow:hidden;
    margin:0 auto;
    padding:0;
    }

    .skip-link {
    position:absolute!important;
    clip:rect(1px,1px,1px,1px);
    }

    div#menu {
    margin:0;
    padding:0;
    }

    div#access {
    width:100%;
    height:40px;
    background-color:rgb(59,28,18);
    margin:0;
    padding:0;
    }

    #access ul {
    text-align:center;
    list-style-type:none;
    line-height:40px;
    margin:0;
    padding:0;
    }

    #access ul li {
    display:inline;
    line-height:40px;
    margin:0 0 0 5em;
    padding:0;
    }

    #access ul li:first-child {
    margin:0;
    }

    #access ul a {
    text-decoration:none;
    line-height:40px;
    font-size:24px;
    font-family:garamond serif;
    color:rgb(238,169,202);
    margin:0;
    padding:0;
    }

    #access ul a:hover {
    background-image:url(‘http://withsugarontop2.files.wordpress.com/2011/02/highlight1.png’);
    background-position:center;
    background-repeat:no-repeat;
    color:white;
    }

    #container {
    background-color:green;
    width:900px;
    margin:0 auto;
    padding:1em 0 0;
    }

    THANKS SO MUCH

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter withsugarontop2

    (@withsugarontop2)

    P.S.
    I was thinking of absolutely positioning the sidebar, and figured out how to make the top line up, but I couldn’t figure out how to make the sidebar stay on the right edge of the content window when it is resized, since it is centered.

    Thread Starter withsugarontop2

    (@withsugarontop2)

    tried something else,and it still isn’t working for me. I tried making the wrapper only 900px wide,but I couldn’t figure out how to make the header span the whole window then,since it is contained within the wrapper.

    please save me from my css worthlessness

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using Sandbox, how to position sidebar’ is closed to new replies.