We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9372
    • 15 Posts
    im having a problem locating the "emailform" css code, as it currently has an ugly border and i wish to edit the css for the contact form, but i can not find it!

    can any1 help me on this?
      -----------------------

      If only life was simple......
      • 25663 MODX Staff
      • 12,272 Posts
      That is likely a fieldset border. Browsers put a border on that by default. Given that advice, I have not checked the actual code, so your mileage may vary!
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 9372
        • 15 Posts
        well within the code it has:

        <div class="emailform">


        so i assume it goes to a css file, just dont kno which one!
          -----------------------

          If only life was simple......
          • 25663 MODX Staff
          • 12,272 Posts
          Is there a <fieldset> tag in there?
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 9372
            • 15 Posts
            ah yes there is:

            <div class="emailform">
            <p>
                <form method="post" name="EmailForm" id="EmailForm" action="[~[*id*]~]">
                    <fieldset>


            what can i do to make it go away? it spoils my template with that dam line - i want it gone! lol would just removing it work?
              -----------------------

              If only life was simple......
              • 17883
              • 1,039 Posts
              Quote from: fad3d at Aug 24, 2006, 08:57 AM

              ah yes there is:

              <div class="emailform">
              <p>
                  <form method="post" name="EmailForm" id="EmailForm" action="[~[*id*]~]">
                      <fieldset>


              what can i do to make it go away? it spoils my template with that dam line - i want it gone! lol would just removing it work?

              Just put a

              fieldset {
              border: none;
              }


              to your Stylesheet.
                • 9372
                • 15 Posts
                cheers, worked a treat smiley

                thanks again
                  -----------------------

                  If only life was simple......
                  • 27889
                  • 415 Posts
                  I have another thing to notice with contact form, I’m trying to have small CSS and it seems that the most common way to display label and input are:
                  <label>my_label</label> <input ... / >
                  and you use
                  <label>my_label <input ... / > </label>

                  With <label>my_label</label> <input ... / > , all forms need only few css style, but with <label>my_label <input ... / > </label> we must rewrite more css rules to according the (great) contact form with the rest of the site style.

                  Is your way better than the common ? If yes I change all my others forms.
                    MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
                    MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
                    • 22815
                    • 1,097 Posts
                    I believe that wrapping the input within the label is just a shortcut way of associating the label with the field.

                    I prefer to keep them apart, but if you do that you really should use the "for" property, as that’s
                    <label for="email">Email address:</label> <input id="email" ...

                    That’s essential for disabled-user-friendlyness, and useful for everyone. If you have a checkbox with a properly configured label, clicking on the label text is the same as clicking on the checkbox - as the text is almost always bigger and easier to click on than the checkbox, I find myself using that a lot. I mentally dock points from a designer if I can’t do that.
                      No, I don&#39;t know what OpenGeek&#39;s saying half the time either.
                      MODx Documentation: The Wiki | My Wiki contributions | Main MODx Documentation
                      Forum: Where to post threads about add-ons | Forum Rules
                      Like MODx? donate (and/or share your resources)
                      Like me? See my Amazon wishlist
                      MODx "Most Promising CMS" - so appropriate!
                      • 27889
                      • 415 Posts
                      Good things, I will change my others forms, and it is xhtml strict valid except the name attribute for the form, but I suppose it is for backwards compability.
                        MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
                        MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]