![]() |
|
|
How To Center Your Website |
|
Super Moderator
![]() Posts: 5,526
Location: Tennessee
|
With CSS solutions of course. This question comes up constantly, so here are links to several resources specific to this issue:
HORIZONTAL CENTERING http://www.maxdesign.com.au/presentation/center/ http://bluerobot.com/web/css/center1.html http://www.simplebits.com/notebook/2...centering.html http://www.andybudd.com/archives/200...ntering_a_div/ http://css-discuss.incutio.com/?page...ngBlockElement http://allmyfaqs.net/faq.pl?Center_with_CSS VERTICAL CENTERING http://www.hicksdesign.co.uk/journal...ering-with-css http://www.jakpsatweb.cz/css/css-ver...-solution.html http://tutorials.alsacreations.com/centrer/
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !! "Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday" |
|
|
|
| Sponsored Links (We share ad revenue): |
|
|
Re: How To Center Your Website |
|
Ultra Talker
Latest Blog Post:
Bloom Where You Are Posts: 328
Name: Douglas Adams
Location: Kalkaska Michigan
|
I have often been in need of this information.
Thanks
__________________
Technology Blog | Political Blog | Health Blog | Alternative Health News | Home Based Business News | Weight Loss Blog | Gold Medal Gourmet Extracts |
|
|
|
|
|
Re: How To Center Your Website |
|
Webmaster Talker
Posts: 512
Name: Barry O' Brien
Location: Ireland
|
or simply use this
} #container { margin:0 auto; width:860px; bottom:0; } |
|
|
|
|
|
Re: How To Center Your Website |
|
Extreme Talker
Posts: 185
|
Thank you.
Some of those were quite hard to follow but I found this one the easiest for centering a DIV in the middle of a page - horizontal and vertical.
__________________
JF Web Design |
|
|
|
|
|
Re: How To Center Your Website | ||
|
Average Talker
Posts: 19
|
Quote:
Quote:
HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
HTML Code:
#container {
margin: 0 auto;
width: 960px;
}
|
||
|
|
|
|
|
Re: How To Center Your Website |
|
DEAD Good Coder
Posts: 1,091
Name: Stefan
Location: London, UK
|
But still, she said
"its not ALWAYS" meaning most of the time it will work.
__________________
Offering Website Design Worldwide, please visit my website |
|
|
|
|
|
Re: How To Center Your Website |
|
Novice Talker
Posts: 5
Name: John Rosa
|
thanks again
|
|
|
|
|
|
Re: How To Center Your Website |
|
Average Talker
Posts: 17
Name: Razvan Pavel
Location: Bucharest, Romania
|
thnx a lot. no more googleing on how to center bloody divs
|
|
|
|
| Sponsored Links (We share ad revenue): |
| Thread Tools | |
|
|
| Webmaster Resources Marketplace: |
| Software Development Company | Webhosting.UK.com |
| Web Templates | Text Link Brokers | Stock Photos |