65207
videoタグにmargin使用できますか？  
HTML Living Standard は、HTML の仕様なので(？)、CSS使用可能と思ったのですが…
CC BY-SA 4.0
2020-03-29T14:41:04.583
65205
2020-03-29T15:39:45.193
2020-03-29T15:39:45.193
32986
7886
question
html css
videoタグにmargin使用できますか？
可能です。

> ### 8.3 Margin properties: 'margin-top', 'margin-right', 'margin-bottom',
> 'margin-left', and 'margin'[[1]](https://www.w3.org/TR/CSS2/box.html#margin-
> properties)
>
> `'margin'`
>
>   * Value: `<margin-width>{1,4}` | `inherit`
>   * Initial: see individual properties
>   * Applies to: all elements except elements with table display types other
> than `table-caption`, `table` and `inline-table`
>   * Inherited: no
>   * Percentages: refer to width of containing block
>   * Media: visual
>   * Computed value: see individual properties
>

```

    body {
      margin: 0;
      background: #ffa;
    }
    
    video {
      display: block;
      margin: 35px auto 50px;
      padding: 5px;
      background: #faf;
    }
```

```

    <!-- 動画元: https://wedistill.io/videos/state-fair-2013-hd -->
    <video width="400" autoplay controls>
      <source src="https://wedistill.io/uploads/videos/processed/34/State-Fair-2013-HD.mp4.mp4" type="video/mp4">
    </video>
```
CC BY-SA 4.0
2020-03-29T15:38:52.970
65207
2020-03-29T15:38:52.970
32986
65205
answer