1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【CSS】border

Posted at

border

:sunny: 要素に枠線をつける
:sunny: 枠線の太さ、種類、色を指定して使用

例.html
<p>枠線だよーん</p>
例.css 
p {
  width: 300px;
  border: 3px solid red;
}
スクリーンショット 2019-12-27 18.55.38.png

3px・・・線の太さ
solid・・・実線
red・・・赤

ちなみに・・・

border・・・上下左右に線をつける
border-top・・・上に線をつける
border-bottom・・・下に線をつける
border-left・・・左に線をつける
border-right・・・右に線をつける

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?