Skip to content

Instantly share code, notes, and snippets.

@sofish
Created April 19, 2012 10:37
Show Gist options
  • Save sofish/2420167 to your computer and use it in GitHub Desktop.
Save sofish/2420167 to your computer and use it in GitHub Desktop.
padding works the same at ie6+/chrome etc.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>non quirks mode padding</title>
</head>
<body>
<div style="width:200px;height:90px;background:#f30;"></div>
<br />
<div style="width:200px;height:90px;background:#f30;padding:20px;"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment