View Full Version : centering a website


Penny_Lane
03-16-2003, 06:07 PM
Hello,
I'm pretty advanced in HTML but I cannot, for the life of me figure this one out..
How can I make my websites look centered in all browsers. I have IE and when I build my sites they look all centered but when I view them from my friend's laptop (she has aol) everything is off to the left. Depending on whet computer I use, the sites are centered differently. Is there a code I can use for universal centering?

MaGiCSuN
03-16-2003, 06:22 PM
put <center> BEFORE all the content (so the best is right after <body>) and put </center> AFTEr all the content. So like this:

<body>
<center>
stuff here
</center>
</body>

this is just a part of the code... it should work. If you want to have everything stick together and THEN to be centered, then try to put everything in a table and then center the table with the code above, so instead of "stuff here" you put the <table> code there :)

Love,
Mirna