View Full Version : Content Alignment
Mitzi
07-25-2000, 04:32 PM
I have noticed alot of proffesional sites like your own and another one I found (www.anycelebrity.com) The full content of the page is centered in the middle of the page and stays like this when the screen resoloution is changed. This would be very useful for me to do so please please please tell me!!!!!!
Thanx
------------------
/\ \|/___
_\/_ Mitzi ___|_)
/_/\_\ ( ))
jalouda
07-25-2000, 05:17 PM
hi mitzi,
as far as i know, the secret is just to plonk your page content in a table and then centre the table. i don't know how much you know about tables or html. assuming you know a little, if your page layout doesn't use a table at the moment, you just need to make a one row, one cell table. so basically you do something like this:
<center>
<table>
<tr><td>
***all the page content (between the opening and closing parts of the body tag) goes here***
</td></tr>
</table>
</center>
you can set the width of your table in absolute (pixel) terms or relative (%) terms. if you set it in pixels, the centred table content will always occupy the same space. if you set a % of the screen width, then the centred content will always fill that proportion of the screen and so will stretch and shrink with resolution settings.
if you haven't a clue about html or tables, then all of the above is probably gobbledygook!! don't worry, the friendly folk here will explain everything heaps more - all you need to do is ask http://talkboard.123webmaster.com/ubbhtml/smile.gif
------------------
~jalouda~
moderator 123webmaster (http://www.123webmaster.com)
* jalouda@iol.ie
* http://www.geocities.com/jaloudasworld/
Mitzi
07-26-2000, 09:58 AM
Thanx Alot.
You've helped loads!
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.