基金訓練(Webデザイン・プログラミング科)の42日目に行ってまいりました。
本日は、Adobe Dreamweiver CS4の実習です。
本日の内容は今までの復習です。
なので、新しい内容はありません。
今日で、下の2冊の教本の中身は、ほぼすべて終わりました。
「基金訓練」についての投稿です。
本日の内容は今までの復習です。
なので、新しい内容はありません。
今日で、下の2冊の教本の中身は、ほぼすべて終わりました。
本日の内容は下記のとおりです。
↑こんな風にしたいとき。
その1(教科書のやり方)
CSS部
.box {
width : 100px;
background-color: #CF9;
}
.box .bgTop {
background-repeat : no-repeat;
background-position : center top;
background-image: url(bgtop.gif);
width: 100px;
padding-top: 10px;
}
.box .bgBottom {
background-repeat : no-repeat;
background-position : center bottom;
background-image: url(bgbottom.gif);
width: 84px;
padding-bottom: 10px;
padding-right: 8px;
padding-left: 8px;
}
HTML部
<div class=”box”>
<div class=”bgTop”>
<div class=”bgBottom”>
文字文字文字文字文字文字
</div>
</div>
</div>
その2(背景に影響されないやり方)
CSS部
.box .bgTop {
background-image: url(bgtop.gif);
background-repeat: no-repeat;
background-position: center top;
width: 100px;
height: 10px;
}
.box .bgCenter {
width: 84px;
background-color: #0FF;
padding-right: 8px;
padding-left: 8px;
}
.box .bgBottom {
background-image: url(bgbottom.gif);
background-repeat: no-repeat;
background-position: center bottom;
width: 100px;
height: 10px;
}
HTML部
<div style=”box”>
<div style=”bgTop”></div>
<div style=”bgCenter”>
文字文字文字文字文字文字
</div>
<div style=”bgBottom”></div>
</div>
本日の内容は下記のとおりです。
sei2の日記へ
← こんな風にしたいとき。
CSS部
#link {
background-image : url (xxx.gif) ;
background-repeat : no-repeat ;
background-position : left ;
padding-left : 25px ;
}
HTML部
<a id=”link” href=”http://blog1.dd-company.com/”>sei2の日記へ</a>
今日のポイント