Results 1 to 5 of 5
  1.    #1  
    Does anyone know how to style input text fields? I've tried all the standard CSS properties for text fields, but the only one that I can get to work is the "background-color" ... and that only works when the text field does NOT have focus.

    I really just want to style the background color (focused and unfocused) and the large padding that is on the top and bottom of the text. Has anyone been able to do this?
  2. #2  
    Try this:

    Override the textfield style with an empty one, later add the style .selected, and add your changes to the .selected

    Tell me if works.
  3. #3  
    If your widget has ID "foo",style as follows:

    #foo input {
    your styles here
    }
  4. #4  
    for focus try #foo input:focus too. Or #foo input.selected like the previous poster suggested.
  5.    #5  
    Thanks for the quick replies. Unfortunately, none of these solutions seem to work. Even adding inline CSS to the HTML doesn't work

    Code:
    <div id="searchField" name="searchField" x-mojo-element="TextField" style="padding:0px;margin:0x;"></div>
    Surely there must be a way to properly style the textfield widget. Any ideas? I'll just assume I'm overlooking something.

Tags for this Thread

Posting Permissions