# Keeping content centred

**URL:** <https://forum.kirupa.com/t/keeping-content-centred/173114>\
**Category:** web dev\
**Created:** [December 21, 2005, 10:54am UTC](https://forum.kirupa.com/t/keeping-content-centred/173114 "2005-12-21T10:54:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gt\_so\_dumb\_lt](https://avatars.discourse-cdn.com/v4/letter/g/258eb7/32.png) [@gt\_so\_dumb\_lt](https://forum.kirupa.com/u/gt_so_dumb_lt)\
**Post date:** [December 21, 2005, 10:54am UTC](https://forum.kirupa.com/t/keeping-content-centred/173114/1 "2005-12-21T10:54:46Z")

</div>

howcan i make my websites content centred on the page, no matter what screen size the visitor has? i want it so that if the visitor is using a wider screen than i am, the content will stay the same size, and stay centred on the screen, and just the background colour either side.

Is this done by using layers on so many %?

thx
