Member Offer
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Center my page

Discussion in 'Website Design Forum:' started by solvaworld, Jun 23, 2010.

  1. solvaworld

    solvaworld Member

    Hi all,

    created a web page and despite me centering it in html certain aspects dont seem to be alligned can anyone help please?

    Thank you
  2. solvaworld

    solvaworld Member

  3. Renniks

    Renniks Senior Member

    Please put it in a code box
    Please read this Seven Reasons to go Table Free

    Also remember <center> is deprecated, and that it could be unsupported soon
  4. solvaworld

    solvaworld Member

  5. solvaworld

    solvaworld Member

  6. tbwcf

    tbwcf Active Member

    You shouldn't be using tables for layout...
  7. solvaworld

    solvaworld Member

    Hi there thanks for the help, I am slowly trying to pahse them out. Just one more thing though everything has moved into the middle apart from the white background image? Any ideas how I can move that too.

  8. Mark Alexander

    Mark Alexander Senior Member

    background-position: center top;
  9. Renniks

    Renniks Senior Member

    Don't phase them out, just stop using them, there isn't a steady process between the two, you either use them as intended, or you don't :)
  10. solvaworld

    solvaworld Member

  11. Mark Alexander

    Mark Alexander Senior Member

    Oops, I assumed you must have been using some kind of fixed width image to go with your fixed layout.

    Try assigning the background-image to the table in the middle instead of your body.

    e.g. give it an id:

    <table width="780" border="0" cellspacing="0" cellpadding="0" id="contentwrap">
    and add this to your stylesheet:

    #contentwrap {    background-image: url(images/bursak.gif);}
    and remember to remove the other background-image declaration from the body element.
  12. solvaworld

    solvaworld Member

    Hi Mark seems to be working ok now.

    Thanks everybody
  13. andthen

    andthen Member

    @ solvaworld

    I would do the old DIv tag route with a "margin: 0 auto;" on the main container which would center the whole thing.
  14. Goreki

    Goreki Member

    I didn't realise people still use tables to make whole pages. :S

    For whole page centering, I second this, but don't forget to define a width as it won't make any difference without it.

Share This Page