html float right将span设置为新行

时间:2012-02-06 14:41:42

标签: html css

如何在opera中设置两个内联,其中html为:

<section id="board-sub-header">
            <span>
                <span class="left">Text</span>
            </span>
            <span style="float:right"> 
                <a href="#" class="image-link application-icon popup-link">
                    Applications
                </a>
            </span>
        </section>

1 个答案:

答案 0 :(得分:0)

CSS:

#board-sub-header span { float: left; width: 50%; display: block; }

http://jsfiddle.net/EKQkS/