D
dx
How do you display only the horizontal borders (grid lines) in a table. What
is the css settings?
Much thanks in advance.
Stan
is the css settings?
Much thanks in advance.
Stan
dx said:How do you display only the horizontal borders (grid lines) in a
table. What is the css settings?
Much thanks in advance.
Stan
Mitja said:td {
border-top: solid black 1px; /*for example*/
border-right: solid black 1px;
border-bottom: solid black 1px;
border-left: solid black 1px;
}
or, shorter:
td {
border: solid black 1px;
border-width: 1px 0;
}
See w3c specs.
The OP wanted only horizontal borders.
td {
border-top: solid black 1px;
border-bottom: solid black 1px;
}
Jay said:The OP wanted only horizontal borders.
td {
border-top: solid black 1px;
border-bottom: solid black 1px;
}
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.