displayプロパティの理解
div→横いっぱいに変更される。
下記はブロックレベル要素になる。
・h1~h4
・section
・p
span→開業されないため横に並ぶ。
下記はインラインレベル要素になる。
・a
・img
See the Pen zYraRgr by daiki-6cats (@daiki-6cats) on CodePen.
More than 3 years have passed since last update.
下記はブロックレベル要素になる。
・h1~h4
・section
・p
下記はインラインレベル要素になる。
・a
・img
See the Pen zYraRgr by daiki-6cats (@daiki-6cats) on CodePen.
Register as a new user and use Qiita more conveniently