Forum Moderators: not2easy
input[type=text]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="language" content="english">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>untitled document</title>
<style type="text/css">
#mainContent input[type=text] {
width:300px;
border:2px inset #f00;
}
.submitInput {
font-weight:bold;
}
</style>
</head>
<body>
<form action="#">
<div id="mainContent">
<input type="text">
<input class="submitInput" type="submit">
</div>
</form>
</body>
</html>
What I want to know is, rather than directly putting the styling into the element to override inheritance, is there a directive for the class to 'ignore' the normal parent/child inheritance?Not so much a directive to "ignore" the parent/child selector, but increase the specificity of the selector to "over-ride" the parent/child rule.