I'm looking to center divs on the x and y axis. I've followed the advice here (http://www.pmob.co.uk/pob/hoz-vert-center.htm) but the problem is there is a difference in layout between the example and what I require.
I need to center this:
unlike the the link which centers everything, I want to center the #main and the image in #left on the left and the text in #right to appear on the right. I've messed around with floats but that didn't help.
I need to center this:
Code:
<body> <div id="main"> <div id="left"><img src="logo.gif" /> </div> <div id="right"><p>text</p> </div> </div> </body>
Comment