Home   News  Product reviews  Website reviews  Forums   Competitions  Subscribe 


Web Building >> Web design & build
 |  Print Topic
Jump to first unread post. Pages: 1
Froggy
regular


Reg'd: Mon
Posts: 76
css positioning
      #385378 - Wed Feb 20 2008 11:34 AM

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,


Post Extras: Print Post   Remind Me!   Notify Moderator  
ianm
regular


Reg'd: Fri
Posts: 345
Loc: Colchester
Re: css positioning [Re: Froggy]
      #385397 - Wed Feb 20 2008 02:50 PM

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


Post Extras: Print Post   Remind Me!   Notify Moderator  
Froggy
regular


Reg'd: Mon
Posts: 76
Re: css positioning [Re: ianm]
      #385433 - Wed Feb 20 2008 07:24 PM

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>


Post Extras: Print Post   Remind Me!   Notify Moderator  
Zippy_Brown
regular


Reg'd: Fri
Posts: 88
Loc: /dev/null
Re: css positioning [Re: Froggy]
      #385436 - Wed Feb 20 2008 07:32 PM

Quote:

<div id="wrapper">
the all my other <div id="textbox">the text</div>
</div>




yes, that is correct.

--------------------
Zippy


Post Extras: Print Post   Remind Me!   Notify Moderator  
Froggy
regular


Reg'd: Mon
Posts: 76
Re: css positioning [Re: Zippy_Brown]
      #385453 - Wed Feb 20 2008 08:24 PM

thank you thats great.
been looking into it for ages hehe simple when you know how.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1

Rate this topic

Jump to


Extra information
0 registered and 2 anonymous users are browsing this forum.

Moderator:  putasolutions, Joe_London, greysts, bricat, Nanook, Hello_There, John_McKenna, Mouse, TheFatControlleR 


Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      Mark-up is enabled

Rating:
Topic views: 0

Contact Us | Privacy statement Main website