This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 3

changing colr of input text


  1. msavi
    Member

    i know that i can change the input text globally under themes. i want to change it just for one field. i used this

    #element_1
    {
    text-align:center;
    background-color: #ffffff;
    font-family: 'Droid Sans','Lucida Grande',Tahoma,Arial,sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 110%;
    color: #444444;
    }
    the text is centered but the font color and size does not change.

    Posted 11 years ago #
  2. yuniar

    Try to add !important into your color and size attribute, like this:

    #element_1
    {
    text-align:center;
    background-color: #ffffff;
    font-family: 'Droid Sans','Lucida Grande',Tahoma,Arial,sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 110% !important;
    color: #444444 !important;
    }

    MachForm Founder

    Posted 11 years ago #
  3. msavi
    Member

    thank you - it works. can u explain the meaning of !important?

    Posted 11 years ago #
  4. yuniar

    In short, it's a quick fix to force the style to be implemented by the browser. More detailed information here:
    http://coding.smashingmagazine.com/2010/11/02/the-important-css-declaration-how-and-when-to-use-it/


    MachForm Founder

    Posted 11 years ago #

RSS feed for this topic

Reply