Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

why my container display different of size from different computer? 2

Status
Not open for further replies.

dldl

Programmer
May 3, 2010
40
NZ
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "<html>
<head>
<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=utf-8">
<style type="text/css">
html head{
border:0;
padding:0;
margin:0;

}
body{
padding:0;
border:0;
margin:0;
background-color:#CCCCCC;
}

#container {
position: relative;
width:1200px;
height:750px;
border:0;
padding: 0;
margin-top:40px;
margin-bottom:auto;
margin-left:auto;
margin-right:auto;
background-color:#FFFFFF;
}
</style>
</head>
<body>

<div id="container">
The new Prime Minister's personal support is still firming though.

Polling of 1500 people by Auspoll early last week showed she has a 45 per cent approval rating, an 18 per cent disapproval rating and a whopping 37 per cent have reserved their judgment.

The polling was taken before the asylum issue blew up in the Government's face.

Labor's election planning has been brought forward by the rise of Ms Gillard as leader.

A senior Labor source confirmed last week that former prime minister Kevin Rudd had been planning a late election, which was expected in about October.

Among a series of announcements last week that have been widely interpreted as a clearing of the decks was a decision to axe the Green Loans program and put the Government's controversial internet filter on hold for a year.

Even on social issues Ms Gillard appears to be travelling well. Her much publicised early admission that she does not believe in God is not troubling many voters.

The Auspoll survey found that having an atheist Prime Minister was of no consequence to 62 per cent of people, 20 per cent said they actively support a PM who does not believe in God while less than 18 per cent were opposed.


</div>

</body>
</html>
 
Can you explain in a little more detail as to what is different size, on which browsers and at which screen resolutions. Given the code, I would expect a 1200 by 750 px container that is centered across a larger screen.

[small]Do something about world cancer today: Comprehensive cancer control information at PACT[/small]
 
At different resolutions the container may seem smaller or larger.

If your other computer has a resolution of 1600 * 900 the container is likely going to look smaller (it will have more space to either side) than in a computer with a resolution of 1200 * 1024.

----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Behind the Web, Tips and Tricks for Web Development.
 
Thanks guys.

In my computer, i tested it with different browser, it sit in the center of the computer, but in my friend of computer, he just can see 2/3 of the container.
 
Likely his resolution is smaller. Considering your container is quite large at 1200px wide, if he has a resolution of say 1024 * 768 which is quite normal, he'll only see a fraction of your container, and have to scroll for the rest.

----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Behind the Web, Tips and Tricks for Web Development.
 
so i have to set the value less than 1024*768 ?
is it the only way i can do ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top