The sidebar keeps going inside of the content div or outside of the footer. I've been having trouble with this for months and can't figure it out
This is the homepage:
Take the sidebar div out of the content div but leave it inside the wrapper div that is it's parent....and Robert is your father's brother.
<div class="wrapper">
<div id="content">
</div> <!-- end content div -->
<div id="sidebar">
</div> <!-- end sidebar div -->
</div> <!-- end wrapper div -->
Not wrapper div...content div...see the updated comment.
<div class="wrapper">
<div id="content">
</div> <!-- end content div -->
<div id="sidebar">
</div> <!-- end sidebar div -->
</div> <!-- end wrapper div -->
The recipe page is the same as every other page. And it is identical to the single page. This is a very simple design. If you can't figure out what is wrong with those pages stop commenting. I know what the problem is. I want to know why it is that way.
I can't say any more....however the HTML is being created (presumably by PHP) then it's chucking out two versions....why I don't know...but the structure of the pages IS different.
If you have no experience with php dynamically generated pages or wordpress there is no point in trying to figure those out. You have merely stated the obvious.
The sidebar keeps going inside of the content div or outside of the footer. I've been having trouble with this for months and can't figure it out This is the homepage:
You can view the web site here: http://theavocadogirl.com/
I don't exactly understand your problem. And i'm not sure if this is intentional but the pen is lacking CSS. Can you rephrase your question?
Take the sidebar div out of the content div but leave it inside the wrapper div that is it's parent....and Robert is your father's brother.
Simples.
This is the single page:
Why would I take the sidebar div outside of the wrapper div?
I got the index page using what you said Paulie. But it destroys the single page.
Sorry...I was editing my comment.
Not wrapper div...content div...see the updated comment.
I know what it should look like. But it isn't working when i make it that way.
Oddly enough, your original comment fixed the home page.
Using Chrome developer tools I dragged the sidebar div out of the content div and put it at the bottom (not underneath) of the wrapper.
Bingo.
If you look at the code you can clearly see that the sidebar is not inside of the content div.
Can you send me the code for what you did that apparently works?
It was...but not now.
Anyway...it's working so YVW.
No, the single page is not working. http://theavocadogirl.com/2013/02/mock-refried-beans/
Well it is on the home page you linked where it wasn't before...I didn't look any further.
I'm guessing that has a different template.
You seem to have a mixture.
The template is identical. I posted the code up above if you care to look at it and help.
If that were the case the each page would have the same HTML structure...and it doesn't.
The homepage is clearly different from the recipes pages.
On the recipes page the sidebar is inside the content div
On the home page the sidebar is inside the parent wrapper but NOT the content div
The recipe page is the same as every other page. And it is identical to the single page. This is a very simple design. If you can't figure out what is wrong with those pages stop commenting. I know what the problem is. I want to know why it is that way.
I can't say any more....however the HTML is being created (presumably by PHP) then it's chucking out two versions....why I don't know...but the structure of the pages IS different.
You only have to look at them to see that.
If you have no experience with php dynamically generated pages or wordpress there is no point in trying to figure those out. You have merely stated the obvious.
I gave you the resolution to the original issue (sidebar positioning).
However, since you have decided to start another thread about the actual issue I'll leave this one and mark it Closed.