[PR]さくらのレンタルサーバ ライト
下の画像のような背景画像のある丸コーナーのボックスを表示させるCSSが紹介されています。

設置方法は以下のとおり。
まずは、CSSに以下のコードを記述します。
/*TeachMeJoomla'sツ flexible rounded corners module CSS*/
ツ/*image setup */
ツdiv.module-green, div.module-green div{
ツbackground:ツ url('images/rounded_green.jpg');ツ /* 背景に使う画像 */
ツ}
ツ/*replaced with TeachMeJoomla's single image technique*/
ツ div.module-green
ツ{
ツpadding: 0px 0px 0px 0px;
ツmargin:0px 0px 0px 0px;
ツbackground-repeat:no-repeat;
ツbackground-position:bottom left;
ツheight:1%;
ツwidth:auto;
ツ}
ツ div.module-green div
ツ
ツ{
ツmargin:0px 0px 0px 13px;
ツbackground-repeat:no-repeat;
ツbackground-position: bottom right;
ツpadding: 0px 0px 13px 0px;
ツwidth:auto;
ツ}
ツdiv.module-green div div
ツ{
ツツ background-position: top right;
ツツツツ margin: 0px 0px 0px 0px;
ツツツツ padding: 0px 0px 0px 0px;
ツ}
ツdiv.module-green div div div
ツ{
ツツ margin:0px 13px 0px -13px;
ツツ background-position: top left;
ツツ padding: 13px 0px 0px 13px;
ツ}
ツ/*reset nested divs*/
ツ div.module-green div div div div
ツ{
ツpadding:0px 0px 0px 0px;
ツmargin:0px 0px 0px 0px;
ツツ background:none;
ツツツツ background-image: none;
ツツツツ background-position: top left;
ツツツツ background-repeat: repeat;
ツツツツ background-color: transparent;
ツツツツ width:100%;
ツ}
そして、HTMLでは以下のように記述すればOKです。
<div class="module-green">
ツツツツツツ <div>
ツツツツツツツツ <div>
ツツツツツツツツツツ <div>
ツツツツツツツツツツ <p>
ツツツツツツツツツツ Look! I'm a flexible rounded corners box
ツwith 1 single background image!
ツツツツツツツツツツ here's more HTML
ツツツツツツツツツツ </p>
ツツツツツツツツツツ <ul>
ツツツツツツツツツツツツ <li>item</li>
ツツツツツツツツツツツツ <li>item</li>
ツツツツツツツツツツツツ <li>item</li>
ツツツツツツツツツツツツ <li>item</li>
ツツツツツツツツツツ </ul>ツツツツツツツツツ
ツツツツツツツツツツ </div>
ツツツツツツツツ </div>
ツツツツツツ </div>
ツ</div>
主要ブラウザ(IE6, IE7, Firefox, Opera)で動作を確認できているとのことです。また、確認していませんが、モジュールにも設定できるようです。
| 次 > |
|---|


Documentation(説明書)
Extensions(拡張機能)
Forum(フォーラム) 


