Forums | MacLife
You are not logged in.
#1 2007-09-20 4:29 pm
- penguinsocks
- thirteen cent pinball
- From: Vancouver, BC
- Registered: 2005-08-04
- Posts: 78
- Website
Two different computers rendering site differently
Hi guys,
Non-programmer here again. This is a PC topic, I'll warn you, but I didn't know where else to ask and as Mac fans you may be more likely to stumble across this problem while testing.
A site I've built is working nicely in FF for PC, IE 6 and IE 7, and obviously the Mac browsers. I've done all my PC testing in the studio. I noticed just recently, however, that in FF/Win and IE6 on my boyfriend's PC that the menu bar is positioned wrong -- too high in the window. It doesn't do this at work. Both use XP, and the home machine is probably less up-to-date in IE6 if not both. Anyway, can you think of any reason why the rendering would differ? I've heard there are different "builds," but what worries me is that the home PC would be more representative of the average 20 - 30-year-old user (our target audience). Keeping software up to date and whatnot. Which one should I trust?
I can take screen shots when I get home if you need it. Thanks for your help...
so much for having the fastest MBP available.
Offline
#2 2007-09-20 4:44 pm
- TonyPrevite
- Slobbering Jester
- Royal Wombat

- From: Glendale, AZ
- Registered: 2002-04-14
- Posts: 3606
- Website
Re: Two different computers rendering site differently
hrmm, sounds to me like your BF has user prefererences set to something other than default, thus throwing the rendering of stuff off a little bit?
Just a guess without a screenshot to see just how big the difference is.
Offline
#3 2007-09-20 7:28 pm
- penguinsocks
- thirteen cent pinball
- From: Vancouver, BC
- Registered: 2005-08-04
- Posts: 78
- Website
Re: Two different computers rendering site differently
Hmm, I really hope you're right, but that also worries me a bit because it makes the web even MORE unpredictable... bad enough as it is. (Fun stuff.)
I'll take a screen shot and get back to ya.
so much for having the fastest MBP available.
Offline
#4 2007-09-20 7:28 pm
- Light Speed
- Doubter of Einstein

- Registered: 2002-08-17
- Posts: 3694
Re: Two different computers rendering site differently
Did you zero out the browser defaults using CSS?
That usually helps with probwlems like this.
Here is the code:
Code:
html, body, ul, ol, li, p,
h1, h2, h3, h4, h5, h6,
form, fieldset, a {
margin: 0;
padding: 0;
border: 0;
}Different browsers/versions have different defaults which can make it interesting in testing so it helps to set everything back to zero and build from there.
Offline
#5 2007-09-21 11:09 am
- penguinsocks
- thirteen cent pinball
- From: Vancouver, BC
- Registered: 2005-08-04
- Posts: 78
- Website
Re: Two different computers rendering site differently
Hmm, I set a few of those to zero. The only relevant ones I wouldn't have are html and p... could try that. Good chance!
The rendering is consistent between FF and IE, but not between machines, e.g. it almost doesn't seem like the browsers are the problem but I'm not sure.
so much for having the fastest MBP available.
Offline
#6 2007-09-21 11:17 am
- Pithecanthropus
- Roast Master

- From: St. Cloud, MN
- Registered: 2002-12-30
- Posts: 4457
- Website
Re: Two different computers rendering site differently
Light Speed wrote:
Did you zero out the browser defaults using CSS?
That usually helps with probwlems like this.
Here is the code:Code:
html, body, ul, ol, li, p, h1, h2, h3, h4, h5, h6, form, fieldset, a { margin: 0; padding: 0; border: 0; }Different browsers/versions have different defaults which can make it interesting in testing so it helps to set everything back to zero and build from there.
You can get the same effect by having your first line of CSS be
* {margin: 0; padding: 0; border: 0;}
can you not?
Grandfatherly advice: You can drink 'em pretty, but you can't drink 'em smart.
Offline
#7 2007-09-21 1:10 pm
- TonyPrevite
- Slobbering Jester
- Royal Wombat

- From: Glendale, AZ
- Registered: 2002-04-14
- Posts: 3606
- Website
Re: Two different computers rendering site differently
penguinsocks wrote:
But that also worries me a bit because it makes the web even MORE unpredictable... bad enough as it is. (Fun stuff.)
No truer words can be spoken. The web is VERY unpredictable, the user is the one in control, not the the person who designs the site 
Offline
#8 2007-09-21 4:20 pm
- penguinsocks
- thirteen cent pinball
- From: Vancouver, BC
- Registered: 2005-08-04
- Posts: 78
- Website
Re: Two different computers rendering site differently
That said, can a user really expect perfection? 
The user will always be in control but it would be ideal if browsers were consistent, as in, Microsoft get your act together and make IE compliant!
so much for having the fastest MBP available.
Offline
#9 2007-09-21 5:07 pm
- user
- Your plastic pal who's fun to be with

