![]() |
Why the wrapper grow?
Code:
ode:Also why the wrapper expand and shows a scroll when I put height:120px; in comment2 div? Thanks Here is the live run http://anishgiri.net46.net/test.html I realize that when the page got longer of course it will show a scroll, and the wrapper does not really grow, the scroll just occupy space on the left that is why it looks like the wrapper grows. How silly I am. |
Hello Anishgiri,
To your first question about making that parent relative so it's contents can be positioned absolutely, you are doing that right. Have a look at a tutorial about positioning that might explain it further. As for #wrapper expanding in width or showing a scrollbar, I couldn't get either of those things to happen with the code you've posted here. I did copy/past your code into a new .html document with a DocType, maybe you are not using one? |
I have a doctype. I think the wrapper did not grow.When I put an image it increase the height so it's natural for a scroll to show, I am just silly I did not realize it.
|
| All times are GMT +1. The time now is 05:20 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.