October 23, 200916 yr A friend of mine asked me to make him a web site; since I'm really new at this I said I'll give it try. Now I have a problem I made the site on my pc with 22" screen and when I open it it looks fine. But when I open it on the laptop with 15" screen the whole page is shifted to the left with 1/3 of the screen empty ( just the background color ). So how do I make the page to be in the center of the screen no mater what size it is; and to allways be over the entire screen. For egz. like this page. Pls if someone knows; as I said I'm totally new at this so if you can explain it with a little more details. TY in advance. P.S. I'm using NetObjects Fusion P.P.S. I dunno anything ( or close to nothing ) about HTML or CSS
October 23, 200916 yr Learn HTML & CSS. Thats not going to help in the meantime though is it? Anyway, if you can give us a link, we will be able to tell you whats going wrong
October 24, 200916 yr Did you put a left margin or padding in your css to make it 'look' centred in your screen? That would push the site in on smaller screens. Normally to centre a site you'd just have a #wrapper div around your content and then in your css give it a width and margin: 0 auto; #wrapper {width: 900px; margin: 0 auto} <body> <div id ="wrapper"> <p>your content</p> </div> </body>
October 24, 200916 yr How to center your site: http://www.webdesignerforum.co.uk/topic/2473-how-to-center-a-site-using-css/
October 25, 200916 yr Author http://apartmani-pinezici.com/ This is sort of a demo version of the site, not even close to the final version. Just to see how it works
Create an account or sign in to comment