How do I center this page?

Discussion in 'General Business' started by Frostx, Aug 23, 2009.

  1. #1
    I have no idea how to ge my page to the center of the screen., Check it out
    http://bfgames.info
     
    Frostx, Aug 23, 2009 IP
  2. MYND

    MYND Active Member

    Messages:
    136
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    60
    #2
    Tables? *pff*

    Add margin: 0 auto; to either in the table element or in stylesheet (style.css).

    Add this rule in your style.css (i.e. bfgames.info/templates/wolvie3/style.css)
    
    table { 
    margin: 0 auto;
    }
    Code (markup):
    OR

    Find:
    <table width="1000" cellpadding="0" cellspacing="0" valign="top">
    Code (markup):
    Replace with:
    <table width="1000" cellpadding="0" cellspacing="0" valign="top" style="margin:0 auto;">
    Code (markup):
     
    MYND, Aug 23, 2009 IP
  3. Frostx

    Frostx Active Member

    Messages:
    722
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    80
    #3
    Hmmm, well I couldn't find the code you said to find and I tried adding the top code and it didn't work...... any other ideas?
     
    Frostx, Aug 23, 2009 IP
  4. MYND

    MYND Active Member

    Messages:
    136
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    60
    #4
    Where did you add the css rule (top code)? I can't see it in the template stylesheet.
     
    MYND, Aug 23, 2009 IP
  5. Frostx

    Frostx Active Member

    Messages:
    722
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    80
    #5
    I took it back out, where should I add it?
     
    Frostx, Aug 23, 2009 IP
  6. MYND

    MYND Active Member

    Messages:
    136
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    60
    #6
    Anywhere in the stylesheet, it doesn't really matter.

    Find:
    img {
      border: 0;
    }
    
    Code (markup):
    After add:
    
    table { 
    margin: 0 auto;
    }
    
    Code (markup):
    (keep the code even if it doesn't work)

    About where would you find the line I post earlier, it'd be most likely in index or header file (depends, I haven't used AV Arcade). But if you get the stylesheet code to work, you won't need to do that.
     
    MYND, Aug 23, 2009 IP
  7. Frostx

    Frostx Active Member

    Messages:
    722
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    80
    #7
    Still nothing....
     
    Frostx, Aug 23, 2009 IP
  8. MYND

    MYND Active Member

    Messages:
    136
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    60
    #8
    Probably because the rule still isn't in the stylesheet. lol, I'm certain you are adding the code in wrong file. Your current stylesheet is located in /templates/wolvie3/style.css web directory.

    If you had took it back again, just do not and keep the code, otherwise It won't be possible to see what exactly is wrong.
     
    MYND, Aug 23, 2009 IP
  9. Frostx

    Frostx Active Member

    Messages:
    722
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    80
    #9
    I have been putting everything exactly where you tell me too but if it doesn't work I see no reason to keep the clutter....... it does nothing to my site
     
    Frostx, Aug 23, 2009 IP
  10. MYND

    MYND Active Member

    Messages:
    136
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    60
    #10
    I only asked to keep the "clutter" temporary so I could see what exactly is wrong with the code, because the same code does work when I debug your site, at least it does on FF and IE7.

    Never mind, it may be just not working if you say so. Try adding a DIV wrap after the <body> tag, before the first table, then set a css rule for the DIV with margin:0 auto; (auto-margins works well for centres block-level elements) or set percentage values for width and margin (left & right).
     
    MYND, Aug 23, 2009 IP
  11. Frostx

    Frostx Active Member

    Messages:
    722
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    80
    #11
    Thanks for all your help, will work on it.
     
    Frostx, Aug 23, 2009 IP