First, an apology. I will be using the British spelling for "centre", because, well, I'm British. But it gets really confusing because you have to use the American spelling in the code. And doesn't "Centring" just look wrong? Part Five: Horizontal and Vertical Centring One of the most common things you want to do with blocks of content is to centre it. In particular, you would think that vertically centring content would be straightforward, but it turns out that in HTML/CSS it just isn't. 5.1 Horizontal Centring Centring a paragraph of text is clearly easy - all you need is text-align: center . However, sometimes you want to centre a block, something like a div, without having all the text centred as well. This is slightly trickier than you might expect, because the only CSS attributes you have are for centring text. <html> <head> <title>Horizontal Centering</title> <style type="text/css">