|
|
Froggy
regular
Reg'd: Mon
Posts: 76
|
|
Morning all,
I design webpages in tables at 760px in width. This then shows my website in the centre of the ie window and works on all screen resolutions. The higher the resolution the more white space it will have around the website content.
If i create my website with css (use dreamweaver layers) how can I make is so the page is displayed in the centre just like with the tables? I have adsolute possitioning at the moment and so it displays my site 20px from the top and 20px from the left. How can I make the whole lots look central?
any help or advice would be excellent as not sure on this one and have searched the net with no luck!
thank you all,
|
|
ianm
regular
Reg'd: Fri
Posts: 345
Loc: Colchester
|
|
This is quite easy, give you main div that everything sits inside of an ID of wrapper.
Then add the following css to it
#wrapper { border:1px solid #000; width:760px; margin: 0 auto; }
Cheers
|
Froggy
regular
Reg'd: Mon
Posts: 76
|
|
excellent thank you.
i will try it out now.
so i use it by putting this in the html like call at the top and then at the very end close the div tag?:
<div id="wrapper"> the all my other <div id="textbox">the text</div> </div>
|
Zippy_Brown
regular
Reg'd: Fri
Posts: 88
Loc: /dev/null
|
|
Quote:
<div id="wrapper"> the all my other <div id="textbox">the text</div> </div>
yes, that is correct.
-------------------- Zippy
|
Froggy
regular
Reg'd: Mon
Posts: 76
|
|
thank you thats great. been looking into it for ages hehe simple when you know how.
|