Try making it static instead and using margin-left instead of left:
Then move the "content" div to after the left and right sidebars:Code:.container .content { width: 640px; position: static; margin-left: 170px; background-color: #6633CC; }
See: http://g-prime.net/misc/2teachreading.htmlCode:<div class="contentwrapper"> <div class="rightnavbar"> <ul><li><a href="http://www.google.ca">Glycemic Index </a></li> <li><a href="http://www.google.ca">Google</a></li> </ul> </div> <div class="leftsidebar"> <img src="images/160x600.gif" /> </div> <div class="content"> <h4>Helloafdafasf</h4> [...] <p> </p> <p> </p> </div> </div>
-
Apr 12th, 2009 06:06 PM #1Newbie
- Join Date
- Feb 1st, 2009
- Location
- Vancouver
- Posts
- 11
Relative Positioned Container Div Not Expanding to Absolutely Position
Hi,
I've positioned my container div relative. In the container, I then positioned my center content div absolute.
The problem: The container div is not expanding with the content div. You can see this because the content div is overlapping my footer which is clear: both.
You can check out my website: www.2teachreading.comyr.com
Thanks
Reply With Quote
LOG IN TO THANK
No one has yet thanked g123s for this post.
-
Sponsored Links - Join the RedFlagDeals.com community and remove this ad.
-
Apr 12th, 2009 06:22 PM #2_______________A W E S O M E N E S S
When I get sad, I stop being sad and be awesome instead. True story.
Reply With Quote
LOG IN TO THANK
No one has yet thanked mrG for this post.
-
Apr 12th, 2009 06:45 PM #3Newbie
[OP]
- Join Date
- Feb 1st, 2009
- Location
- Vancouver
- Posts
- 11
Thanks for your efforts, but I have one more question. Why doesn't absolute positioning work? If I used the z-index would it work? Why is there space between the columns and header?
Also, I don't really want to change the order of the code, because, Google, always says that you should have your content at the top of the source code. I just want the content div to be under the header in the source code.
Oh yeah, mrG, are you a PHP developer? I need to hire one for my website, dinehere.caLast edited by g123s; Apr 12th, 2009 at 07:03 PM.
Reply With Quote
LOG IN TO THANK
No one has yet thanked g123s for this post.
-
Apr 12th, 2009 06:58 PM #4Newbie
[OP]
- Join Date
- Feb 1st, 2009
- Location
- Vancouver
- Posts
- 11
I'm not that good with CSS.
Reply With Quote
LOG IN TO THANK
No one has yet thanked g123s for this post.
Search Forums
