LoginSignup
0
0

More than 5 years have passed since last update.

ECCUBE2 で管理画面を中央表示させる

Last updated at Posted at 2015-12-22

html\user_data\packages\admin\css\admin_contents.css

を編集

/* コンテンツ
----------------------------------------------- */以下に

container div{

margin: 0 auto;

}
と記入する。

これでサブタイトル以外は中央へ

data\Smarty\templates\admin\main_frame.tpl
を編集

<!--{if $tpl_subtitle}-->
<h1><!--{\$tpl_maintitle|h}--><!--{if strlen(\$tpl_maintitle) >= 1 && strlen(\$tpl_subtitle) >= 1}-->><!--{/if}--><!--{$tpl_subtitle|h}-->
<!--{/if}-->

これをdivでくくってもmargin autoが効かないので
すぐ上のナビのdivの中に一緒に放り込む
ulの下 /divの上

このような感じ

</ul>
<!--{if $tpl_subtitle}-->
<h1><!--{\$tpl_maintitle|h}--><!--{if strlen(\$tpl_maintitle) >= 1 && strlen(\$tpl_subtitle) >= 1}-->\><!--{/if}--><!--{\$tpl_subtitle|h}-->
<!--{/if}-->
</div>
<!--{* ▲NAVI *}-->

これですべてが中央ぞろえになる。

center.jpg

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0