# Centerising site content?

**URL:** <https://forum.kirupa.com/t/centerising-site-content/14393>\
**Category:** Uncategorized\
**Created:** [February 25, 2003, 8:38pm UTC](https://forum.kirupa.com/t/centerising-site-content/14393 "2003-02-25T20:38:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ambrosia](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@Ambrosia](https://forum.kirupa.com/u/Ambrosia)\
**Post date:** [February 25, 2003, 8:38pm UTC](https://forum.kirupa.com/t/centerising-site-content/14393/1 "2003-02-25T20:38:59Z")

</div>

What do I need to add into my code so that every time an user resizes his/her browser window, the image or the contens would always stay centericed?  
Check this site to see what I mean:

[http://www.samurina.com](http://www.samurina.com)

I have tried the following code (with \< and \> marks) but it only works if I don`t use any layers in my page.

body bgcolor="#FFFFFF"  
div align=“center”  
My content  
/div  
/body

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 26, 2003, 2:17pm UTC](https://forum.kirupa.com/t/centerising-site-content/14393/2 "2003-02-26T14:17:07Z")

</div>

i think it should work if you just stick the whole thing in one large table with that table aligned to center… that way i believe your layers should always assume the top-left corner is its 0,0 and go from there.

So…

[table align=“center”]  
[tr][td]

…ALL your body content here…

[/td][/tr]  
[/table]

i think i actually ran into this problem with one of my older pages so if this doesn’t work just let me know and i’ll go check it out. (It’s way back in the archives so i’d prefer to take an educated guess first … lol)

:love: ~ Seretha

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 26, 2003, 2:22pm UTC](https://forum.kirupa.com/t/centerising-site-content/14393/3 "2003-02-26T14:22:19Z")

</div>

You can also create a table that is 100% in width and in height!

:beam:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 26, 2003, 2:36pm UTC](https://forum.kirupa.com/t/centerising-site-content/14393/4 "2003-02-26T14:36:51Z")

</div>

yea i wasn’t too sure if i had put that in my previous table…it makes sense tho seeing as it would take the up the full space available…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 26, 2003, 3:35pm UTC](https://forum.kirupa.com/t/centerising-site-content/14393/5 "2003-02-26T15:35:10Z")

</div>

this question’s been asked a lot… do your self a favour and search the next time 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 26, 2003, 9:00pm UTC](https://forum.kirupa.com/t/centerising-site-content/14393/6 "2003-02-26T21:00:29Z")

</div>

Thank you all for help! I don`t have much experience about tables, but I guess I`ll have to learn. I tested it and it worked fine.  
(-:
