Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] unable to put sidebar on correct position.

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #174498
    ravinder07
    Participant

    Please tell me what i am doing wrong. Why these sidebar not starting from first post(upper right corner)

    http://test07.net16.net/

    Visit that site you can see my index.html page and style.css page.

    I think you can easily spot by looking website that what i want to do.

    I tried creating thread and it return failed sorry if i created duplicate thread

    #174500
    Paulie_D
    Member

    Please make a Codepen.io example.

    #174509
    MDMueller
    Participant

    Your .mainContainer takes up the whole space (100%), the child-elements .topcontent and .bottomcontent take 70% of these 100%. So technically, there is no space for the sidebars.

    So you may either move the sidebars into the .mainContainer (30% space would be left), or you reduce the width of the .mainContainer:

    .mainContainer {
      float: left;
      width: 70%;
    }

    afterwards you might wanna increase the size of .topcontent and .bottomcontent again

    .topcontent, .bottomcontent {
      width: 100%;
    }
    #174510
    ravinder07
    Participant

    I never used codepen before so just singed up there…. Did you ask this link : http://codepen.io/anon/pen/vgfxG

    #174511
    ravinder07
    Participant

    already tried it make my main post small but sidebars still do not get up they still stay on along with second post.

    #174526
    jurotek
    Participant

    See PEN if you could use something like this. I added couple class selectors to hold your left and right content in.

    #174540
    ravinder07
    Participant

    Thank You work perfect :)

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘CSS’ is closed to new topics and replies.