473,320 Members | 1,909 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Mac compatibility

Hi,

I realise that this post isn't ABSOLUTELY to do with ASP.NET, but can anyone
please confirm whether pixels are different on Windows and Macs?

Reason I ask is that one of my current clients is a heavy Mac user, and the
website I'm developing for them looks very different on their Macs from the
way it looks on Windows browsers. The common denominator seems to be
specifying table dimensions in pixels.

Specifically, their corporate layout specifies a logo banner centered at the
top of each page, and the content underneath should align with the outer
edges of the logo, which is 650 pixels wide.

<div align=center>
<img src=../images/logobanner.jpg>
</div>
<br>
<table border=1 width=650px align=center>
<tr>
<td align=left>Some text</td>
<td align=right>Some other text</td>
</tr>
</table>

On all Windows browsers, the above HTML correctly aligns the two tablecells
with the left and right edges of the logo. However, on Mac browsers, the
table is considerably wider than the image. I've done a View Source on both
systems, and the HTML is identical.

I'll be looking at other ways of specifying absolute dimensions in a day or
so, but I'm interested to know whether anyone else has encountered this
cross-platform phenomenon, and whether I'm correct about pixels.

Any assistance gratefully received.

Mark
Mar 13 '06 #1
6 1145
I realise that this post isn't ABSOLUTELY to do with ASP.NET, but can
anyone
please confirm whether pixels are different on Windows and Macs?
Pixels are pixels.
Reason I ask is that one of my current clients is a heavy Mac user, and
the website I'm developing for them looks very different on their Macs
from the way it looks on Windows browsers. The common denominator seems to
be specifying table dimensions in pixels.
It's likely not an OS issue, but rather a browser issue. Do you know which
specific browser the problem is showping up in?
On all Windows browsers, the above HTML correctly aligns the two
tablecells with the left and right edges of the logo. However, on Mac
browsers, the table is considerably wider than the image. I've done a View
Source on both systems, and the HTML is identical.


have a link for us to look at?

-Darrel
Mar 13 '06 #2
"darrel" <no*****@nowhere.com> wrote in message
news:eQ**************@tk2msftngp13.phx.gbl...
Pixels are pixels.
OK - so it's not that, then...
It's likely not an OS issue, but rather a browser issue. Do you know which
specific browser the problem is showping up in?
On every browser I can get to install on their Macs - Safari, FireFox,
Mozilla, Netscape, Opera, even an old copy of MSIE5 on MacOS 9...

However, MSIE, Netscape, FireFox, Mozilla etc all display correctly on
Windows.
have a link for us to look at?


http://www.kcityradio.co.uk/
Click Enter to access the Home page.
And, after you've picked yourself up off the floor, let me assure you that
I'm not responsible for the "design"... :-)
Mar 13 '06 #3
> On every browser I can get to install on their Macs - Safari, FireFox,
Mozilla, Netscape, Opera, even an old copy of MSIE5 on MacOS 9...

However, MSIE, Netscape, FireFox, Mozilla etc all display correctly on
Windows.


Firefox is pretty much firefox regardless of the OS. So...that's odd.
have a link for us to look at?


http://www.kcityradio.co.uk/
Click Enter to access the Home page.
And, after you've picked yourself up off the floor, let me assure you that
I'm not responsible for the "design"... :-)


Whoa. yea, that's kind of, well, 'colorful'.

In firefox on both windows and osx, it looks fine as you intended.

In Safari, I do see that the area below the upper table is wider.

The problem is you have a bad/overly complex table. At least one row of a
table has to account for every column. One option is to put in a one-pixel
high row at the top with 3 TDs and use that row to set the width of each TD.

