entries overlapping

Jul 26, 2015 18:21

So here is what I want. Header full width and entries + sidebar in the middle but not full width. So far I got this: http://recycle.livejournal.com/ but on a smaller screen resolution it seems the entrie subject bg hovers under the sidebar. And when the sidebar ends the entries are under it. How do ( Read more... )

sidebar, entries

Leave a comment

fueschgast July 26 2015, 20:08:09 UTC
Do you want only the maincontent centered or maincontent and sidebar together?

Reply

unreal July 26 2015, 21:15:38 UTC
I would like both to be centered. The maincontent is not the problem but the sidebar it seems.

Reply

fueschgast July 26 2015, 22:43:02 UTC
Add position: relative; and left: 50%; to the sidebar and make it's left margin -430px. Make maincontent's left margin 142px;

Reply

unreal July 27 2015, 21:16:34 UTC
Thanks for the help but I still rather want the sidebar on the left and not the right.
Another question. When I make my window smaller my first entry also get's smaller: http://i.imgur.com/cOZPz0x.png
How do I stop that from happening.

Reply

fueschgast July 27 2015, 21:32:24 UTC
o_ô But that code does keep the sidebar left. Just make the maincontent's left margin 142px and give the sidebar's left margin a minus. It seems to also make that entry-width problem go away.

Reply

unreal July 27 2015, 21:42:45 UTC
When I add everything you told me the sidebar goes to the right. This is my code now.
#content {
width: 100%;
margin-left: auto;
margin-right: auto;
margin-bottom: 0px;
background: #;
padding: 0px;
}

#maincontent {
margin-left: 142px;
margin-right: auto;
margin-top: 10px;
background: ;
}

/* sidebar */

#sidebar {
position: relative;
left: 50%;
width: 235px;
margin-left: 430px;
padding-top: 0px;
padding-left: 10px;
padding-right: 10px;
background: #;
color: #666666;
font-family: verdana;
font-size: 8pt;
line-height: 12pt;
text-align: justify;
float: left;
display:;
}

Reply

fueschgast July 27 2015, 21:46:12 UTC
The sidebar's left margin needs to be -430px, not 430px.

Reply

unreal July 27 2015, 21:55:37 UTC
Woops sorry thank you :D

Reply


Leave a comment

Up