Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Jun 2010
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question Align In Center (Not So Simple)

    Hey, Sup?, I Have A Weird Glitch where I haft to make to where I have a Table Thatis 100% in Width and 100% in Height, but the only problem is, is that when I insert another table and on that Table And It Has Style="Display: block;" it's stuck on the top left, this happens in: safari, firefox, opera ect. the only one where it stays in the center is internet explorer (7)
    You See I Have Figured out how to center things with display: Block; but you can't have a CSS Value It has to be <table height="200" width="200"> not height: 100% width: 100%
    So How Would You Center it In CSS?
    Ask If You have Any Questions

    P.S. Div Align Center Dosn't Work, Margin-left, Right Dosn't Work, And I Don't Know What To Do

  • #2
    Regular Coder
    Join Date
    Aug 2005
    Location
    MS
    Posts
    845
    Thanks
    11
    Thanked 79 Times in 77 Posts
    Usually to center any container, you set the width LESS than 100% and then use:

    margin: 0 auto;
    ☠ ☠RON☠ ☠

  • #3
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #4
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,863
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    but the only problem is, is that when I insert another table and on that Table And It Has Style="Display: block;" it's stuck on the top left,
    Seems like you are misusing the table tags for making your layout?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #5
    New to the CF scene
    Join Date
    Jun 2010
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by abduraooft View Post
    Seems like you are misusing the table tags for making your layout?
    Hmmmm... What Do You Suggest? should I make a class that has "Display:Block;"?

  • #6
    Regular Coder
    Join Date
    Aug 2005
    Location
    MS
    Posts
    845
    Thanks
    11
    Thanked 79 Times in 77 Posts
    Not suggesting a totla redesign of pages, but thought you might like the information these provides if you wanted to make your pages without tables:

    Tableless Web Design: http://en.wikipedia.org/wiki/Tableless_web_design
    Why tables for layout is stupid: http://www.hotdesign.com/seybold/
    How to convert manually your HTML tables to CSS: http://www.table2css.com/articles/co...-tables-to-css
    Images, Tables, and Mysterious Gaps: https://developer.mozilla.org/en/Ima...ysterious_Gaps
    ☠ ☠RON☠ ☠


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •