1
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.

横並びにしたいのにfloatもinline-blockも効かなくて泣いた

Posted at

はじめに

改修で以下のように要素を追加したかったのですが、floatにしてもinline-blockにしてもうんともすんとも反応せずで困り果ててしまいました。
20201231.png

align-items: center;

CSS の align-items プロパティは、すべての直接の子要素に集合として align-self の値を設定します。

これや!!!!!!
消したらちゃんと横並びになりました

まとめ

解決するのにすごく時間がかかってしまいました。
こういう全体にかけるプロパティがあるんですね・・・
よくわからなくて困り果ててたのですが、途中で開発者ツールでそれらしいdivを選択して1つ1つ消していく方針にしたら見つかりました。

cssを触るときはもりもり開発者ツールを使うようにしたいと思います。

1
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
1
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?