下記のようなHTMLをliのはじめの二つを横並びにし、残りのliは次の行で並べるようにするにはどんな方法が良いでしょうか?
ul直下にdivを置けないのでdispay:table;では全部を並べることしかできないですよね。
こんなイメージ(■はli)
■ ■
■ ■ ■
<ul class="address"> <li><a class="address--tel animation-hover action-hover" href="tel:08011111111">TEL 080-1111-1111</a></li> <li><a class="address--mail animation-hover action-hover" href="mailto:info@a.com">MAIL info@a.com</a></li> <li class="social-btn"> <a class='symbol animation-hover action-hover' href="l" onclick="window.open(this.href, 'Gwindow', 'width=650, height=450, menubar=no, toolbar=no, scrollbars=yes'); return false;" title=''></a> <li class="social-btn"> <a class='symbol animation-hover action-hover' href="h" onclick="window.open(this.href, 'FBwindow', 'width=650, height=450, menubar=no, toolbar=no, scrollbars=yes'); return false;" title=''></a> </li> <li class="social-btn"> <a class='symbol animation-hover action-hover' href="h'></a> </li> </ul>
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2016/01/26 11:21