html&cssの学習(11月2日)
html
brタグ
改行する際に使う
アイコンを使う(Font Awesome)
①Font AwesomeのCSSファイルを読み込む
②タグにfaクラスとfa-アイコン名クラスを指定する
css
プロパティ | 書き方 | |
---|---|---|
background-image | bacground-image: url(画像のURL); | 背景画像を表示 |
background-size | background-size: cover; | 背景画像の表示範囲を指定(coverは1枚で埋め尽くす) |
letter-spacing | letter-spacing: ~px; | 文字の間隔を指定 |
margin | margin: 0 auto; | 要素の中央寄せ |
line-height | line-height: ~px; | 行の高さを指定(要素の縦方向の中央に文字を配置するのにも使える) |