I know there are various methods of vertical centering with CSS; the one I'm using is the relative position and negative margins method (i.e. shift the top margin back by half the height of the overall site container).
This works fine until you shrink down the size of the browser window, when the top of the site disappears (well obviously this is to be expected, if the [negative] margin is now greater than half the height of the window!) Just wondering how you get around this. Should I create a separate stylesheet with no vertical centering for smaller screen resolutions or is there some other 'hack'?
This works fine until you shrink down the size of the browser window, when the top of the site disappears (well obviously this is to be expected, if the [negative] margin is now greater than half the height of the window!) Just wondering how you get around this. Should I create a separate stylesheet with no vertical centering for smaller screen resolutions or is there some other 'hack'?