Forum Moderators: open

Message Too Old, No Replies

Netscape & Mac won't display style correctly

imac won't display color and style correctly. can't control button width

         

Penguinsnob

10:00 am on Nov 22, 2003 (gmt 0)

10+ Year Member



Problem 1:

i have a web site with green background. when i use g4 mac with LCD display at school, green looks much pale and darker; the color of my website looks all wrong.

At my work, they use win98. When I use their office computer to look at my website, green looks like lime green, even though i am using 24 bit color.

If i go to my friend's school and see my site there, everything looks just fine.

--

problem 2:

I have a page written in aspx, and when netscape on win32, or IE on Mac display the page, button does not keep the pre-defined width and size, font. How can I write html so that Netscape and IE on Mac knows how wide the button should be?

hartlandcat

1:11 pm on Nov 22, 2003 (gmt 0)

10+ Year Member



Colours will often look slightly different on Macs. Don't worry about it, as a Mac user, I'm quite used to seeing colours slightly differently from what Windows users see. Macs have a tinted pane of glass built into the monitor -- this is to stop the screen from hurting your eyes, but it will also make colours a bit darker.

As for your second problem... what does Opera do? IE on Windows is a very forgiving browser -- you've most likely made some sort of mistake. It's definately not a problem with Netscape, or Macs in general.

Penguinsnob

1:46 pm on Nov 22, 2003 (gmt 0)

10+ Year Member



Thanks.

I downloaded IE and looked at the page I was having problem with. This is what Opera rendered:

<textarea name="TextBox1" rows="3" readonly="readonly" id="TextBox1" style="Z-INDEX: 108; LEFT: 11px; POSITION: absolute; TOP: 302px"></textarea>

This is the source code in aspx:

<asp:TextBox id="TextBox1" style="Z-INDEX: 108; LEFT: 11px; POSITION: absolute; TOP: 302px" runat="server" Width="427px" Font-Names="Arial" Font-Size="Smaller" Height="80px" ReadOnly="True" Rows="3" TextMode="MultiLine"></asp:TextBox>

It looks like Opera isn't reading Width="427" and Height="80" tag. I also tried with Firebird and it handles the page as expected.

I want a Mac.

hartlandcat

11:22 pm on Nov 22, 2003 (gmt 0)

10+ Year Member



Hang on... so Mozilla Firebird is rendering the text areas the same as IE, although Netscape isn't? What version of Netscape are you testing this in? That's not possible, assuming you're using latest versions.

korkus2000

1:13 am on Nov 23, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I also just tried it and it is an ASP.Net problem. It is not sending the style down to Opera. hartlandcat does firebird mask its UA as IE?

The mac pc difference is based on the gamma setting of the monitors. You can get little programs to switch between the 2 on both mac and PC.

BTW off the top of my head you can run HTML controls server-side. I usuall stay away from the aspx controls. You can just use an external style and use <input type="text" runat="server">. Does the same thing, but you have an idea while coding what will be rendered.

korkus2000

1:40 am on Nov 23, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Another thing you could try id using the CssClass attribute and writing a css class in a style block. This will override any UA problems with the server.

Penguinsnob

2:49 am on Nov 23, 2003 (gmt 0)

10+ Year Member



Thanks.

I've tested it with firebird 0.7 and netscape 7.1. I also installed Mozilla 1.5 and the Mozilla 1.5 acted the same as netscape 7.1. but not the same as Firebird 0.7. I wonder how that's possible.

This is what Firebird 0.7 rendered:
<textarea name="TextBox1" rows="5" readonly="readonly" id="TextBox1" style="font-family:Arial;font-size:Smaller;height:64px;width:549px;Z-INDEX: 108; LEFT: 11px; POSITION: absolute; TOP: 302px"></textarea>

This is what Netscape 7.1 rendered:
<textarea name="TextBox1" rows="5" readonly="readonly" id="TextBox1" style="Z-INDEX: 108; LEFT: 11px; POSITION: absolute; TOP: 302px"></textarea>

I'll try to write page in HTML following example of <input="text" runat="server>. I remember how my professor didn't like using <asp: things. He used to work for eshop (now how ironic is that).

I am being a dumb, but what do you mean by "using the CssClass attribute and writing a css class in a style block"?

I want a Mac.

[edited by: tedster at 7:19 pm (utc) on Nov. 23, 2003]
[edit reason] removed links to screenshots [/edit]

hartlandcat

11:26 am on Nov 23, 2003 (gmt 0)

10+ Year Member



Korkus -- Firebird does not pretend to be IE.

Here is Netscape 7.1's user agent:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1

Here is Mozilla 1.5's user agent:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20030728

Here is Firebird 0.7's user agent:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20030728 Mozilla Firebird/0.7