PDA

View Full Version : Apache localhost problem



spetsacdc
Mar 13th, 2009, 12:51 AM
Hi, I am making a webpage using Apache 2.2.9 to test it on my computer. The size of elements on the page mysteriously show up bigger than they are supposed to be. This is my html code:



<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>PTest</title>
</head>
<body>
<div id="1s" style="left: 0pt; top: 123px; background-color: blue; height: 40px; width: 100px;" class="sep_horiz">
</div>
<img src="test_100.gif" />
</body>
</html>

The image is 100 pixels wide (I made it in photoshop), and the div is set to 100px wide.

If I access the page by simply opening the file, then the sizes are ok. But, if I access it through the localhost (apache server I have set up), everything is bigger...I have no idea what is wrong.

Here is a picture:

http://i240.photobucket.com/albums/ff202/spetsacdc/apache_prob.jpg

note: the blue box is the div and the grey rectangle with a red line is the image. I painted the grey rectangle 99px and the line is 1px so the total width should be 100px

spetsacdc
Mar 13th, 2009, 12:59 AM
IE, Opera, and Chrome display it correctly as 100px even through my apache server. I'm still not sure how to fix it in firefox though.

spetsacdc
Mar 13th, 2009, 01:32 AM
I reinstalled firefox and it fixed it. I think some plugin I had was causing it.

_Aerospace_Eng_
Mar 13th, 2009, 04:41 AM
You probably went to View > Zoom > Zoom In.

Apostropartheid
Mar 14th, 2009, 12:56 AM
You probably went to View > Zoom > Zoom In.
Maybe he's secretly Igor Levicki (http://www.codingforums.com/showthread.php?p=793098#post793098)? =P