IE Pixel Bug  | |
February 1st, 2007, 11:21 PM
|
#1 (permalink)
| | Member
Join Date: Aug 2003
Posts: 91
|
EDIT: Some people couldn't see the pics, so I re-hosted them somewhere else. Thanks for letting me know!
I'm working on a website using css to lay everything out. I'm somewhat aware of that 3-pixel bug in IE, and my problem seems to be fairly similar. My layout looks fine in firefox; however, in IE my layout is off by 4 pixels.
Anyways, I captured a few pics to illustrate my problem and see if anyone has any suggestions:
So, here is a pic of the site in Firefox: 
The banner at the top is 900 pixels. I have the div that encapsulates the border and everything else set to 904 pixels. The little gray strip under the banner is to just show where the image ends (I'll eventually have buttons going across there).
Now, here is a pic in IE:
Now, remember, I still have the width set to 904! And, again, the banner at the top is 900 pixels.
So, IE is chopping off 4 pixels. Does anyone have a clue why this is happening?
Thanks for any help!
Last edited by Bootlegger : February 2nd, 2007 at 03:19 AM.
|
| |
February 2nd, 2007, 12:35 AM
|
#2 (permalink)
| | Ultimate Member
Join Date: Oct 2001
Posts: 2,710
|
For some reason the pic using internet exploder isn't loading for me in IE or firefox. Anyone else? I even went to imageshack to look at it directly and I get nothing.
__________________ How come Sour Cream can expire? |
| |
February 2nd, 2007, 02:08 AM
|
#3 (permalink)
| | Member
Join Date: Jan 2006 Location: Texas, Y'all.
Posts: 139
| Quote:
Originally Posted by batmeat For some reason the pic using internet exploder isn't loading for me in IE or firefox. Anyone else? I even went to imageshack to look at it directly and I get nothing. | I can see it.
Unfortunately I don't have an answer for him...
And, off topic, I wonder if the spelling of peak like a mountain instead of peek like look is intentional?
Nice pun, if peak is in the business name. 
Really though.. only replied just to say I could see the picture. |
| |
February 2nd, 2007, 02:26 AM
|
#4 (permalink)
| | Member
Join Date: Aug 2003
Posts: 91
| Quote:
Originally Posted by daedreem I can see it.
Unfortunately I don't have an answer for him...
And, off topic, I wonder if the spelling of peak like a mountain instead of peek like look is intentional?
Nice pun, if peak is in the business name.
Really though.. only replied just to say I could see the picture. | Oh, geez! Those dang homonyms, I tell ya. It is, by no means, intentional that I spelled "peek" that way. Hey, although I haven't figured out my pixel dilemma, at least I have now learned to spell correctly! Thanks! |
| |
February 2nd, 2007, 02:31 AM
|
#5 (permalink)
| | Member
Join Date: Jan 2006 Location: Texas, Y'all.
Posts: 139
| Quote:
Originally Posted by Bootlegger Oh, geez! Those dang homonyms, I tell ya. It is, by no means, intentional that I spelled "peek" that way.  Hey, although I haven't figured out my pixel dilemma, at least I have now learned to spell correctly! Thanks! | LOL
I wondered..
I figured if it WASN'T intentional, that was good information for you to get.. even off-topic. 
Homonyms will get ya every time. 
Now.. good luck with your real question!! lol |
| |
February 2nd, 2007, 03:12 AM
|
#6 (permalink)
| | It's the cheese guy! ¬_¬;
Join Date: Aug 2003 Location: Gateshead U.K.
Posts: 9,167
|
__________________
No man's life, liberty, or property are safe while the legislature is in session. --Mark Twain (1866)
Last edited by paul9 : February 2nd, 2007 at 03:15 AM.
|
| |
February 2nd, 2007, 03:54 AM
|
#7 (permalink)
| | Member
Join Date: Aug 2003
Posts: 91
|
Well, I found a "fix" that I wasn't aware of. I'm not too fond of fixes, as I'd rather do things correctly, so if anyone has any input as to why this problem is occurring, I'm very interested to hear.
Anyways, in my CSS file, I used the correct width (900) assignment for Firefox, followed by the '*' to define the width in IE (904). Code: #encapsall {
width: 900px;
*width: 904px;
margin: 0 auto; /*Firefox center*/
.
.
.
Last edited by Bootlegger : February 2nd, 2007 at 04:59 AM.
|
| | | Thread Tools | Search this Thread | | | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |