ASP.NET & IE8 - Div Container/Gridview CSS Problem?

Hi All -

I have a simple page with a few div containers that contain gridviews. In IE6 these render just fine, with the div container expanding as the gridview size increases (additional rows). However, in IE8 these containers do not increase in size with the gridview, and the gridview just grows straight down outside of the box. Any ideas?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Carl TawnSystems and Integration DeveloperCommented:
Try adding an overflow:auto; style to the DIV.
hi! you may try to add style of your div.

<div style="display:table-cell;"> </div>

you may try other display properties;
SQLBI1Author Commented:
Hi - thanks for the replies. overflow: auto did get me closer but not quite there. Now, the div remains a fixed size and shows scroll bars, but I need the whole div to expand with the gridview. Code below:

    margin-top: 0px;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 15px;
    width: 800px;
    padding: 20px 20px 20px 20px;
    background-color: #FFF;
    color: #000;
    border-top: solid 2px #1F417E;
    border-left: solid 1px #1F417E;
    border-right: solid 1px #1F417E;
    border-bottom: solid 5px #1F417E;
    border-color: #1F417E;
    overflow: auto;

Carl TawnSystems and Integration DeveloperCommented:
Can you post the DIV in context? It may be that you have an inherited style that is causing the behaviour.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SQLBI1Author Commented:
Carl, you were right - looks like I simply had a parent tab panel passing a fixed height. For some reason the property was always ignored by IE6 and I never noticed until the upgrade to IE 8 (hey, IE 8 actually works correctly with at least that property!). Thanks all for the comments.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.