Alternatively, you could use nested tables, or split it into two tables (one
with 3TDs, the one below with 2. Or just get rid of the table altogether.

-Darrel
Mar 13 '06 #4
no, pixels are the same, but font sizes are different. fonts are measured in
points (~72 points an inch). so to display a font, the software need to know
how many pixels there to a point. this actually depends on the individual
monitor, so O/S guess. Microsoft defaults to 96ppi (points per inch), while
apple will depend on the monitor. most O/S's will allow the the user to
adjust this (see large fonts option in windows - which probably will also
break your design).

you could specify fonts in pixels, but it may end up unreadable. try
switching to large fonts on your pc, and adjust your site to display
actually.
-- bruce (sqlwork.com)


"Mark Rae" <ma**@markN-O-S-P-A-M.co.uk> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi,

I realise that this post isn't ABSOLUTELY to do with ASP.NET, but can
anyone please confirm whether pixels are different on Windows and Macs?

Reason I ask is that one of my current clients is a heavy Mac user, and
the website I'm developing for them looks very different on their Macs
from the way it looks on Windows browsers. The common denominator seems to
be specifying table dimensions in pixels.

Specifically, their corporate layout specifies a logo banner centered at
the top of each page, and the content underneath should align with the
outer edges of the logo, which is 650 pixels wide.

<div align=center>
<img src=../images/logobanner.jpg>
</div>
<br>
<table border=1 width=650px align=center>
<tr>
<td align=left>Some text</td>
<td align=right>Some other text</td>
</tr>
</table>

On all Windows browsers, the above HTML correctly aligns the two
tablecells with the left and right edges of the logo. However, on Mac
browsers, the table is considerably wider than the image. I've done a View
Source on both systems, and the HTML is identical.

I'll be looking at other ways of specifying absolute dimensions in a day
or so, but I'm interested to know whether anyone else has encountered this
cross-platform phenomenon, and whether I'm correct about pixels.

Any assistance gratefully received.

Mark

Mar 13 '06 #5
no, pixels are the same, but font sizes are different. fonts are measured
in
points (~72 points an inch). so to display a font, the software need to
know how many pixels there to a point. this actually depends on the
individual monitor, so O/S guess. Microsoft defaults to 96ppi (points per
inch), while apple will depend on the monitor.


This is a browser issue, not related to a specific monitor.

Most browsers (even on the Mac) will now translate fonts sized in point
measurements using the 96ppi factor.

-Darrel
Mar 13 '06 #6
"darrel" <no*****@nowhere.com> wrote in message
news:ux**************@TK2MSFTNGP09.phx.gbl...
In firefox on both windows and osx, it looks fine as you intended.
Not quite. Have a look at it on Windows - one of the <td> elements has a
background image with the word JINGLE on it - completely missing on all the
Mac browsers...
In Safari, I do see that the area below the upper table is wider. The problem is you have a bad/overly complex table.
Er...I have to disagree - all the Windows browsers have no problem with
it...
At least one row of a table has to account for every column. One option is
to put in a one-pixel high row at the top with 3 TDs and use that row to
set the width of each TD.
I've never heard that before, but will give it a go...
or split it into two tables (one with 3TDs, the one below with 2.


That sounds like a good solution - thanks for your help.
Mar 13 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jez Naisbitt | last post by:
Hi Guys, After a break of 2 years I'm now re-visiting the world of java. I recall on my last foray that I had to stick to java 1.1 so I could deploy applets from a server and obtain maximum...
0
by: flat_ross | last post by:
If there was one thing nice about "Binary Compatibility" in VB6, it would tell you at compile time that you changed your public interface. I am looking for the same functionality in .NET. I know...
6
by: someone | last post by:
Suppose that I have a class in an assembly that is delivered to the user, what can I do to change the class so that it doesn't break the binary compatibility? That is, user application can run...
13
by: Derek | last post by:
As I understand it there is a good amount of link compatibility among C compilers. For example, I can compile main.c with GCC and func.c with Sun One and link the objects using either linker (GNU...
2
by: Dominic | last post by:
Hi everybody, I'm planning to use serialization to persist an object (and possibly its child objects) in my application. However, I'm concerned about the backward compatibility issue. I'm...
1
by: Vycka | last post by:
Hello, There is a enterprise web application that is based on asp.net technologies and works on Microsoft IIS. The total number of users is 850. When the load of system gets very high, the...
14
by: frostalicious | last post by:
Used VB.NET (on my client PC) to convert VB6 executable to .NET executable. Placed the .exe file on a network drive on my server. From client, ran .NET Wizards "Trust an Assembly" to make the...
2
by: Carlo | last post by:
I recently started in a new position, and I inherited an application written in VB6 that uses a bunch of DLLs and OCX controls. Version Compatibility is set to Binary at the project level, but since...
1
by: Simon Woods | last post by:
Hi I have a dll ('dll-X') which runs on top of (dependent upon) several other dlls. My build environment has a folder structure binaries compat-libs
17
by: osama178 | last post by:
Hi, What does it mean for an object to be binary compatible? And why aren't STL objects binary compatible? Any insights, links, resources for further reading are greatly appreciated. Thanks.
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.