Question:
How can I center my webpage?
kUsHmAn
2008-10-22 11:18:45 UTC
I'm trying to center my webpage (hazecityfabrication.com).

I don't know how.. I'm using a site builder... first time building a site, how can I center this site.?
Seven answers:
2008-10-22 15:54:13 UTC
You are using absolute positioning and unless you have already compensated for the different browser window sizes people may use, centering your page is not going to make one whit of difference.



#centerwrapper {

width:760px;

margin: 0 auto;

text-align: center;

}



Don't pay attention to these people saying to use the center tag. Soooo outdated.



Ron
Tom
2008-10-22 11:28:04 UTC
I have a pretty large monitor and when I open my browser window all the way I can see some vertical lines over on the right side of your website. Maybe if you get rid of those it will be center(?)

Also try contacting your web host...I'm sure they get these kinds of questions all the time.
2008-10-22 11:34:24 UTC
It should be pretty easy to center it if you use Adobe Dreamweaver.



delete the last line (table) then slect the whole website and click "align = center"
David Nuttall
2008-10-22 11:32:17 UTC
To centre horizontally, you can use the align=center attribute in most tags.



e.g.

Centred Text



To vertically center, you can use a style code





Victoria's Vertical Centering - Test Page







Vertically centered paragraph









Check out the link below for more information.
Lyndon Dennis
2008-10-22 11:25:16 UTC
stuff


or

[center] stuff [/center]

or there would be a button there that you can click on to center selected stuff...



stuff=anything you want to center
lalala
2008-10-22 11:22:05 UTC
sight info/text
2016-03-18 04:08:42 UTC
My webpage
If you wanted to make it XHTML compliant you can use CSS (i.e. text-align or float properties)


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...