473,288 Members | 1,710 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,288 software developers and data experts.

Mac Safari issue on body text

Hi all,

My site is located at:

http://www.eastdayspa.com/index.html

I have use these main styles

/* main styles */

html, body {margin: 0;
padding: 0;}

body {color: #4D4D4D;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
text-align: center;}

body {font-size: 80%;
voice-family: "\"}\"";
voice-family: inherit;
font-size: 80%;}

html>body {font-size: 80%;}

a:link, a:visited {text-decoration: none;
color: #cc6633;}

a:hover, a:active {color: #bdc0a0;}

In Safari when my mouse is over the page the text is pale grey and when
the mouse is off the page it goes black...

Also site just breaks in Mac IE5.2.

Any suggestions?

JD

Jul 21 '05 #1
5 3743
In article <11**********************@g49g2000cwa.googlegroups .com>,
sa**@paradise.net.nz wrote:

[...]
http://www.eastdayspa.com/index.html
[...]
In Safari when my mouse is over the page the text is pale grey and when
the mouse is off the page it goes black...
Take out <a name="top" id="top" /> and the issue is gone in Safari 2.0
under Mac OS X 10.4.1. (No idea which version you were thinking about.)

My guess is you're triggering that bloody awful invention generally
referred to as "quirks mode".

Not sure why though. Your doctype seems to claim strict, yet
<http://validator.w3.org/check?uri=http://www.eastdayspa.com/index.html>
claims to have been fed "valid XHTML 1.0 Transitional". I don't know
what's up with that (I've never bothered learning XHTML - just write
decent HTML). I seem to recall that the *way* in which you serve XHTML
(ContentType="text/html") affects quirks modes triggering. That might be
the issue here. OTOH, I didn't think validators now have quirks mode
implemented too...

Others will know better, I'm sure.
Also site just breaks in Mac IE5.2.


Because it stupidly doesn't allow the user to define a minimum font size
to protect them from idiocy like "font-size:80%".

Anyway, Mac IE has been dead (no development) for some 3 years now.
Maybe it never even heard about XHTML.

--
Sander Tekelenburg, <http://www.euronet.nl/%7Etekelenb/>
Jul 21 '05 #2
Thanks Sander - If I remove <a name="top" id="top" /> from each page ,
then my <p><a href="#top" class="top">Back to top</a></p> will not
work. Is thsi what you meant to fix the Safari problem?

Jul 21 '05 #3
In article <11*********************@g44g2000cwa.googlegroups. com>,
sa**@paradise.net.nz wrote:
Thanks Sander - If I remove <a name="top" id="top" /> from each page ,
then my <p><a href="#top" class="top">Back to top</a></p> will not
work. Is thsi what you meant to fix the Safari problem?


No. I just described the behaviour I saw. I mean that that is, together
with the doctype declaration issue I pointed to, an indicator of what
might be wrong at which end.

As I said, I never bothered with XHTML. From an HTML point of view I'd
say you're opening an anchor without closing it - which is consistent
with Safari's behaviour. The question is whether your XHTML is wrong, or
if Safari is.

If your XHTML is correct (which it is, according to the W3C validator)
and Safari is wrong, then you should not change your XHTML. Instead, you
should report the bug to Safari's developers. If Web developers hide
bugs from everybody, they'lll never get fixed.

Expose those bloody browser bugs. Then maybe some day the Web will be
somewhat useable.

--
Sander Tekelenburg, <http://www.euronet.nl/%7Etekelenb/>
Jul 21 '05 #4
On 17 May 2005 sa**@paradise.net.nz wrote:
body {font-size: 80%;

Any suggestions?


Remove the idiotic font-size 80% for BODY text!

--
Top-posting.
What's the most irritating thing on Usenet?

Jul 21 '05 #5
sa**@paradise.net.nz wrote:

http://www.eastdayspa.com/index.html

I have use these main styles

body {font-size: 80%;
See what Sander and Andreas said about this...
Also site just breaks in Mac IE5.2.


1. You have not set any background colors anywhere, only background
images. When those images don't load for any reason, the result in the
header is white text on the browser default background color. If the
default happens to be white (it often is), the text is invisible.

2. MacIE isn't loading some background images because of the single
quotes around the background-image URI. Either get rid of the quote
marks altogether, or use double quotes.

3. MacIE, unlike most other browsers, follows the CSS 2.0 spec and
requires an explicit width for non-replaced floated elements, like the
list items in the navbar. An unspecified width defaults to 100%, so the
navbar ends up a vertical list rather than a horizontal one.

You can use an inline list instead, but MacIE has trouble with those as
well, but with some care, you can get results comparable with other
browsers, probably without any hacks, too. I've had satisfactory results
using line-height on the list items and padding on the list child <a>
elements rather than margin/padding on the list items themselves. YMMV

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Jul 21 '05 #6

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

Similar topics

4
by: Bernard | last post by:
Hi, I am suddenly getting Safari script errors with the following user agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/125.2 (KHTML, like Gecko) Safari/125.8 In a...
3
by: Marcia Gulesian | last post by:
The following code suppresses the 'enter' key, when run in I.E. 5.5 or later (Windows) but not when run in Safari (Mac) <body onkeypress="javascript:keysuppress(event)" > function...
2
by: Marcia Gulesian | last post by:
The following code suppresses the 'enter' key, when run in I.E. 5.5 or later (Windows) but not when run in Safari (Mac) <body onkeypress="javascript:keysuppress(event)" > function...
5
by: jmdocherty | last post by:
All, I've been trying to set up a CSS layout and all seems well in Firefox but in Safari it just seems to be plain weird! I hope someone can help tell me whether this is a problem with my code...
3
by: Joe Cox | last post by:
I am having a problem with style properties for dynamic images in Mac OS X Safari. By dymanic images, I mean images allocated with the javascript 'new Image()' call. With static images (created...
1
by: Gretsch | last post by:
I have modelled my program on the std code below (from http://www.w3schools.com/dom/dom_parser.asp).. It works in IE & Firefox, but does not work with Safari - nor does Safari issue the alert...
5
by: loveshack | last post by:
Can anyone help me please (i am quite a novice, but having fun learning). Im not sure if this is an ASP problem, a javascript problem or a browser problem. Firstly, everything i have written...
5
by: Jason | last post by:
Hi all, Are you familiar with Safari? I have a site that works perfectly in IE6 IE7 FF2 FF3 but not in the latest Safari. When I test xsltProcessor, there is a error as following, I have dealt...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
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...
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)...

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.