File tree Expand file tree Collapse file tree
docs/2-browser-apps/05-css-layout Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,13 +6,13 @@ import responsiveCardsVideo from "./responsive-cards.mp4";
66import responsiveCenterCardsVideo from " ./responsive-center-cards.mp4" ;
77import responsiveHeaderVideo from " ./responsive-header.mp4" ;
88
9- この節では、CSSを使用してHTML要素のレイアウトを調整する方法を学びます。
10-
11- 例として、次のような料金プランを表すカードを作ることを目標に進めていきます。
9+ この節では、次のような料金プランを表すカードを題材に、CSSを使用してHTML要素のレイアウトを調整する方法を学びます。
1210
1311![ 料金プランのカードの完成形] ( ./pricing-cards-final.png )
1412
15- まずは、HTMLとCSSで料金プランのカードを作り始めてみます。
13+ まずは、土台となるHTMLとCSSを用意します。ここから、各要素のレイアウトを調整していきましょう。
14+
15+ ![ レイアウトを調整する前のカード] ( ./before.png )
1616
1717``` html title="index.html"
1818<!doctype html>
@@ -88,10 +88,6 @@ CSSでは、`#f0f0f0`や`#0d6efd`のように、`#`記号に続く6桁の16進
8888
8989## 幅と高さ
9090
91- 今のところ、カードの幅が画面いっぱいに広がってしまっています。
92-
93- ![ widthプロパティを指定する前のカード] ( ./before-width-card.png )
94-
9591` width ` プロパティで要素の幅を設定することができます。カードに適切な幅を設定するには、次のようにします。
9692
9793``` css
You can’t perform that action at this time.
0 commit comments