I have a CSS that includes
.warning{
margin-top: 1em;
padding: 10px 5px 15px 45px;
border-color: #680000;
border-width: 5px 3px 1px 1px;
border-style: solid;
font-family:Buxton Sketch, Arial;
background: #ffcccc url("../images/warning.gif") no-repeat 3px center;
font-style: normal;
}
So my main goal is to have a text shown in Buxton Sketch, but if the font is not available on the computer from which my website is viewed - then Arial is the next choice (because it's a common one). The point is that Buxton Sketch in size 6 is pretty much equal to Arial in size 4. So in my .html page I have the following code:
<div class="warning"><font size="4"><b> Please note!</b></font><br/>
<span style="color:black">
Several previous versions do not include a <i>back</i> button, thus - once you go there - there is no going back!
(that is - apart from the casual <i>back</i> button in every browser). So be careful!
<span style="color:black">
</span></span></div>
Now, when viewing my webpage on Windows that has Office installed on, I see the "warning" section in too small letters, but on Linux its ok. If instead of size <font size="4">
I write <font size="6">
then on Windows its ok, but on Linux it's too big.
Is there a way to check whether or not the font is installed and only then deciding the size? So that if Buxton Sketch is installed the size will be 6, and else it will be 4 (or maybe I'd like to insert another font as my 2nd priority, and have Arial as my third, etc.)
If there is a way - is the change only in the .html file or does it have to be in the CSS?
Thanks!