Skip to content

Wildcard Boilerplate

edited June 13 in CSS
*{
	margin:0px;
	padding:0px;
	box-sizing:border-box;
	text-decoration:none;
	list-style-type:none;
}

Every time I start a new CSS template, I always include the above. For some strange reason, browsers act differently when it comes to margins and paddings -- setting it to 0px ensures starting fresh. Setting the box-sizing to border-box will allow any parent and child divisions to fit perfectly without bleeding. Finally, removing the old fashion decorations on text and list (especially navigations) underlines and bullets.

Sign In or Register to comment.