Help centering forms on HTML page, please

4 replies
Hi,

Any easy way to center the two forms on this old HTML page (one is a 1shopingcart form, the other is a Google search tool at the bottom):

Moving Ahead Communications - Advance with Affordable Business Support Services

Want this to show with IE and Firefox, and while inserting <p align="center"> makes no diff., not sure which style tag sets are needed, if any, and where to place them.

Thanks for any help!
#centering #forms #html #page
  • Profile picture of the author Wechito
    Use <div align=center> intead of <p>
    {{ DiscussionBoard.errors[2486327].message }}
    • Profile picture of the author dbarnum
      Originally Posted by Wechito View Post

      Use <div align=center> intead of <p>

      Perfect in both browsers - -mega thanks
      Signature




      {{ DiscussionBoard.errors[2486492].message }}
      • Profile picture of the author LynxSI
        While <div align=center> will work it is a deprecated standard. (No longer the "correct" way). W3C is dropping many of the older code based alignment standards in favour of CSS styles.

        I would using a <div style="text-align:center;"> tag. Obviously you can move the syles to an external CSS file for your site. This is just to prove the concept.
        Signature

        Ben Swayne
        Lynx System Integrators Ltd.
        Ben Swayne's Blog | Barcode Scanners and Label Printers

        {{ DiscussionBoard.errors[2580814].message }}
        • Profile picture of the author dbarnum
          Originally Posted by LynxSI View Post

          While <div align=center> will work it is a deprecated standard. (No longer the "correct" way). W3C is dropping many of the older code based alignment standards in favour of CSS styles.

          I would using a <div style="text-align:center;"> tag. Obviously you can move the syles to an external CSS file for your site. This is just to prove the concept.
          Thanks for this update, Ben! I'll adjust the code. Much appreciate your time and sharing, again, thanks!
          Signature




          {{ DiscussionBoard.errors[2581601].message }}

Trending Topics