mtran
11-23-2005, 09:51 PM
I'm new to CSS, this is my first css for my site [about 20 pages].
I'm not sure but have a feeling that there're extra things in there. Could anybody help me to clean it up or show me a better way so that I can learn more. Thanks.
By the way, in the section of dropdown, which is borrowed from DD Anylink menu, why there's "z-index: 100;" why 100? can it be other numbers?
thanks.
------------------
body {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 11px; background-color: #FFFFFF; color: #333333; margin-top: 10px;}
a:link {
color: #566390;
text-decoration: none; }
a:active {
color: #566390;
text-decoration: none; }
a:visited {
color: #566390;
text-decoration: none; }
a:hover {
color: #F48E1F;
text-decoration: underline; }
#menu a { /*menu_horizontal*/
display: block;
line-height: 20px;
width: 151px;
color:#FFFFFF;
border-style: solid;
border-right-width: 0.5px;
border-left-width: 0px;
border-top-width: 0px;
border-bottom-width: 0px;
border-color: #FFFFFF;
background-color: #566390;
text-decoration: none;
text-align: center;
font-weight: bold;}
#menu a:hover {
background-color: #6898C8;}
#submenu a { /*menu_vertical*/
display: block;
line-height: 20px;
width: 151px;
color:#FFFFFF;
border-bottom-width: 1px;
border-color: #FFFFFF;
border-style: solid;
background-color: #566390;
text-decoration: none;
text-align: left;
text-indent: 3px;
font-weight: bold;
border-left-width: 0px;
border-right-width: 0px;
border-top-width: 0px;}
#submenu a:hover {
background-color: #6898C8;}
#dropmenudiv{ /*dropdown*/
margin-top: 5px;
position:absolute;
border-right-width: 1px;
border-top-width: 0px;
border-left-width: 0px;
border-bottom-width: 0px;
border-color: #666699;
font-weight: bold 11px Verdana;
color: #FFFFFF;
line-height: 20px;
z-index: 100;}
#dropmenudiv a{
width: 100%;
display: block;
text-indent: 3px;
border-bottom: 1px solid white;
padding: 1px 0;
text-decoration: none;
color: #FFFFFF;
font-weight: bold;}
#dropmenudiv a:hover{ /*dropdown_hover*/
background-color: #6898C8;}
th, td, tr {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #333333;}
.td { /*regular text_margin 10px*/
text-align: left;
font-weight: normal;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #333333;
margin-left: 10px;}
.td2 { /*headline_bold orange_margin 10px*/
font-weight: bold;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #F48E1F;
margin-left: 10px;}
.td3 { /*headline_bold blue_margin 10px*/
text-align: left;
font-weight: bold;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #566390;
margin-left: 10px; }
p.solid {
border-style: solid;
border-color: #CCCCCC;
border-width: 1px;
width: 230px;
line-height: 15px;
padding: 5px;}
p.question {
font-weight: bold;
border-style: solid;
border-color: #6898C8;
border-width: 1px;
width: 435 px;
line-height: 15px;
padding: 5px;}
td.bottomline {
border-bottom-width: 1px;
border-style: solid;
border-color: white;
border-left-width: 0px;
border-right-width: 0px;
border-top-width: 0px;
}
.nav {
display: block;
background-color: #E9EDF1;
text-indent: 10px;
padding: 1px 0;
text-decoration: none;
color: #F48E1F;
font-weight: bold;}
.btn{
background-color: #E9EDF1;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 11px;
padding: 2px;}
li {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #333333;
line-height: 20px;
}
I'm not sure but have a feeling that there're extra things in there. Could anybody help me to clean it up or show me a better way so that I can learn more. Thanks.
By the way, in the section of dropdown, which is borrowed from DD Anylink menu, why there's "z-index: 100;" why 100? can it be other numbers?
thanks.
------------------
body {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 11px; background-color: #FFFFFF; color: #333333; margin-top: 10px;}
a:link {
color: #566390;
text-decoration: none; }
a:active {
color: #566390;
text-decoration: none; }
a:visited {
color: #566390;
text-decoration: none; }
a:hover {
color: #F48E1F;
text-decoration: underline; }
#menu a { /*menu_horizontal*/
display: block;
line-height: 20px;
width: 151px;
color:#FFFFFF;
border-style: solid;
border-right-width: 0.5px;
border-left-width: 0px;
border-top-width: 0px;
border-bottom-width: 0px;
border-color: #FFFFFF;
background-color: #566390;
text-decoration: none;
text-align: center;
font-weight: bold;}
#menu a:hover {
background-color: #6898C8;}
#submenu a { /*menu_vertical*/
display: block;
line-height: 20px;
width: 151px;
color:#FFFFFF;
border-bottom-width: 1px;
border-color: #FFFFFF;
border-style: solid;
background-color: #566390;
text-decoration: none;
text-align: left;
text-indent: 3px;
font-weight: bold;
border-left-width: 0px;
border-right-width: 0px;
border-top-width: 0px;}
#submenu a:hover {
background-color: #6898C8;}
#dropmenudiv{ /*dropdown*/
margin-top: 5px;
position:absolute;
border-right-width: 1px;
border-top-width: 0px;
border-left-width: 0px;
border-bottom-width: 0px;
border-color: #666699;
font-weight: bold 11px Verdana;
color: #FFFFFF;
line-height: 20px;
z-index: 100;}
#dropmenudiv a{
width: 100%;
display: block;
text-indent: 3px;
border-bottom: 1px solid white;
padding: 1px 0;
text-decoration: none;
color: #FFFFFF;
font-weight: bold;}
#dropmenudiv a:hover{ /*dropdown_hover*/
background-color: #6898C8;}
th, td, tr {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #333333;}
.td { /*regular text_margin 10px*/
text-align: left;
font-weight: normal;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #333333;
margin-left: 10px;}
.td2 { /*headline_bold orange_margin 10px*/
font-weight: bold;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #F48E1F;
margin-left: 10px;}
.td3 { /*headline_bold blue_margin 10px*/
text-align: left;
font-weight: bold;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #566390;
margin-left: 10px; }
p.solid {
border-style: solid;
border-color: #CCCCCC;
border-width: 1px;
width: 230px;
line-height: 15px;
padding: 5px;}
p.question {
font-weight: bold;
border-style: solid;
border-color: #6898C8;
border-width: 1px;
width: 435 px;
line-height: 15px;
padding: 5px;}
td.bottomline {
border-bottom-width: 1px;
border-style: solid;
border-color: white;
border-left-width: 0px;
border-right-width: 0px;
border-top-width: 0px;
}
.nav {
display: block;
background-color: #E9EDF1;
text-indent: 10px;
padding: 1px 0;
text-decoration: none;
color: #F48E1F;
font-weight: bold;}
.btn{
background-color: #E9EDF1;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 11px;
padding: 2px;}
li {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #333333;
line-height: 20px;
}