2013-12-08 80 views
0

我試圖通過使用CSS保證金屬性更改日曆組件的位置。Primefaces日曆位置

<p style="margin-top: 10px; margin-left: 100px"> 
    <p:calendar value="#{calendarBean.date1}" mode="inline" id="inlineCal"/> 
</p> 

邊距工作, 但利潤率左不是。

如何在水平方向移動日曆組件?

+0

我不知道爲什麼,但保證金是正確的工作,所以我可以使用這個技巧: style =「margin-right:10px; float:right;」 – Vovan

回答

1
How can I move calendar component in horizontal direction? 

使用CSS的float propery。即:float : left ;

1

您可以

> 'padding-left'

,而不是利潤率左嘗試...

試試這個

<p style="margin-top: 10px; margin-left: 100px !important"> 

它可以幫助你

+0

不..不工作。但是不要以任何方式抨擊你。 – Vovan

+0

請檢查任何CSS是重寫你的新CSS。地方**!重要的**在該CSS的前面..它將工作 – sonorita

+0

沒有變化:( 我使用這種風格=「margin-right:10px; float:正確;移動組件相對正確的邊界它適用於我。 – Vovan