[pmwiki-users] spreading out my table rows?
Petko Yotov
5ko at 5ko.fr
Fri Jul 22 05:22:57 CDT 2016
You can use the attributes border, cellpadding, cellspacing, rules,
width:
|| border=1 cellspacing=0 cellpadding=5 rules=all
"border=10" will make the outer border of the table 10 pixels thick, and
the borders of individual cells 1 pixel thick.
"border=0" will make both the outer border and the cell borders
disappear.
"cellspacing=1" will create 1 pixel empty space between individual
cells.
"cellspacing=10" will create 10 pixel empty space between individual
cells.
"cellspacing=0" will remove the empty space between individual cells
"cellpadding=3" will create 3 pixels empty space between the cell
borders (or limits) and the cell content, text or pictures.
"rules=rows" will only show borders between rows, not between columns or
cells
"rules=cols" will only show borders between columns, not between rows or
cells
"rules=all" will show all borders between cells
Most of the browsers display a table with "rules" attribute different
than one without (collapsed borders of neighbor cells instead of
separated).
Note, while these attributes will work in most browsers, they are valid
HTML4 but not HTML5. If you require valid HTML5, you should use CSS:
table {
border-spacing: 0px;
border-collapse: collapse;
}
td, th { /*cells*/
padding: 4px;
padding: 4px 8px 4px 8px; /*top right bottom left*/
}
This CSS code can be adapted for your needs and placed in the file
pub/css/local.css.
It is true that all styling is visual, and thus not essential.
Petko
On 2016-07-21 19:47, erik burggraaf wrote:
> Hi all, This is probably very simple, but it's visual and I've never
> learned to do it because it's never come up. I have a table that
> looks very nice in pmwiki, except that the rows are too close together
> for visual appeal. I want to space the rows out a bit, but I don't
> want a visual border or gridlines. I also don't want the columns to
> change.
>
> I looked for a rowspacing tag in the table directives but all I found
> was cell spacing. I'm afraid this would proportionally adjust my
> columns and throw them off while making my rows look nice. Am I going
> to have to take care of this in the CSS?
More information about the pmwiki-users
mailing list