sike Posted September 8, 2009 at 11:30 AM Report Share #286075 Posted September 8, 2009 at 11:30 AM Estou a tentar atribuir uma cor de fundo á todas as td's da primeira tr da tabela. É possível ? O que estou a fazer mal ? .docPoliticas{} table.docPoliticas tr td{background-color:000000;} <table align="center" border="1" cellpadding="0" cellspacing="0" class="docPoliticas"> <tr id="trPoliticas01"> <td><img src="/images/conteúdos/special.jpg" width="100" height="100" alt="Departamento HR"></td> <td><img src="/images/conteúdos/special.jpg" width="100" height="100" alt="Departamento Administrativo-Financeiro"></td> <td><img src="/images/conteúdos/special.jpg" width="100" height="100" alt="Departamento de Qualidade"></td> </tr> <tr> <td><div class="txtTitleGray">Departamento de RH</div></td> <td><div class="txtTitleGray">Departamento Administrativo-Financeiro</div></td> <td><div class="txtTitleGray">Departamento de Qualidade</div></td> </tr> </table> Link to comment Share on other sites More sharing options...
shadlan Posted September 8, 2009 at 04:27 PM Report Share #286094 Posted September 8, 2009 at 04:27 PM Tenta table.docPoliticas tr#trPoliticas01 td{background-color:000000;} Como estava ia aplicar o background a todas as td dentro de qualquer tr. Assim apenas aplica a todas as td que estejam dentro de qualquer tr que possua o id trPoliticas01 Link to comment Share on other sites More sharing options...
yoda Posted September 8, 2009 at 04:34 PM Report Share #286097 Posted September 8, 2009 at 04:34 PM Basta isto : tr#trPoliticas01 td {background-color:#000000;} before you post, what have you tried? - http://filipematias.info sense, purpose, direction Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now