4 Replies Latest reply on Feb 21, 2011 9:24 AM by nimo22

    .rf-dt-c padding of column

    nimo22

      How can I set the padding of a column?

       

      When using firebug, I can see  rf-dt-c is the responding class for a column. I use this:

       

      .no_padding .rf-dt-c{

      padding:0 !important;

      }

       

      and this

       

      <rich:column styleClass="no_padding">

      ..

      </rich/column>

       

      but the padding is not set!

       

      I searched the tag via firebug and see that no_padding is applied to the right tag:

       

      <td class="rf-dt-c dt-no-padding"..>

       

      but it does not work.

       

      when setting

       

      <td class="rf-dt-c dt-no-padding".. style="padding:0"> manually via firebug it works.

       

      When using global class, it also works, but I dont want to apply the padding to all columns:

      .rf-dt-c{

      padding:0 !important

      }

       

      Did I make a mistake?

        • 1. .rf-dt-c padding of column
          boy18nj

          Hi Nimo,

           

          Use like this-

           

          .rf-dt-c dt-no-padding{

          padding:0 !important;

          }

          • 2. Re: .rf-dt-c padding of column
            nimo22

            Hi Aman,

             

            sadly, it does not work. I use this

             

             

            .rf-dt-c dt-no-padding

            padding:0 !important;

            }

             

            and see that in firebug:

             

            <td class="rf-dt-c dt-no-padding".. >

             

            but the padding is always visible.

             

            When I change it live in firebug to style="padding:0", then it works. But my class is totally ignored! (my css references are all right!). Maybe rf did the style via javascript..

            • 3. Re: .rf-dt-c padding of column
              ilya_shaikovsky

              just both selectors slightly wrong. check two I used:

              <style>

                                  .rf-dt-c.no-p{

                                            padding: 0;

                                  }

                                  .no-p2{

                                            padding: 0;

                                  }

                        </style>

              ...

              <rich:column styleClass="no-p">

              ...

              <rich:column styleClass="no-p2">

               

              Both works.

              • 4. .rf-dt-c padding of column
                nimo22

                yes, thank you. it works!