如何并排安排两个div?

时间:2016-07-26 16:31:33

标签: html css visualforce

                                                              
   <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标签。请让我知道如何实现这一目标?

1 个答案:

答案 0 :(得分:0)

我没有看到两个div ....但是更改div中的h3元素以显示inline应该有效,因为内联元素不会在新行上开始。

  #buttonpanel h3{
  display:inline;
  }