如何排列两个div并排?

问题描述:

<div id="buttonpanel" style="display:None; float:left"> 
     <apex:commandButton action="{!selectQuarter}" value="Go!" status="actStatusId2" reRender="pgBlckId,panelrender,panelrender1,panelrender14,panelrender15,panelrender24,panelrender23,panelrender12,panelrender13,panelrender2,panelrender21,panelrender22" id="button2"/> 
     <apex:actionStatus id="actStatusId2" title="This is the status for loading image"> 
       <apex:facet name="start" > 
       <img src="/img/loading.gif" width="25" height="25" align="bottom" title="Loading"/> 
        <h3> Loading..</h3>   
       </apex:facet> 
     </apex:actionStatus> 
    </div> 

我想显示并排两个div标签的一面。请让我知道我该如何做到这一点?如何排列两个div并排?

+0

不知道我能够在编辑查询时完全看到代码。在

以下添加 – saru

我没有看到两个div ....但改变你的h3元素内部div有inline显示应该工作,因为内联元素不会在新行开始。

#buttonpanel h3{ 
    display:inline; 
    }