div inheritance
Posted: Sat Sep 24, 2005 4:54 am
Code: Select all
<style type="text/css">
body {
font-family: verdana, tahoma, arial;
color: #000000;
font-size: 9pt;
}
body A:link {
font-size: 7pt;
font-family: verdana, tahoma, arial;
color: #000000;
font-weight: bold;
text-decoration: none;
}
body A:visited {
font-size: 7pt;
font-family: verdana, tahoma, arial;
color: #000000;
font-weight: bold;
text-decoration: none;
}
body A:active {
font-size: 7pt;
font-family: verdana, tahoma, arial;
color: #000000;
font-weight: bold;
text-decoration: none;
}
body A:hover {
font-size: 7pt;
font-family: verdana, tahoma, arial;
color: green;
font-weight: bold;
text-decoration: none;
}
.box
{
border: solid 2px #000000;
background: #FFFFFF;
padding: 2px;
}
.form {
border: solid 1px #000000;
cursor: default;
}
.nav {
font-family: verdana, tahoma, arial;
font-size: 9pt;
color: #000000;
}
</style>The link text will inherit the body's link style, but the regular text will not be the body's text style. Am I doing something wrong?
I would like for a <div class="box"></div> to inherit BOTH the regular text style, and the link text style