473,473 Members | 1,584 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

font sizing problem

I've got some CSS that looks like this:

body {
margin: 0;
font-family: Arial, Helvetica, sans-serif;
font-size: 140.01%;
color: #000000;
}

but IE won't apply the font size to text in table cells so I've had to
modify it to this:

body {
margin: 0;
}

body, td {
font-family: Arial, Helvetica, sans-serif;
font-size: 140.01%;
color: #000000;
}

This "fixes" it in IE buy in MZ the font size in table cells is too
large. I believe it's 140.01% of 140.01%. I think the only way around
this is to load a specific style sheet depending on the the browser.

Is this the right way to go about this or is there a better way?
Andrew Poulos

PS the .01% was added because someone told me to and I didn't know
enough about fonts to disagree.
Jul 21 '05
53 4392
On Tue, 30 Nov 2004 15:27:17 -0500, "C A Upsdell"
<cupsdell0311XXX@-@-@XXXrogers.com> wrote:
"Steve Pugh" <st***@pugh.net> wrote in message
news:gd********************************@4ax.com.. .

Hmm, I've just done a test and Netscape 4.7 successfully carried out
the instructions inside a script with type but not language.


One of the problems with NN4 is that it is not a monolith: Netscape issued
many versions to fix bugs, fix security issues, add features (such as
limited support for PNG in 4.04), and (in the case of 4.5) improve standards
compliance. If your experience goes back that far then you likely remember
that, although updates tended to fix problems, they also tended to create
new problems, or re-introduce problems that had been fixed earlier.

I believe you when you say you did not find a problem in omitting the
LANGUAGE attribute with NN4.7. I also tested this with 4.08 and 4.80, and I
did not find a problem with them. However, I know that I did have a problem
with some NN4 versions -- and no, I never kept a record of which versions,
so I can't cite them -- for which reason I had to adopt the rule to always
include the LANGUAGE attribute.


This change probably took place between 4.04 and 4.05 as a lot of JS
related stuff was tweaked for 4.05. I can't remember when 4.05 came
out but it was before the first of the 4.5 versions (i.e. before
mid-98) so the number of 4.04 and below users must surely be a small
minority even amongst the small minority of poor souls still using NN
4.x.

Steve

Jul 21 '05 #51
Andrew Poulos wrote:
4. How to play the aiff in MZ without the embed (I realise that the
embed makes the XHTML not strict compliant).
<object classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"

codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"

standby="Loading..."
type="application/x-oleobject">
1. Is application/x-oleobject the correct MIME type for the media file
you want to present?

2. Add
data="media/aif_sample.aif"
here
<param name="FileName" value="media/aif_sample.aif" />


--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Jul 21 '05 #52
*Andrew Poulos* <ap*****@hotmail.com>:

1. Whether I need the XML prolog
Omit it, send an appropriate HTTP header and (much preferably) use UTF-8
for XML (or its subset US-ASCII). Every FAQL will tell you something like
that.
2. Whether I need the meta tag
No, it comes too late anyway.
and, if I do, if it's correct
Well, "text/html" combined with XHTML is just a last resort solution.
3. How to play the aiff in IE without the param
4. How to play the aiff in MZ without the embed
<a href="media/aif_sample.aif">An AIFF sample</a>

Best user-controllable, best supported, least annoying.
(I realise that the embed makes the XHTML not strict compliant).
It's not even loose compliant.
<div style="visibility:hidden;">
<object
So you basically want to annoy your visitors with background noise with
hidden turn-off controls? You &swearword;! They are annoying.

Actually this takes it kind of on-topic again, because background-sounds
should---if at all---be implemented via CSS, just like background-images.
CSS*3: Audio, which would include it, is one of the least advanced
modules, though, i.e. not even a first public WD
(<http://www.w3.org/Style/CSS/current-work>) has been published.

Has someone experimented with other file-types than images put into
'url()' as value of for example 'background-image'?
classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"
These should be ignored by browsers other than (Windows) IE.
type="application/x-oleobject">
That certainly isn't the correct MIME-type for an AIFF sound file. I'm not
sure whether 'audio/L16' (RFC 2586) would be a more appropriate choice, I
don't know AIFF that well---or audio formats at all for that matter. Else
go with 'audio/x-aiff'.
<param name="FileName" value="media/aif_sample.aif" />
I'd expect that value in the 'data' attribute of the 'object', which
should work in browsers that support 'object'.
<embed type="audio/x-aiff"


If you use 'embed', you could as well use the equally proprietary
'bgsound' element (yes an empty element inside 'head', not a 'body'
attribute like 'bgcolor' or 'background'!). Now I don't remember if that
was an MS or NS invention.

--
"Put it back in the horse!"
H. Allen Smith, after he drank his first American beer at a bar
Jul 21 '05 #53
Christoph Paeper <ch**************@nurfuerspam.de> wrote:
Has someone experimented with other file-types than images put into
'url()' as value of for example 'background-image'?


I experimented with css generated content using something else than
plain text or common images (gif, png, jpeg) a bit, nothing works in any
of my UAs. I tried css 2.x pseudo elements supported by Opera & Mozilla
and also without the pseudo elements as proposed in css 3 drafts
(currently supported by Opera 7). I can only get text or common images
to work. I also tried base64 encoding, no cigar.
classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"


These should be ignored by browsers other than (Windows) IE.


Should, but isn't: Gecko also supports the MS MP ActiveX to some extent.

--
Spartanicus
Jul 21 '05 #54

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

Similar topics

115
by: J | last post by:
I've run CSSCheck on my style sheets and I always get a warning similar to this: "font: bold 9pt/100% sans-serif Warning: Absolute length units should not generally be used on the Web ..." ...
15
by: chart43 | last post by:
> I work on Windows (unfortunately). But I regularly view my work in a Mac > (IE5.x and Safari). I do not notice the phenomenon that you describe. > But then, it hardly seems relevant. What's...
9
by: Dr John Stockton | last post by:
Assuming default set-ups and considering all reasonable browsers, whatever that may mean, what should an author expect that his readers in general will see (with visual browsers) for a page with...
7
by: Joe | last post by:
I have a label control that will be filled with text at runtime. The length of the text will vary, but the label must stay the same size. Is there a way to set the font size of the text such that...
60
by: deko | last post by:
As I understand it, most browser manufacturers have agreed on 16px for their default font size. So, this should be an accurate conversion for percentages: px % 16 = 100 14 = 87.5 13 =...
40
by: Paul Davis | last post by:
Hi all, I'm building some style sheets and trying to play the old game of balancing designer pixel perfection and still allowing users to adjust their font sizes. The compromise I've made with the...
30
by: Takehiko Abe | last post by:
I have a <pelement with <ttinside: ;;; <p>A paragraph contains <tt>tt element</tt>.</p> I would like to set the font-size of the TT to the same as the containing <p>. This does not seem to...
16
by: Frank Steinmetzger | last post by:
Hello Group On my website I used to have Tahoma 8pt defined in my CSS styles. That gives me the "normal" font Windows uses everywhere in its dialogues. However, on Linux things seem to be...
4
by: shapper | last post by:
Hello, I have been reading a few articles about font sizing and I get various versions. All them say to use em ... ok that is what I use. But then they differ on the text size "initialization"....
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,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.