PukiWikiの表自体を左寄せ の変更点


*PukiWikiの表自体を左寄せ [#nd294e71]

PukiWikiで作成する表を全てcenter寄せになっているから、

ちょっと使いづらいので変更します。

**style.inc.phpを使う。 [#q0294d7e]
[[style.inc.php>http://lsx.sourceforge.jp/?Plugin%2Fstyle.inc.php]]

**pukiwiki.css.phpを編集 [#n04cd0e9]
 # 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入れたバージョンです。
&color(Red){※これは左にマージン15px入れたバージョンです。};

 .style_table {
         padding: 0px;
         border: 0px;
         margin: auto auto auto 15px; # talbeをデフォルトで左寄せにする。
         text-align: left;
         color: inherit;
         background-color: #aaa;
 }

**使い方 [#j45bbf6a]
-左寄せ
サンプルソース
 #style(class=table_left){{
 |table|
 }}
サンプル表示例
#style(class=table_left){{
|table|
}}

-中央寄せ
サンプルソース
 #style(class=table_center){{
 |table|
 }}
サンプル表示例
#style(class=table_center){{
|table|
}}

-右寄せ
サンプルソース
 #style(class=table_right){{
 |table|
 }}
サンプル表示例
#style(class=table_right){{
|table|
}}