- From: I'm not getting you down, am I
- Registered: 2001-10-15
- Posts: 16035
Re: Two different computers rendering site differently
I always expect perfection.
Aw, he's no fun, he fell right over.
Unless you become as little children, there's no way you will believe this crap.
Offline
#11 2007-09-22 11:35 am
- avkills
- demyelinated brain matter

- Registered: 2001-05-09
- Posts: 7107
Re: Two different computers rendering site differently
Just don't use any graphics and only use <p> tags. 
I like the PDF idea Miles... brilliant!
-mark
Offline
#12 2007-09-22 11:15 pm
- Light Speed
- Doubter of Einstein

- Registered: 2002-08-17
- Posts: 3694
Re: Two different computers rendering site differently
Miles wrote:
This is why I always use PDFs for all the pages on my websites.


Offline
#13 2007-09-25 11:04 am
- penguinsocks
- thirteen cent pinball
- From: Vancouver, BC
- Registered: 2005-08-04
- Posts: 78
- Website
Re: Two different computers rendering site differently

I got a screen shot for y'all...
The site has not launched yet so that's why there's messy bits I've erased.
So as you can hopefully see, the menu is sitting at the top of the window instead of nestled against the main "frame" of the site. There's also supposed to be a banner back there. If you need it I'll show you what it's supposed to look like but I'd have to edit out some information.
Any ideas? Thanks!!
Last edited by penguinsocks (2007-09-25 11:15 am)
so much for having the fastest MBP available.
Offline
#14 2007-09-25 11:31 am
Re: Two different computers rendering site differently
penguinsocks wrote:
If you need it I'll show you what it's supposed to look like but I'd have to edit out some information.
What we need is the actual code. If it's too sensitive to share with us then I don't really think there's any way we can help.
Better yet, provide us with a minimal example that demonstrates the problem—minimal meaning "If I remove any part of this code, the problem no longer occurs". That way, you don't have to edit out the information you don't want to share, and we don't have to dig through irrelevant code to help you find the problem.
Offline
#15 2007-09-25 1:05 pm
- penguinsocks
- thirteen cent pinball
- From: Vancouver, BC
- Registered: 2005-08-04
- Posts: 78
- Website
Re: Two different computers rendering site differently
Ah! Of course. Silly me. The code isn't sensitive.
And just to reiterate, the screen shot above is from the home PC that displays it all wonky, whereas the work PC displays it correctly.
Sliding doors CSS menu imported into the main stylesheet (took out part of the urls):
#menu {
height: 28px;
width: 778px;
text-align: left;
margin: 0;
}
#menu ul {
width: 778px;
margin: 0; padding: 0;
list-style-type: none;
}
#menu ul li {
float: left;
}
#menu a {
color: #fff;
text-decoration: none;
}
li.about a {
width: 189px;
height: 28px;
display: block;
background: url("images/about.jpg") no-repeat left top;
text-indent: -999px;
text-decoration: none;
}
li.about a:hover, body#about li.about a {
background: url("images/about_over.jpg") no-repeat top;
}
li.faq a {
width: 77px;
height: 28px;
display: block;
background: url("images/faq.jpg") left top no-repeat;
text-indent: -999px;
text-decoration: none;
}
li.faq a:hover, body#faq li.faq a {
background: url("images/faq_over.jpg") no-repeat top;
}
li.how a {
width: 168px;
height: 28px;
display: block;
background: url("images/how.jpg") left top no-repeat;
text-indent: -999px;
text-decoration: none;
}
li.how a:hover, body#how li.how a {
background: url("images/how_over.jpg") no-repeat top;
}
li.blank a {
width: 344px;
height: 28px;
display: block;
background: url("images/null.jpg") left top no-repeat;
text-indent: -999px;
text-decoration: none;
}
li.blank a:hover, body#blank li.blank a {
background: url("images/null.jpg") no-repeat top;
}
#menu {
background:url("images/about_over.jpg") no-repeat;
background-position:-1000px -1000px;
}
#menu {
background:url("images/faq.jpg") no-repeat;
background-position:-1000px -1000px;
}
#menu {
background:url("images/how_over.jpg") no-repeat;
background-position:-1000px -1000px;
}
and the main stylesheet:
body {
padding: 0;
margin: 0 auto 0 auto;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
text-align: center;
}
#container {
text-align: center;
margin: 12px auto 0 auto;
width: 778px;
height: auto;
position: relative;
top: 0px;
}
img {
display: block;
}
#banner {
width: 100%;
height: 125px;
position: relative;
top: 0px;
}
#content {
position: relative;
top: 0px;
width: 778px;
padding: 0 0 24px 0;
min-height: 531px;
height:auto !important;
height: 531px;
background: #1A1A1A url("images/center.jpg") repeat-y left top;
margin-left: 0px;
}
etc.
so much for having the fastest MBP available.
Offline
#17 2007-09-25 6:12 pm
- penguinsocks
- thirteen cent pinball
- From: Vancouver, BC
- Registered: 2005-08-04
- Posts: 78
- Website
Re: Two different computers rendering site differently
D'oh. Sorry, I am SO distracted.
Code:
<body id="home">
<div id="container">
<div id="banner">
<?php include('includes/top.html'); ?>
</div>
<div id="content">include contains ( absolute URLs stripped out):
Code:
<a href="index.php"><img src="images/banner.jpg" /></a>
<div id="menu">
<ul class="menu">
<li class="about"><a href="about.php">About</a></li>
<li class="faq"><a href="faq.php">FAQ</a></li>
<li class="how"><a href="who/" target="_blank">How...?</a></li>
<li class="blank"><a href="#"></a></li>
</ul>
</div>So in other words:
Code:
<body id="home">
<div id="container">
<div id="banner">
<a href="index.php"><img src="images/banner.jpg" /></a>
<div id="menu">
<ul class="menu">
<li class="about"><a href="about.php">About</a></li>
<li class="faq"><a href="faq.php">FAQ</a></li>
<li class="how"><a href="who/" target="_blank">How...?</a></li>
<li class="blank"><a href="#"></a></li>
</ul>
</div>
</div>
<div id="content">Last edited by penguinsocks (2007-09-25 6:14 pm)
so much for having the fastest MBP available.
Offline
#18 2007-09-28 3:52 pm
- penguinsocks
- thirteen cent pinball
- From: Vancouver, BC
- Registered: 2005-08-04
- Posts: 78
- Website
Re: Two different computers rendering site differently
Ok this is interesting. I had two friends test the site out in IE and FF on their PCs and it's FINE! So is my boyfriend's computer, or settings, just screwing things up? I may have mentioned this has happened before... Any idea why it might? Anything to look for/ask about in his settings?
so much for having the fastest MBP available.
Offline
#19 2007-09-28 6:00 pm
- TonyPrevite
- Slobbering Jester
- Royal Wombat

