Forum Moderators: not2easy
the style is set in a CSS with the following
.Std { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size:"xx-small" ;}
while I acknowledge that "xx-small" is open to interpretation the font that is shown in Opera must be 14 - 16pt.
suggestions welcomed....
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "xhtml11.dtd">
<?xml version="1.0" encoding="iso-8859-1"?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Font test</title>
<style type="text/css">
h1 {
font: 2em arial, verdana;
}
.keywords {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: xx-small;
}
</style>
</head>
<body>
<h1>Opera Font test</h1> <p class="keywords">This is text sized with keywords</p>
</body>
</html>
It works just fine for me....
Nick
I inserted the following into the <head></head> section of the html you sent:
<link rel="stylesheet" type="text/css" href="styles.css">
that file has the following:
P { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: "xx-small"; }
I then added some text at the end of your html:
<P>normal text</p>
so that now we have inline and external styles on the page.
All of thext shows correctly in IE but the text formated with the external style is incorrect in Opera.
the text is too large.
here is the document content:
<head>
<title>Font test</title>
<style type="text/css">
h1 {
font: 2em arial, verdana;
}
.keywords {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: xx-small;
}
</style>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<h1>Opera Font test</h1>
<p class="keywords">This is text sized with keywords</p>
<P>This is text sized with normal P</P>
</body>
------------
here is the stylesheet content:
P { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: "xx-small"; }