Return to Snippet

Revision: 7404
at July 22, 2008 11:32 by marcusrosentrater


Updated Code
/* selector for element and children */
#parent-element,#parent-element *,#parent-element a:hover,#parent-element a:visited,#parent-element a:active{
	background:none;
	border:none;
	bottom:auto;
	clear:none;
	cursor:default;
	/* didn't really know what the default for display should be*/
	/*display:inline;*/
	float:none;
	font-family:Arial, Helvetica, sans-serif;
	font-size:medium;
	font-style:normal;
	font-weight:normal;
	height:auto;
	left:auto;
	letter-spacing:normal;
	line-height:normal;
	max-height:none;
	max-width:none;
	min-height:0;
	min-width:0;
	overflow:visible;
	position:static;
	right:auto;
	text-align:left;
	text-decoration:none;
	text-indent:0;
	text-transform:none;
	top:auto;
	visibility:visible;
	white-space:normal;
	width:auto;
	z-index:auto;
}

Revision: 7403
at July 22, 2008 11:32 by marcusrosentrater


Initial Code
/* selector for element and children
#parent-element,#parent-element *,#parent-element a:hover,#parent-element a:visited,#parent-element a:active{
	background:none;
	border:none;
	bottom:auto;
	clear:none;
	cursor:default;
	/* didn't really know what the default for display should be*/
	/*display:inline;*/
	float:none;
	font-family:Arial, Helvetica, sans-serif;
	font-size:medium;
	font-style:normal;
	font-weight:normal;
	height:auto;
	left:auto;
	letter-spacing:normal;
	line-height:normal;
	max-height:none;
	max-width:none;
	min-height:0;
	min-width:0;
	overflow:visible;
	position:static;
	right:auto;
	text-align:left;
	text-decoration:none;
	text-indent:0;
	text-transform:none;
	top:auto;
	visibility:visible;
	white-space:normal;
	width:auto;
	z-index:auto;
}

Initial URL
http://www.w3schools.com/css/css_reference.asp

Initial Description
This will reset your style properties to the default values, specific to an element and its children.
Here are the all the properties that need to be set to default that also don't break modern browsers.... or less then modern, like IE 4/5.

Initial Title
Element specific CSS reset

Initial Tags
css

Initial Language
CSS