English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Or maybe a comprehensive study of the relative part of the div tag? So you can make a constntly centers webpage- such as yahoo.

2006-12-01 06:07:44 · 4 answers · asked by Everything you know is wrong 5 in Computers & Internet Programming & Design

4 answers

Here is the cleanest way to do this is. Paste the code below into the of your document:



Paste the code below into the of your document:

Blah blah blah


The 'auto' margin tells the div to center within the window. You can set the width of #container to whatever you would like. I used 770px for example purposes.

2006-12-01 07:21:09 · answer #1 · answered by SAW 2 · 0 0

Put this CSS at that page.

body { margin:50px 0px; padding:0px; text-align:center; }

If you built your site with table structure then use align="center" at the table tag.

Thanks

2006-12-01 06:15:08 · answer #2 · answered by Stranger 3 · 0 0

Yes, check out this site:
http://www.maxdesign.com.au/presentation/center/

2006-12-01 06:11:01 · answer #3 · answered by Yoi_55 7 · 0 0

Try adding these to your margin code: margin-left: auto; margin-right: auto;

2016-05-23 08:10:35 · answer #4 · answered by ? 4 · 0 0

fedest.com, questions and answers