Skip to content

Commit 0646d44

Browse files
committed
導入部分を修正
1 parent 8d002e4 commit 0646d44

3 files changed

Lines changed: 4 additions & 8 deletions

File tree

-108 KB
Binary file not shown.
138 KB
Loading

docs/2-browser-apps/05-css-layout/index.mdx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import responsiveCardsVideo from "./responsive-cards.mp4";
66
import responsiveCenterCardsVideo from "./responsive-center-cards.mp4";
77
import 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

0 commit comments

Comments
 (0)