First-child with CSS

This commit is contained in:
dave 2010-07-14 18:09:26 +00:00
parent 74ecb60f90
commit 1697287a35

View File

@ -91,38 +91,32 @@ input {
} }
/* Replacement for tableedit */ /* Replacement for tableedit */
form.editor { form.editor table {
color: black; color: black;
font-size: 1em;
/* width: 95%;*/
}
form.editor table {
margin-left: 20px; margin-left: 20px;
margin-right: 20px; margin-right: 20px;
font-size: 1em;
border: 0px; border: 0px;
border-collapse: collapse; border-collapse: collapse;
/* width: 95%;*/ /* width: 95%;*/
} }
form.editor td { form.editor table tr td {
padding: 2px; padding: 2px;
}
/* vertical align top, then use top padding to bring it down
* so that the text is in the middle of the first line compared
* to an input box */
form.editor * td.label {
/* width: 25%;*/
text-align: right;
/* padding-right: 5px;
padding-top: 5px;*/
vertical-align: baseline;
}
form.editor * td.input {
/* width: 75%;*/
text-align: left; text-align: left;
vertical-align: baseline; vertical-align: baseline;
} }
form.editor th { form.editor table tr td:first-child {
text-align: right;
}
form.editor table th {
font-weight: bold; font-weight: bold;
text-align: left; text-align: left;
color: #FFFFFF; color: #FFFFFF;
@ -149,6 +143,7 @@ form.editor * label.error {
} }
/* A default class so we can nest tables (i know bad) but revert /* A default class so we can nest tables (i know bad) but revert
* inheritance */ * inheritance */
.default td { .default td {