3 Replies Latest reply on Jul 29, 2008 10:04 AM by bek816

    Apply style to inputNumberSlider

    bek816

      I want to center my inputNumberSlider inside of a panel grid. The code is simple:

      <h:panelGrid columns="1" width="100%" columnClasses="cellcentre">
      
       <h:outputText .... some output />
      
       <rich:inputNumberSlider enableManualInput="false" styleClass="cellcentre" />
      
       </h:panelGrid>
      [/code
      
      Other properties (minvalue, maxvalue, value, etc), were removed for brevity.
      
      cellcentre is a style defined as:
      
      .cellcentre{text-align:center; vertical-align: middle;}
      
      The first column (the output text) is centered within the panel grid, but I can't for the life of me get the inputNumberSlider centered. Any suggestions?


        • 1. Re: Apply style to inputNumberSlider
          bek816

          Doh! The end bracket on

          • 2. Re: Apply style to inputNumberSlider
            bek816

            What the hell, the instant reply chopped off have my reply!

            Let's try this again:

            I want to center my inputNumberSlider inside of a panel grid. The code is simple:

            <h:panelGrid columns="1" width="100%" columnClasses="cellcentre">
            
             <h:outputText .... some output />
            
             <rich:inputNumberSlider enableManualInput="false" styleClass="cellcentre" />
            
             </h:panelGrid>
            


            Other properties (minvalue, maxvalue, value, etc), were removed for brevity.

            cellcentre is a style defined as:

            .cellcentre{text-align:center; vertical-align: middle;}

            The first column (the output text) is centered within the panel grid, but I can't for the life of me get the inputNumberSlider centered. Any suggestions?

            • 3. Re: Apply style to inputNumberSlider
              bek816

              Bump.

              Is this a bug in RichFaces? Or is there any way to center an inputNumberSlider in a panel grid?