PukiWikiの表自体を左寄せ
PukiWikiの表自体を左寄せ †
PukiWikiで作成する表を全てcenter寄せになっているから、
ちょっと使いづらいので変更します。
style.inc.phpを使う。 †
pukiwiki.css.phpを編集 †
# vi pukiwiki/skin/pukiwiki.css.php
.style_table, div.ie5 より下に追加「#style(class=table_left)」を使えるようにする。
.table_left .style_table { margin:auto auto auto 15px; } .table_center .style_table { margin: auto; } .table_right .style_table { margin:auto 15px auto auto; } .table_left div.ie5 { text-align:left; } .table_center div.ie5 { text-align:center; } .table_right div.ie5 { text-align:right; }
※これは左にマージン15px入れたバージョンです。
.style_table { padding: 0px; border: 0px; margin: auto auto auto 15px; # talbeをデフォルトで左寄せにする。 text-align: left; color: inherit; background-color: #aaa; }
使い方 †
- 左寄せ
サンプルソース
#style(class=table_left){{ |table| }}
サンプル表示例table
- 中央寄せ
サンプルソース
#style(class=table_center){{ |table| }}
サンプル表示例table
- 右寄せ
サンプルソース
#style(class=table_right){{ |table| }}
サンプル表示例table