troubleshooting Question

How do you add alternating color to rows in a CSS table?

Avatar of kfranck
kfranckFlag for United States of America asked on
ASPCSS
7 Comments1 Solution353 ViewsLast Modified:
I have a CSS table that is being used with a MS Access database ASP page. I am trying to get alternating color rows. I have searched several sites for the code, but nothing is working. I have attached a code snippet of the CSS code I am using. Suggestions?
<style type="text/css">  
<!--   
table{   
    margin-left: 10px;
    border-color: #000080;
    border-spacing: 1px;   
    font-family:arial;
	font-size:13px;
	color:black;
    border-collapse: collapse;   
    width: 980px;   
}   
th {   
    text-align: left;   
    font-weight: bold;   
    padding: 3px;   
    border: 2px solid #000080;   
    background: #003399;   
    color: #FFFFFF;   
}   
td {   
    text-align: left;   
    font-weight: bold; 
    padding: 3px;   
    border: 1px solid #003399;   
    background: #003399;   
}   
td {   
    background: #f7f7f7;   
}   
-->
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros