align template

Discussion in 'HTML & Website Design' started by mak445, Jul 14, 2007.

  1. #1
    Hi
    There how do i align template to the center of the page in dreamweaver it`s to the left and i want it in the center of the page

    Thanks
     
    mak445, Jul 14, 2007 IP
  2. Subject

    Subject Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    We need more info to answer your question. It depends on how your template is made.
    Are you using CSS with <div>'s, or tables?

    Post a link to the page your trying to center.
     
    Subject, Jul 15, 2007 IP
  3. ansi

    ansi Well-Known Member

    Messages:
    1,483
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    100
    #3
    well since you're using dreamweaver you probably have no idea what html is anyways so just use <center>template crap here</center>. it's depreciated and has been for years but it will work.
     
    ansi, Jul 15, 2007 IP
  4. mak445

    mak445 Banned

    Messages:
    185
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    mak445, Jul 15, 2007 IP
  5. HDaddy

    HDaddy Active Member

    Messages:
    287
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #5
    </style></HEAD>
    <BODY LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
    <!-- ImageReady Slices (casino04.psd) -->
    <div class="style1" align="center" id="Layer2">
    <strong>CASINO<br>
    NAME</strong>
    </div>

    I think this should be
    <TABLE align="left" WIDTH=780 BORDER=0 CELLPADDING=0 CELLSPACING=0>
    <TR>

    Like this:

    <TABLE align="center" WIDTH=780 BORDER=0 CELLPADDING=0 CELLSPACING=0>
    <TR>

    I´m not good with tables, but maybe that will help.
     
    HDaddy, Jul 16, 2007 IP
  6. creationboy

    creationboy Peon

    Messages:
    113
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    margin: 0 auto with CSS

    Example....

    <div id="page-wrap"></div>

    CSS

    div#page-wrap {
    margin: 0 auto;
    }

    That will center your page wrap and anything inside that page wrap!
     
    creationboy, Jul 23, 2007 IP