Pakistan IT Forum (Discuss Information Technology in Pakistan)
News: Boards and Categories have been modified. Please post your Feedbacks and Suggestions.
 
*
Hi, Guest. Welcome to IT Forum of Pakistan, Please login or register. January 07, 2009, 06:22:56 AM


Login with IT Forum's username, password and session length


Pak IT forum is launched to provide Pakistan's IT community with a platform to discuss IT related issues. These IT related discussions are proved to be useful for other Pakistani people. Information Technology in Pakistan is hottest issue on IT related forums. We hope that serious Pakistani people will join this IT Forum and will let us know about their experience in order to boast Pakistan's Software Exports.

Pages: [1]
  Print  
Author Topic: Auto resize webpage to users display  (Read 1215 times)
M_Farooq
Newbie
*
Posts: 8


View Profile
« on: May 30, 2007, 07:13:14 PM »

Hi
How do I auto resize a webpage to users display settings?

Could you please help?
Logged
Fahad_soft
Newbie
*
Posts: 24


View Profile
« Reply #1 on: May 30, 2007, 07:13:41 PM »

Do you really want to do that ? I don't think that any user would like having his browser resized.
Logged
M_Farooq
Newbie
*
Posts: 8


View Profile
« Reply #2 on: May 30, 2007, 07:13:54 PM »

No I dont want to resize the users browser. my website was developd in a 800x600 pixel screen. The user may have their screens set to 1024x768 and i would like the website to be displayed at these settings.
Logged
extreme.aly
Newbie
*
Posts: 8


View Profile Email
« Reply #3 on: June 10, 2007, 01:26:14 PM »

set the body margins to 0px and create a table right after the <body> tag and set the width of the table to 100%. like this:
Code:
<html>
<head>
<title>your title</title>
<style>
body {
 margin-right: 0px;
 margin-left: 0px;
 margin-top: 0px;
 margin-bottom: 0px;
}
</style>
</head>
<body>
<table width="100%">
<tr>
<td>
// your content
</td>
</tr>
</table>
</body>
</html>
Logged
Mr.Bugz
Newbie
*
Posts: 29


xstrem_ice
View Profile WWW Email
« Reply #4 on: June 11, 2007, 08:05:31 AM »

Tongue CSS |0ver Cheesy
Logged

khurrams
Newbie
*
Posts: 6


Khurram S.


View Profile
« Reply #5 on: June 20, 2007, 12:43:43 PM »

Use tables width in % instead of Pixel.e.g.

<table width="100%">...</table>
Logged
Pages: [1]
  Print  
 
Jump to:  


Powered By: comsdev Partners