The best place to ask programming/development questions, imo. UPDATE: stackoverflow is the *worst* place to *ask* questions (if your first question/comment doesn't get any up-rating/response, then u can't ask anymore questions--ridiculously unrealistic), but a great reference for finding answers.

My Music (Nickleus)

20130125

[SOLVED] richfaces rich:calendar button icon image breaking to new line. how to make it not wrap

this tutorial didn't work for me:
rich:calendar icon not displaying on same line as display box

i solved this by adding a styleClass to the surrounding panel grid:
<h:panelGrid columns="2" styleClass="tadCal">
    <h:outputText value="from date:" />
    <rich:calendar buttonIcon="/images/icons/cal_.gif" ... />
</h:panelGrid>




then in my css file i span elements not wrap to a new line.
style.css:

.tadCal span {
    white-space: nowrap;
}


because this is what a rich:calendar looks like when rendered:
<span>
<input type="text" .../>
<img .../>
<input type="hidden" .../>
</span>

No comments:

Post a Comment