Good reference site: Position Is Everything

Get margin when no border

Problem: A div seems to have a margin when it doesn’t have a border. Giving it a 1px border and the margin disappears.

Last modified: 14/05/2010 Tags: , ,

This website is a personal resource. Nothing here is guaranteed correct or complete, so use at your own risk and try not to delete the Internet. -Stephan

Site Info

Privacy policy

Go to top