HOME > ブログ > 左右に配置するレイアウトはdisplay:flex; flex-direction: row-reverse;で簡単にできる 左右に配置するレイアウトはdisplay:flex; flex-direction: row-reverse;で簡単にできる 福岡のホームページ制作、SEO対策会社のスゴヨクです。 今回はパソコンのレイアウトでよく見る左右に配置するレイアウトの配置方法の紹介です。 前はfloatを使って「left、right」としていましたが、 現在はdisplay: flex;で簡単に出来ます! 上記のような画像のレイアウトの場合のHTMLは <ul> <li class="flex-wrap"> <img src="画像①"> <p>テキスト①</p> </li> <li class="flex-reverse"> <p>テキスト②</p> <img