* { border: 0; margin: 0; padding: 0; } table { text-align: left; border-spacing: 0px; border: 1px solid #aeb3b6; border-collapse: collapse; text-align: center; } table .od , tr .od, td .od { color: #FFFFFF; background-color: #FFFFFF; } input { color: #55595C; text-align: center; font-family: Arial,Helvetica,sans-serif; border: solid 1px #989898; } input.odd { color: #339933; text-align: center; font-family: Arial,Helvetica,sans-serif; border: solid 1px #989898; } table a, table, tbody, tfoot, tr, th, td { color: #55595C; font-family: Arial,Helvetica,sans-serif; font-size: 13px; line-height: 2em; } tbody td{ line-height: 2.5em; text-align: center; } table caption { padding: .4em 0 ; font-size: 240%; font-style: normal; color: #FB7E00; } table a { display: block; text-decoration: none; color: #FF8E53; padding-right: 1.5em; } table a:hover, table a:focus { text-decoration: underline; } table th a { color: #FF8E53; text-align: right; } table .odd th a,table .odd td a,table .odd td{ color: #666; padding-right: 1.0 em; } table th a:hover, table th a:focus, tbody tr:hover th { background-color: #FFCC99; color: #fff !important; } table .odd th,table .odd td{ background-color: #DDDDDD; } tfoot{ background-image: url(verlauf_schwarz.gif); border-top: 1px solid #fff; } tfoot th,tfoot td{ color: #fff; } tbody th { padding-right: 1.0em; color: #25c1e2; font-style: normal; background-color: #fff; border-bottom: 1px dotted #aeb3b6; } td { color: #339933; border-bottom: 1px dotted #aeb3b6; border-left: 1px dotted #aeb3b6; border-right: 1px dotted #aeb3b6; text-align: center; padding-right: 0.5em; } thead th { background-image: url("http://www.ad-plus.de/table/verlauf_schwarz.gif"); color: #FFFFFF; font-weight: normal; letter-spacing: 1px; text-transform: uppercase; } tbody tr.odd { border-bottom: 1px dotted #aeb3b6; } tbody tr:hover td { background-color: #339933; } tbody tr:hover td,tbody tr:hover th, tbody tr:hover a { color: #fff !important; }
Potrzebuje aby to zadziałało tylko dla tabeli o id tabela, lub dla tabeli o klasie tabela.
Mi to obojętne, chce aby ten css nie dotyczył innych tabeli na stronie, nie mogę sobie z tym poradzić.