Page view problem

website page is not in center..

Page 1 of 1

6 Replies - 692 Views - Last Post: 26 August 2009 - 04:00 AM

#1 afridi2129  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 66
  • Joined: 04-November 07

Page view problem

Posted 25 August 2009 - 06:05 PM

hi there... this is a simple website i designed in a few hours for a friend ... now if i saw it on lcd screen it show page on most left side.. if monitor then its ok.. how can i fix it.. how can show page in center ... weather it is viewed on lcd or whtever...thanx

www.jrs.com.pk

see this...
Is This A Good Question/Topic? 0
  • +

Replies To: Page view problem

#2 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1642
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Page view problem

Posted 25 August 2009 - 06:08 PM

You need to use CSS to center the content, so this has nothing to do with ASP.NET. Moved to HTML & CSS :)
Was This Post Helpful? 1
  • +
  • -

#3 afridi2129  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 66
  • Joined: 04-November 07

Re: Page view problem

Posted 25 August 2009 - 06:11 PM

/*CSS to BODY TAG*/
body{
text-align:center;
}

u mean this thing...
Was This Post Helpful? 0
  • +
  • -

#4 W3bDev  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 42
  • View blog
  • Posts: 379
  • Joined: 15-March 09

Re: Page view problem

Posted 25 August 2009 - 06:11 PM

You can also place the <center></center> tag around code... I often do this for primary content, then use the text-align property to justify the text.
Was This Post Helpful? 0
  • +
  • -

#5 afridi2129  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 66
  • Joined: 04-November 07

Re: Page view problem

Posted 25 August 2009 - 06:14 PM

ok thanx people for such a fast reply:)
Was This Post Helpful? 0
  • +
  • -

#6 W3bDev  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 42
  • View blog
  • Posts: 379
  • Joined: 15-March 09

Re: Page view problem

Posted 25 August 2009 - 06:14 PM

View Postafridi2129, on 25 Aug, 2009 - 05:11 PM, said:

/*CSS to BODY TAG*/
body{
text-align:center;
}

u mean this thing...



Yes, that will work, but not in mozilla style browsers, you must do text-align:-moz-center; for those...
Was This Post Helpful? 1
  • +
  • -

#7 przemass  Icon User is offline

  • D.I.C Head

Reputation: 30
  • View blog
  • Posts: 166
  • Joined: 18-July 09

Re: Page view problem

Posted 26 August 2009 - 04:00 AM

Try to change
<div style="z-index: 101; left: 38px; width: 888px; position: relative; top: -2px; height: 973px; text-align: justify;">


to
<div style="z-index: 101; left:0; width: 888px; position: relative; top: -2px; height: 973px; text-align: justify; margin:0 auto">


Was This Post Helpful? 0
  • +
  • -

Page 1 of 1