SlideShare a Scribd company logo
1 of 24
Download to read offline
Web講座 第4回
前回のおさらい
回り込みについて
positionについて
Z-indexについて
次回の講座
前々回の講座では、セレクタの種類や擬似クラス・擬似
要素、マージン・パディングについて説明しました。
擬似クラス・擬似要素を適用する
要素名:擬似クラス{
color:#FF0000;
}
要素名:擬似要素{
content:”☆”;
}
マージンとパディング
テキスト
マージン
マージン
パディング パディング
マ
ー
ジ
ン
マ
ー
ジ
ン
height
width
今までは、上から下へ順に
コンテンツを表示させていましたが
回りこみを使うことで
左右方向にもコンテンツを
表示することができます
以前まで
回りこみ使用
回りこみを使うには
floatを使う
その際にwidthを必ず
指定する
floatにleftを指定する
と要素が左による
floatにrightを指定す
ると要素が右による
回りこみを解除する
にはclear:bothを使う
下のように表示されたでしょうか?
#main #sub
メインコンテンツをright,サブコンテンツをleftにすると
下のように場所が反対になります
#main#sub
positionはボックスの配置方法を指定するものであり
relative(相対位置)やabsolute(絶対位置)などがある
また、表示位置の指定としてtop,bottom,left.rightを使う
 Absoluteは絶
対位置を示す
Top:100px;
Left:100px;
100px
100px
 Staticは本来
の位置を示す
Top:100px;
Left:100px;
100px
100px
 relativeは相対
位置を示す
Top:100px;
Left:100px;
100px
100px
本来の位置
staticの場合
absoluteの場合
relativeの場合
6月18日
JavaScriptについて

More Related Content

Viewers also liked

عناصر المنهج
عناصر المنهجعناصر المنهج
عناصر المنهجasmanm
 
Cybersecurity organisations teodora_stoikova_500113
Cybersecurity organisations teodora_stoikova_500113Cybersecurity organisations teodora_stoikova_500113
Cybersecurity organisations teodora_stoikova_500113teodora_stoikova91
 
Web講座 第3回
Web講座 第3回Web講座 第3回
Web講座 第3回nanametown
 
Web講座 第2回
Web講座 第2回Web講座 第2回
Web講座 第2回nanametown
 
Web講座 第7回
Web講座 第7回Web講座 第7回
Web講座 第7回nanametown
 
第九回ネットワークチーム講座資料
第九回ネットワークチーム講座資料第九回ネットワークチーム講座資料
第九回ネットワークチーム講座資料nanametown
 
Web講座 第11回
Web講座 第11回Web講座 第11回
Web講座 第11回nanametown
 
Web講座 第1回
Web講座 第1回Web講座 第1回
Web講座 第1回nanametown
 
Presentation cybersecurity organsation_teodora_stoikova_500113
Presentation cybersecurity organsation_teodora_stoikova_500113Presentation cybersecurity organsation_teodora_stoikova_500113
Presentation cybersecurity organsation_teodora_stoikova_500113teodora_stoikova91
 
GCR : POWER POINT PRESENTATION
GCR : POWER POINT PRESENTATIONGCR : POWER POINT PRESENTATION
GCR : POWER POINT PRESENTATIONPratheesh Kumar
 
Welcome to Crypto Currency Platform, GCR The Next BitCoin
Welcome to Crypto Currency Platform, GCR The Next BitCoinWelcome to Crypto Currency Platform, GCR The Next BitCoin
Welcome to Crypto Currency Platform, GCR The Next BitCoinPratheesh Kumar
 

Viewers also liked (11)

عناصر المنهج
عناصر المنهجعناصر المنهج
عناصر المنهج
 
Cybersecurity organisations teodora_stoikova_500113
Cybersecurity organisations teodora_stoikova_500113Cybersecurity organisations teodora_stoikova_500113
Cybersecurity organisations teodora_stoikova_500113
 
Web講座 第3回
Web講座 第3回Web講座 第3回
Web講座 第3回
 
Web講座 第2回
Web講座 第2回Web講座 第2回
Web講座 第2回
 
Web講座 第7回
Web講座 第7回Web講座 第7回
Web講座 第7回
 
第九回ネットワークチーム講座資料
第九回ネットワークチーム講座資料第九回ネットワークチーム講座資料
第九回ネットワークチーム講座資料
 
Web講座 第11回
Web講座 第11回Web講座 第11回
Web講座 第11回
 
Web講座 第1回
Web講座 第1回Web講座 第1回
Web講座 第1回
 
Presentation cybersecurity organsation_teodora_stoikova_500113
Presentation cybersecurity organsation_teodora_stoikova_500113Presentation cybersecurity organsation_teodora_stoikova_500113
Presentation cybersecurity organsation_teodora_stoikova_500113
 
GCR : POWER POINT PRESENTATION
GCR : POWER POINT PRESENTATIONGCR : POWER POINT PRESENTATION
GCR : POWER POINT PRESENTATION
 
Welcome to Crypto Currency Platform, GCR The Next BitCoin
Welcome to Crypto Currency Platform, GCR The Next BitCoinWelcome to Crypto Currency Platform, GCR The Next BitCoin
Welcome to Crypto Currency Platform, GCR The Next BitCoin
 

Web講座 第4回