html - 我需要这些图像并排显示

标签 html css

这看起来应该很简单,但是玩了几个小时我还是想不出如何让 linkedIn 和 GitHub 图片并排显示。

 <h1>Contact Me:</h1>

<p>
    <div>
            <h2>School Email:</h2>
    <a class="tabbed" href="mailto:me@email.com">me@email.com</a> 
        <br>
        <br>
    </div>
    <div>
            <h2>Check me out on:</h2>   <span class="images">
                                        <a href="http://www.linkedin.com/pub/john-doe" target="_blank"><img style="border:none; margin-top: 5px;" src="http://s8.postimg.org/6x5pyi5o1/Linkedinbutton.gif" alt="LinkedIn"></a><br><br>
                                        <a href="https://github.com/johndoe" target="_blank"><img title="Check me out on GitHub!" style="border:none; margin-top: 5px;" src="http://s22.postimg.org/ujhomd9st/Git_Hub.png" alt="GitHub"></a><br><br>
                                    </span>

    </div>
    <div>
            <h2>School Address:</h2>

        <p class="tabbed">Sandburg Residence Hall Box #S1993
            <br>3400 N Maryland Avenue
            <br>Milwaukee Wi, 53211
            <br>
        </p>
    </div>
</p>
<p style="font-size:13px;">This page was created with the help and much thanks of <a href="http://code.google.com/p/how-to-create-tabs-in-html-using-jquery/downloads/detail?name=how-to-create-tabs-in-html-using-jquery.zip&can=2&q=s">this</a> tutorial.</p>

fiddle

最佳答案

添加这个:

.images img {
    display:inline-block;
}

并删除两个中断 <br> ...只删除两个中断。

Demo here

关于html - 我需要这些图像并排显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18581100/

相关文章:

c# - 在 View 中显示来自 ViewModel 的平均值

html - 2个div之间出现白线

css - 如何在不更改框列表高度的情况下仅在悬停时显示截断的文本?

html - 自定义文本区域的文本对齐方式

html - 关于 z-index 的困惑

html - 使用 CSS 样式化 `tt`

PHP 提交表单,转义引号?

html - 定位 UL LI 选择框

css - 背景颜色不覆盖页面

css - 半个单词、句子等的样式