I'm not sure what magic is. Here are some articles that I've written on the subject. Note: these articles were written several years ago, and don't necessarily represent my current outlook on things.
My latest project.
A years-old project that I may actually finish one of these decades.
The cross in the circle
On this page Transitional HTML 4.01 and CSS 1 are used. If you're seeing this text you either have CSS switched off in your browser, or you're using a browser that can't handle CSS. If you're using an older browser version, you might want to consider upgrading.