# CSS - syntax pointers

**URL:** <https://forum.kirupa.com/t/css-syntax-pointers/196974>\
**Category:** web dev\
**Created:** [August 12, 2006, 7:01am UTC](https://forum.kirupa.com/t/css-syntax-pointers/196974 "2006-08-12T07:01:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![big\_britches](https://avatars.discourse-cdn.com/v4/letter/b/d26b3c/32.png) [@big\_britches](https://forum.kirupa.com/u/big_britches)\
**Post date:** [August 12, 2006, 7:01am UTC](https://forum.kirupa.com/t/css-syntax-pointers/196974/1 "2006-08-12T07:01:42Z")

</div>

hey - I’m really trying to absorb CSS and make it my standard. I feel like, because the syntax is so easy to grasp, I’m getting mired in redundancy. if anyone’s feeling especially compassionate, would you take a look at this code and throw me a suggestion on where to be more concise, and help me cut out some unnecessary code? This is for a new project, the first in a 3-month contract with a new company. I’m trying to get efficient with CSS asap, so that I can use downtime to study up on new stuff for project 2 (XSLT - really cool \*\*\*\*!)  
Thanks so much for any insight - here’s the CSS:

* * *

body {  
font: normal 10px Verdana, Arial, Helvetica, sans-serif;  
text-align: left;  
background: #5c5c5c;  
margin: 0px;  
}

/\* DIV LAYOUT \*/  
#container {  
width: 800px;  
height: 625px;  
border: none;  
margin: 20px auto 0 auto;  
padding: 0px;  
background: url(images/site-bg.jpg) no-repeat top left;  
}  
#signup {  
font: normal 8px Verdana, Arial, Helvetica, sans-serif;  
width: 742px;  
height: 19px;  
margin: 22px 29px 0 29px;  
text-align: right;  
background: url(images/signup-bg.gif) no-repeat top left;  
}  
#header {  
width: 742px;  
height: 155px;  
margin: 0 29px 0 29px;  
}  
#nav-global1 {  
text-align: center;  
width: 742px;  
height: 19px;  
margin: 0 29px 0 29px;  
background: url(images/nav-bg.gif) top left no-repeat;  
}  
#content-body {  
width: 742px;  
height: 346px;  
margin: 0 29px 0 29px;  
}  
#content-col1 {  
float: left;  
width: 228px;  
margin: 10px 20px 0 0;  
}  
#content-col2 {  
float: left;  
width: 252px;  
margin: 10px 0 0 0;  
}  
#content-col3 {  
float: left;  
width: 242px;  
margin: 10px 0 0 0;  
}  
#nav-footer {  
font: normal 9px Verdana, Arial, Helvetica, sans-serif;  
color: #B7F6FF;  
line-height: 15px;  
padding: 0px;  
width: 742px;  
height: 36px;  
margin: 0 29px 0 29px;  
background-color: #44b8c9;  
}

/\* GLOBAL 1 NAV STYLES _/  
 #nav-global1 ul {  
margin: 0px;  
padding: 0px;  
}  
 #nav-global1 ul li {  
font: normal 9px Verdana, Arial, Helvetica, sans-serif;  
list-style-type: none;  
display: inline;  
color: #FFFFFF;  
margin: 0 26px 0 26px;  
padding: 0px;  
}  
 #signup ul {  
margin: 0px;  
padding: 0px;  
}  
 #signup ul li {  
font: bold 8px Verdana, Arial, Helvetica, sans-serif;  
list-style-type: none;  
display: inline;  
color: #FFFFFF;  
margin: 0 4px 0 12px;  
padding: 0px;  
}  
/_ FOOTER \*/

/\* TEXT STYLES\*/  
p {  
font: normal 9px Verdana, Arial, Helvetica, sans-serif;  
color: #000000;  
}  
a:link, a:visited, a:hover, a:active {  
text-decoration: none;  
color: #FFFFFF;  
}  
#nav-footer a:link, a:visited {  
text-decoration: underline;  
color: #FFFFFF;  
}  
#nav-footer a:hover, a:active {  
text-decoration: underline;  
color: #B7F6FF;  
}

#signup-list li a:link, a:visited, a:hover, a:active {  
font-weight: bold;  
text-decoration: none;  
color: #FFFFFF;  
}

/\* HEADING STYLES \*/  
h1 {  
font: bold 16px Verdana, Arial, Helvetica, sans-serif;  
color: #B30537;  
}  
h2 {  
font: bold 12px Verdana, Arial, Helvetica, sans-serif;  
color: #B30537;  
}  
h3 {  
font: normal 11px Verdana, Arial, Helvetica, sans-serif;  
color: #5C5C5C;  
margin: 96px 0 0 247px;  
line-height: 15px;  
}  
h4 {  
font: normal 21px Century Gothic Bold, Futura, Verdana, Arial, Helvetica, sans-serif;  
color: #5C5C5C;  
float: left;  
margin: 70px 0 0 247px;  
letter-spacing: 2px;  
}  
h5 {  
font: normal 21px Century Gothic Bold, Futura, Verdana, Arial, Helvetica, sans-serif;  
color: #B30537;  
float: left;  
margin: 70px 0 0 6px;  
letter-spacing: 2px;  
}

/\* TABLE STYLES\*/

/\* MISC STYLES \*/  
a.external {  
padding-left: 8px;  
background: url(/elements/link\_external.gif) no-repeat left top;  
}

a.pdf {  
background: url(/elements/link\_pdf.gif) no-repeat left top;  
}

/\* IMAGES \*/  
.dots {  
background-image: url(images/dots.gif);  
background-repeat: no-repeat;  
background-position: left bottom;  
}  
.imgfloat {  
float: left;  
margin-top: 4px;  
margin-right: 8px;  
margin-bottom: 8px;  
margin-left: 0px;  
}  
.footnote {  
font-size: xx-small;  
font-style: italic;  
}  
.download {  
float: none;  
margin-top: 0px;  
margin-right: 0px;  
margin-bottom: 4px;  
margin-left: 0px;  
}  
.roy {  
background-image: url(images/headshot.gif);  
background-repeat: no-repeat;  
background-position: right bottom;  
}  
.royquote {  
font-family: Verdana, Arial, Helvetica, sans-serif;  
font-size: 11px;  
font-style: normal;  
line-height: 15px;  
color: #5C5C5C;  
float: left;  
margin-top: 70px;  
margin-right: 120px;  
margin-bottom: 0px;  
margin-left: 285px;  
}  
.dojlogo {  
background-image: url(images/doj-logo.gif);  
background-repeat: no-repeat;  
background-position: right top;  
position: relative;  
}
