boogily
10-26-2011, 04:26 AM
I am trying to create a truly liquid / scalable page.
I have a site that has a few elements in it all based on percentage. In either 1920px or 1024px, they display exactly as they should. I also have a large header tag <h1> at the top. I set it to 4em, since that is the "elastic" way to do it. But the font was the same size (pixelwise) in the small and large browser -- losing its scalability. So I addedhtml{ font-size:100%; }
body {font-size:1em;} and that did nothing. I played around some more, and couldn't figure it out.
I am just looking for a way to display the font so that it scales with the browser, along with the rest of the elements. Example, it would technically show as 30px in a 1024px wide setting and show as a larger (40px?) when the browser size is larger.
Is this doable with font?
I have a site that has a few elements in it all based on percentage. In either 1920px or 1024px, they display exactly as they should. I also have a large header tag <h1> at the top. I set it to 4em, since that is the "elastic" way to do it. But the font was the same size (pixelwise) in the small and large browser -- losing its scalability. So I addedhtml{ font-size:100%; }
body {font-size:1em;} and that did nothing. I played around some more, and couldn't figure it out.
I am just looking for a way to display the font so that it scales with the browser, along with the rest of the elements. Example, it would technically show as 30px in a 1024px wide setting and show as a larger (40px?) when the browser size is larger.
Is this doable with font?