Styling the “ element in CSS?

Quite often you’ll find people styling the HTML element since it does have an affect on the way the page is rendered.

The most notable style you’re likely to see is

html,body{
   min-height:101%;
}

This is used to ensure that the scroll bars in browsers like Firefox, always show on the page. This stops the page shifting left and right when changing between long and short pages.

Leave a Comment