Results 1 to 5 of 5

Thread: need help in css

  1. #1
    Join Date
    Nov 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default need help in css

    hi,

    https://graphicalsystemsusa.com/contest/contest.aspx

    this link is working properly in all browser except than IE 7.0

    plz help me to adjust table in center, thanks

  2. #2
    Join Date
    Jan 2007
    Location
    Bournemouth, England
    Posts
    99
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Is the form and the bar down the right hand side in the table, or in a div?

  3. #3
    Join Date
    Mar 2007
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    If you want the table to be placed in the center then you could either use the old HTML way of using the center tag before the table or you could use the new XHTML way placing a div before the table like this:

    HTML Code:
    <div style="text-align:center;"><table>....</table></div>

  4. #4
    Join Date
    Jun 2006
    Location
    Acton Ontario Canada.
    Posts
    677
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    Thats only for text, not block elements.
    this:
    <table style="margin:0 auto;">
    - Ryan "Boxxertrumps" Trumpa
    Come back once it validates: HTML, CSS, JS.

  5. #5
    Join Date
    Mar 2007
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by boxxertrumps View Post
    Thats only for text, not block elements.
    this:
    <table style="margin:0 auto;">
    Adding margin:0 auto; along with the text-align:center; css can align just about anything to the center.

Bookmarks

Posting Permissions

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