View Full Version : Apache localhost problem

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">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div id="1s" style="left: 0pt; top: 123px; background-color: blue; height: 40px; width: 100px;" class="sep_horiz">
<img src="test_100.gif" />

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:


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

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.

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

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

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