We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28825
    • 61 Posts
    Hey all, quick question:

    How can I have multiple styles for input fields on my website? huh

    E.g. I want the input fields on my "Subscribe to the mailing list" form to be different than the input fields on my Registration page.

    And if I do create multiple styles, how do I link the style to the form (or the form to the style?)

    Thanks for all the help.
      "Don't waste your time or time will waste you"
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Give each form an ID: <form id="subForm" ... > and <form id="regForm" ... > and then specify which form in your css file: #subForm input {...} and #regForm input {...}.

      The rule is to give every element that can appear only once on a page an Id, and every element that might be repeated on a page a class. That way you have leeway to style everything individually.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 28825
        • 61 Posts
        Susan, sometimes I think you are on the only person reading these forums. laugh Thank you immensely for all the help. I can’t wait to show you what I’m working on once its half complete. Right now , it just STINKS :’(
          "Don&#39;t waste your time or time will waste you"
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Quote from: Sulman at Jan 09, 2008, 11:20 PM

          Susan, sometimes I think you are on the only person reading these forums.
          I think other people actually have a life... grin
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 33337
            • 3,975 Posts
            Quote from: sottwell at Jan 09, 2008, 11:56 PM

            Quote from: Sulman at Jan 09, 2008, 11:20 PM

            Susan, sometimes I think you are on the only person reading these forums.
            I think other people actually have a life... grin
            tongue
              Zaigham R - MODX Professional | Skype | Email | Twitter

              Digging the interwebs for #MODX gems and bringing it to you. modx.link