SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Mar 2007
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    table alignment!!!

    Hi,
    I want to use a photo as a background. I use dreamweaver 8. I want to design page in the middle and the center.
    you think the best way to use table?
    I can align table center but not middle.
    Is there any way to align in the middle?

  2. #2
    CSS & JS/DOM Adept bronze trophy
    Join Date
    Mar 2005
    Location
    USA
    Posts
    5,482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Firstly, I suggest you learn how semantics apply to X/HTML. Semantics is really a very important subject when it comes to X/HTML.

    By middle I assume that you want to vertically and horizontally center the content of your page.

    Center Page Content Horizontally and Vertically (without <table>s)
    Center Page Content Horizontally and Vertically (with a <table>)
    We miss you, Dan Schulz.
    Learn CSS. | X/HTML Validator | CSS validator
    Dynamic Site Solutions
    Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.

  3. #3
    SitePoint Member
    Join Date
    Mar 2007
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,
    Sorry, I'm new, and I don't know codes yet.
    I checked the "Center Page Content Horizontally and Vertically (without or with a <table>s)" I did not really understand:-(
    I will make the web page 1024*560px width and height. I want that this page is going to fit automatically, vertically and horizontally center on the 1280px or bigger screen resolution.
    (horizontally center is ok but I cant make vertically center).
    I think, I should use table, because I want to put a photo as a background.
    Thanks,

  4. #4
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,799
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Unless you have tabular data you shouldn't use a table. Also you shouldn't try to dictate browser sizes - your visitors will set their browser size to suit themselves. My dead centre script at <snip> uses less code than the example above to achieve the same result.
    Last edited by AutisticCuckoo; Mar 30, 2007 at 04:40. Reason: Self-promotion is not allowed
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


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
  •