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?
| SitePoint Sponsor |
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?
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.
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,

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