1. This website uses cookies. By continuing to use this website you are giving consent to cookies being used.
    For information on cookies and how you can disable them visit our Cookie Usage page.
    Dismiss Notice

HTML Centering Site Without CSS

Discussion in 'Web Development' started by DickieSmith, Apr 27, 2011.

  1. DickieSmith

    DickieSmith New Member

    I created my site using the free WYSIWYG tool NVU. Unfortunately I have no knowledge of HTML and as such have probably cut corners such as using a CSS. I would really like to find a way to centre my site in the browser rather than always have it on the left of the site. If anybody can inform me of the correct html to add I would be very grateful. The website URL is:

    dickiesmith.co.uk
     
  2. navyfalcon

    navyfalcon Well-Known Member Verified Member

    Check this link:
    HTML center tag
    (how to center in HTML) they suggest using CSS to center but explain how to use HTML.
    -
    hope this helps
    falcon
     
  3. jsck82

    jsck82 New Member

    If you are looking at the code, there should be a <body> tag... you can add inline styling <body style="text-align: center;"> or after the <body> tag, you could simply add <center>. Right before the </body>, you want to add </center>, and your site will be centered.

    I believe that this is considered depricated code, but should still work (as far as I know).