前提・実現したいこと
ここに質問の内容を詳しく書いてください。
スマホサイトで横並びにバナーを配置したいのですがバナー同士の間隔が縮まりません。
発生している問題・エラーメッセージ
初心者なので、全くわかりませんがバナーを二段2列配置にしてワイド100%で作りたいと思っているのですが上下左右のバナーどうしの隙間がどうしても空いてしまいます。1pixぐらいの隙間でいいのですがやり方がわかりません。。。
該当のソースコード
<div style="display: flex; flex-wrap: wrap;"> <div style=" width: 50%; margin: 0%;"> <a style=" display: table; height: 100%px;" href=""> <div style=" display: table-cell; vertical-align: middle;"> <img alt="" style=" width: 100%; height: auto; max-height: 87px;" src="./uploadFile/asobikata-kairakuen.jpg"> </div> </a> </div> <div style=" width: 50%; margin: 0%;"> <a style=" display: table; height: 100px;" href="/special_company_kidsbasecamp"> <div style=" display: table-cell; vertical-align: middle;"> <img alt="" style=" width: 100%; height: auto; max-height: 87px;" src="./uploadFile/hotail-kairakuen.jpg"> </div> </a> </div> <div style=" width: 100%; margin: 0%;"> <a style=" display: table; height: 100px;" href="/special_company_kidsbasecamp"> <div style=" display: table-cell; vertical-align: middle;"> <img alt="" style=" width: 100%; height: auto; max-height: 87px;" src="./uploadFile/kuchikomi-kairakuen.jpg"> </div> </a> </div> <div style=" width: 100%; margin: 0%;"> <a style=" display: table; height: 100px;" href="/special_company_kidsbasecamp"> <div style=" display: table-cell; vertical-align: middle;"> <img alt="" style=" width: 100%; height: auto; max-height: 87px;" src="./uploadFile/line-kairakuen.jpg"> </div> </a> </div> </div>
試したこと
HP作成ソフト内のエディタを使ってHTMLの記述を行なっております。
補足情報(FW/ツールのバージョンなど)
初心者なので、全くわかりませんがバナーを二段2列配置にしてワイド100%で作りたいと思っているのですが上下左右のバナーどうしの隙間を縮める方法を教えてください。
よろしく願いいたします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/11/10 13:20