• Resolved rdny

    (@rdny)


    Hiya.

    I have a skyscrape-add from Adsense in my left sidebar. It’s 160×600. I’ve tried a code you posted and I’ve tried changing the numbers. But I can’t get it correct.

    .col-3cm .main-inner { background-position: -80px 0; padding-left: 260px; }
    .col-3cm .s1 { width: 260px; margin-left: -260px; }

    I want the sidebar to be as close at 160 as possible and I want the entire ad to show ??

    Can someone help me out?

    It’s located at https://www.latenightapple.se.

    Thanks in advance!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Not sure if this is what you are trying to achieve – but try this

    .col-3cm .main-inner {
    background-position: -80px 0;
    padding-left: 160px;
    }
    
    .sidebar.s1 {
    width: 160px;
    margin-left: -160px;
    }
    
    .sidebar.s1 .widget {
    padding: 0px;
    }
    Thread Starter rdny

    (@rdny)

    Yes. Thanks! That was exactly what I was looking for. But now when I see how it looks. It looks stupid ??

    What if I wanna have a padding of 5px around the banner? I’ve tried, but it looks weird ??

    do something like

    .col-3cm .main-inner {
    padding-left: 170px;
    }
    
    .sidebar.s1 {
    width: 170px;
    margin-left: -170px;
    }
    
    .sidebar.s1 .widget {
    padding: 5px;
    }
    Thread Starter rdny

    (@rdny)

    Perfect!

    I had to add background-position: -170px 0; otherwise I was getting some grey stuff in the white section.

    Thanks a lot for your help!

    You’re welcome

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Change width in left sidebar’ is closed to new replies.