473,386 Members | 1,748 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,386 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 3748
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.