The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS vertical centering nested content in a div Reply To: vertical centering nested content in a div


I’m using that markup for a specific reason as part of a larger project. There is some js which refers to all child divs, they then inherit the styles forced by that js.

Thanks for your restructure, but it still has the same issue with vertically centering the featureText container with in the hight of the feature div regardless of the content within the featureText container.

Did you check the page with firebug? Toggling off and on the top:-50% property fixes it in browser, but doesn’t explain while its not taking it into account when the page is loaded. I’ve check through the styles and I can’t see any inherency issues.