Wordpress theme sidebar not aligning properly.Rep to person point out problem.

Status
Not open for further replies.

Dura_Killer

Banned
Sep 13, 2008
32
0
0
I am trying to code a new wordpress theme from scratch but the sidebar is not aligning properly.

below is screenshot of this theme and problem.

1087akm.jpg


Below are index file and style sheet source.
 

Attachments



I don't know what your code looks like, the attached files say nothing. The CSS only has attributes for the body.

If you want to have the sidebar next to the content area, then you have to set a width on the main content area and float it to the left. Then float the sidebar to the left too.

So let's say you have this structure:
Code:
<div id="container">
   <div class="post"></div>
   <div class="post"></div>
</div>

<div id="sidebar">
</div>
Then your CSS should be something like this:

Code:
#container { width:600px; float:left; }
#sidebar { width:200px; float:left; }
If this doesn't work, send me your source files via PM, I'll take a look.

Hope this helps.
 
Status
Not open for further replies.