9
7

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】シンプルな線を引く

Last updated at Posted at 2014-11-29

線を入れたい場所に"hr"を入れて

hr {
  height: 1px;
  border: none;
  border-top: 1px #000000 solid;
}

線の太さと色は変更できる


このようなシンプルな線が表示される

solid まっすぐ
dashed 切り取り線みたいな点線
dotted 丸い点線

9
7
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
9
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?