Le Geek

Here’s a tip for all you frustrated pixel pushers who really really want to love CSS but can’t seem to get things where you want them: using margin, margin-left, margin-right, margin-top, margin-bottom is just as good as top, left, right and bottom. In some cases, it’s better. Why? Because IE for Windows 5 and 6, IE for Mac 5.x, Mozilla (and therefore Netscape 6.x and 7) all seem to support margin attributes equally. So, if you want something positioned 10 to the left and 10 down, don’t use top:10px; left:10px. Use margin:0px; margin-left:10px;margin-top:10px; Trust me, it works. When the new lawver.net launches in a couple weeks (that my new deadline for the big launch – 8/1), you’ll see. I’ve finally figured out how to get a groovy menu on the right without killing myself, and margins did it. Yessiree bob, I love me some margins. I love me some padding too, but that’s a whole different story.

Published
Categorized as computing

By Kevin Lawver

Web developer, Software Engineer @ Gusto, Co-founder @ TechSAV, husband, father, aspiring social capitalist and troublemaker.