- This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Please tell me what i am doing wrong. Why these sidebar not starting from first post(upper right corner)
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
Please make a Codepen.io example.
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%;
}
I never used codepen before so just singed up there…. Did you ask this link : http://codepen.io/anon/pen/vgfxG
already tried it make my main post small but sidebars still do not get up they still stay on along with second post.
See PEN if you could use something like this. I added couple class selectors to hold your left and right content in.
Thank You work perfect :)