Current location: Hot Scripts Forums » Other Discussions » Other Topics » Web Design » Centering webpages on all size monitors and browsers


Centering webpages on all size monitors and browsers

Reply
  #1 (permalink)  
Old 01-27-11, 04:20 AM
walter801 walter801 is offline
Newbie Coder
 
Join Date: Dec 2010
Location: London
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Centering webpages on all size monitors and browsers

Hello,

I need HELP please. I designed a website, the website is well placed and centered in my laptop. But when I viewed it in other systems, the page moved to one side, hence for you to see the whole page, u have to scroll to one one side of the website.

I have tried so many ways in order to resolve this issue but to no avail.

please I need HELP
Reply With Quote
  #2 (permalink)  
Old 01-27-11, 04:31 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
Can you post your code, or a link to your website? It's really hard for us to solve a problem without seeing the actual code
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
  #3 (permalink)  
Old 01-27-11, 05:22 AM
walter801 walter801 is offline
Newbie Coder
 
Join Date: Dec 2010
Location: London
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Reply With Quote
  #4 (permalink)  
Old 01-27-11, 06:39 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
try setting the margin to "0 auto", like this:
Code:
margin:0 auto
That way the div should be positioned automatically to the center of the screen
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
  #5 (permalink)  
Old 01-28-11, 03:34 AM
walter801 walter801 is offline
Newbie Coder
 
Join Date: Dec 2010
Location: London
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks for your help. I did it and it seem to work. But please why are the pages JUMPING?
Reply With Quote
  #6 (permalink)  
Old 01-28-11, 04:29 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
I have no idea what you mean. I just checked your site again, and as far as I can see, nothing has changed to the css
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 01:23 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.