What is padding-bottom: 9999px; margin-bottom: -9999px;

So I was checking this wordpress theme and noticed in the CSS this dirty little trick. What does this css actually do? I mean the purpose of it?

padding-bottom: 9999px; margin-bottom: -9999px;

padding bottom

I think its trying to do something smart with the bottom padding, not sure what Google would think about it. It turns out that it forces the sidebar to be the same height of the main content.

Sam Deering is a web developer from England (currently living in Australia). In his spare time he enjoys coding, playing chess, reading and investing.

Leave a Reply

Your email address will not be published. Required fields are marked *