1 Reply Latest reply on Nov 19, 2012 6:48 PM by Sham HC

    css to style text input does not work

    cqnewuser Level 1

      Hi,

       

      I have a very simple form which contains one text field.

       

      <form method="POST" action="">

          

      <table width="100px" style="margin-left:auto;margin-right:auto" border=1>

            <tr>

                  <td class="label">username</label></td>

            </tr>

             <tr>

                  <td><input style="width:50px" type="text" name="username" /></td>

              </tr>

          </table>

       

      </form>

       

      In the real code of course I have a proper style sheet instead of embedding 'style' in the input, but doesn't matter how I tried, the text field sticks to '161px'. I searched for text '161px' in all css files only found it under emulator.css padding, which is of course not used in my case.

       

      I tried in a plain html and the above code works. I know that this input style is defined somewhere in the hirachy which I was not able to override, any idea how to overide CQ's input style?

       

      Thanks!