- From: Glendale, AZ
- Registered: 2002-04-14
- Posts: 3606
- Website
Re: Two different computers rendering site differently
Does he use his own style sheet? Set his own fonts? Use an unusually large system font? User styles take precidence for the "cascading" part of CSS.
Offline
#20 2007-09-28 6:39 pm
- penguinsocks
- thirteen cent pinball
- From: Vancouver, BC
- Registered: 2005-08-04
- Posts: 78
- Website
Re: Two different computers rendering site differently
Not as far as I know because usually I have no problem rendering my sites on his computer... doesn't set his own fonts, nor large... I don't think he'd know how to actually hah.
so much for having the fastest MBP available.
Offline
#21 2007-09-29 12:01 pm
- Stan
- Member

- From: Rock Island
- Registered: 2002-04-09
- Posts: 713
Re: Two different computers rendering site differently
penguinsocks wrote:
Not as far as I know because usually I have no problem rendering my sites on his computer... doesn't set his own fonts, nor large... I don't think he'd know how to actually hah.
Did he buy his computer new or used? If he got it used, the previous owner might have changed the browser prefs.
Offline
#22 2007-09-30 4:45 pm
Re: Two different computers rendering site differently
To rule out browser preferences, have him create a new user on his computer, login with that user, and see if the page looks the same.
Offline
#23 2007-10-02 6:37 pm
- penguinsocks
- thirteen cent pinball
- From: Vancouver, BC
- Registered: 2005-08-04
- Posts: 78
- Website
Re: Two different computers rendering site differently
It was new.
Thanks, Altivec, that sounds like a good idea.
He just upgraded his IE6 to 7 so I'll check it out there too.
so much for having the fastest MBP available.
Offline
#24 2007-10-09 5:37 pm
- MyMac8MyPC
- Member
- Registered: 2007-10-09
- Posts: 192
Re: Two different computers rendering site differently
penguinsocks wrote:
I noticed just recently, however, that in FF/Win and IE6 on my boyfriend's PC that the menu bar is positioned wrong -- too high in the window.
The first thing that you need to do is to determine if it's his computer or if it's in your code. My guess is it's your code because this is a common tag error. The easiest way to do this is for you to post a link to the page so that other people here can check it for you (just think of those here as your own personal beta testers). This way we can check the source for common mistakes. All browsers render slighly differently. Webmasters push for more standardization's all the time but each company feels that the other companies need to change their code, so not much gets accomplished. IE is the worse offender but they are also the ones with the biggest piece of the pie, so they don't want to fix anything. The problem with you posting partial code here is that you could have a closing tag issue which we wouldn't see. A couple of quick questions; is this an actual webpage or is it a blog? Where is the banner resting at? What happens if you remove the banner code? Have you tried to validate the page?
Offline


