0
0

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 3 years have passed since last update.

border(-top,-bottom)の長さを設定したい時 #教えて工藤さん

Posted at

例えば一つのdivタグで括った項目にそれぞれ下線などを引きたい時、一般的な長さでもいいのですが差別化を図るため長さを設定したい時は
・widthを設定する。(要素の長さにborderが比例するため。)
・marginを0にする。(widthの設定をすると謎のmarginが割り込んできた為。)

以上

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?