View Single Post
Nutrox's Avatar Nutrox Nutrox is offline Super Moderator 17 Creative Assets 2008-07-22 #3 Old  
By default, <div> elements don't have any padding or margin, so setting those values to zero won't make any different. However, is it a good idea to normalise a few other elements. This is what I normally do...

Code:
html
{
	border-left:none;
	border-right:none;
	cursor:default;
}

body, h1, h2, h3, h4, h5, h6, p, ol, ul, li, dl, dt, dd, pre, img, form, fieldset
{
	padding:0;
	margin:0;
	border:none;
}

h1, h2, h3, h4, h5, h6
{
	font-weight:normal;
}

ol, ul
{
	list-style:none;
}

img, object
{
	display:block;
}

table
{
	border-collapse:collapse;
}

th
{
	padding:0;
	font-weight:normal;
	text-align:left;
}

td
{
	padding:0;
	vertical-align:top;
}

hr
{
	display:none;
}

*:focus
{
	outline:none;
}
Reply With Quote