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. 6 1174
Andrew Poulos wrote: 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; }
try:
body {
margin: 0;
color: #000000;
font-size: 140%;
}
body, table {
font-family: Arial, Helvetica, sans-serif;
}
table {
font-size: 100%;
}
Daniel
On Fri, 26 Nov 2004 19:26:18 +1100, Andrew Poulos wrote: I've got some CSS that looks like this:
Why not post to c.i.w.a.s.?
<http://groups.google.com/groups?group=comp.infosystems.www.authoring.styles heets>
body { margin: 0; font-family: Arial, Helvetica, sans-serif;
Where, for example, they would probably not only sort the problem,
but also recommend a different order for the font declaration.
[ Helvetica is generally considered a superior font to Arial,
so it makes sense to list it *first*. ]
--
Andrew Thompson http://www.PhySci.org/codes/ Web & IT Help http://www.PhySci.org/ Open-source software suite http://www.1point1C.org/ Science & Technology http://www.LensEscapes.com/ Images that escape the mundane
Andrew Thompson wrote: On Fri, 26 Nov 2004 19:26:18 +1100, Andrew Poulos wrote:
I've got some CSS that looks like this:
Why not post to c.i.w.a.s.? <http://groups.google.com/groups?group=comp.infosystems.www.authoring.styles heets>
body { margin: 0; font-family: Arial, Helvetica, sans-serif;
Where, for example, they would probably not only sort the problem, but also recommend a different order for the font declaration.
[ Helvetica is generally considered a superior font to Arial, so it makes sense to list it *first*. ]
I thought that maybe the solution was a javascript-based one. Thanks,
I'll try posting there.
Andrew Poulos
Andrew Thompson wrote: Where, for example, they would probably not only sort the problem, but also recommend a different order for the font declaration.
[ Helvetica is generally considered a superior font to Arial, so it makes sense to list it *first*. ]
On screen Arial is often more readable than Helvetica. If arial is not
present, which might be the case especially on non windows systems, the
pretty similar helvetica font should be used.
IMHO this order does make sense.
Daniel
Daniel Kirsch wrote: Andrew Thompson wrote:
Where, for example, they would probably not only sort the problem, but also recommend a different order for the font declaration.
[ Helvetica is generally considered a superior font to Arial, so it makes sense to list it *first*. ]
On screen Arial is often more readable than Helvetica. If arial is not present, which might be the case especially on non windows systems, the pretty similar helvetica font should be used. IMHO this order does make sense.
My preference is to use Comic Sans because it is so very readable (if
slightly too large).
On Fri, 26 Nov 2004 20:21:17 +1100, Andrew Poulos wrote: Andrew Thompson wrote:
... Why not post to c.i.w.a.s.? <http://groups.google.com/groups?group=comp.infosystems.www.authoring.styles heets>
... I thought that maybe the solution was a javascript-based one.
I know enough to know that these sort of problems are regularly
fixed on c.i.w.a.s. Further if it *does* require separate stylesheets,
they are the experts on the 'CSS import hacks' necessary* to ensure
that each UA sees an appropriate set of styles.
[ There are other ways to provide alternate stylesheets, but CSS
import hacks are the single most reliable. ]
..Thanks, I'll try posting there.
You're welcome.
--
Andrew Thompson http://www.PhySci.org/codes/ Web & IT Help http://www.PhySci.org/ Open-source software suite http://www.1point1C.org/ Science & Technology http://www.LensEscapes.com/ Images that escape the mundane This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Peter Foti |
last post by:
Simple question... which is better to use for defining font sizes and why?
px and em seem to be the leading candidates. I know what the general answer
is going to be, but I'm hoping to ultimately...
|
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 ..."
...
|
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...
|
by: Randall Parker |
last post by:
Using IE 6.x (whatever is the latest) on Windows 2000.
For these two CSS definitions if I remove the 2 lines that have the
"mso-" font family definitions (mso-fareast-font-family, and...
|
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...
|
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...
|
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 =...
|
by: Laphan |
last post by:
Hi All
Strange question this, but could somebody tell me what the old size=1,
size=2 .... to size=7 font parameters are in pixels and points.
I thought it was:
size 1 = 7 pt
size 2 = 14...
|
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...
|
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...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
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....
|
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
| |