Have an instance where I need to centre an html page on the screen, i.e. both horizontally and vertically. I have achieved this with the below container div. I know that my content is always 650px by 490px. #containerRTA is in my stylesheet and I apply it to a <div> that encapsulates everything in the <body> of my html page. Now with my content centred I want the whole html page to have a yellow background. I do not know how to achieve this. All I manage to do is set the actual background of just the content to yellow, not the margins. So my centred content is centred and the rest of the page is white.
Can anyone show me how to achieve this?