whats the point of using:
input.class {
/*style here*/
}
when you could just put:
.class {
/*style here*/
}
I havent noticed a difference in the functionality when trying both ways...... Thanks! here's an example, hope this helps.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
.aClass{
/*stuff here applies to both the div and the p*/
}
div.aClass{
/*stuff here only applies to the div*/
}
p.aClass{
/*stuff here only applies to the p*/
}
</style>
</head>
<body>
<div class="aClass">
Div Contents
</div>
<p class="aClass">
P Contents
</p>
</body>
</html>
input.class {
/*style here*/
}
when you could just put:
.class {
/*style here*/
}
I havent noticed a difference in the functionality when trying both ways...... Thanks! here's an example, hope this helps.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
.aClass{
/*stuff here applies to both the div and the p*/
}
div.aClass{
/*stuff here only applies to the div*/
}
p.aClass{
/*stuff here only applies to the p*/
}
</style>
</head>
<body>
<div class="aClass">
Div Contents
</div>
<p class="aClass">
P Contents
</p>
</body>
</html>