T
Trevor L.
BlankI know that this topic has been raised before - in fact, I have joined in. I think the previous query was to do with specifying font sizes in points pixels cm, etc.
Now I am getting more into HTML, CSS etc, I find that there many different ways of specifying font size.
From w3schools.com
These are the HTML Font Attributes (including size)
Attribute Example Purpose
size="number" size="2" Defines the font size
size="+number" size="+1" Increases the font size
size="-number" size="-1" Decreases the font size
face="face-name" face="Times" Defines the font-name
color="color-value" color="#eeff00" Defines the font color
color="color-name" color="red" Defines the font color
These are the CSS Font Sizes
Value Description NN IE
xx-small
x-small
small
medium
large
x-large
xx-large Sets the size of the font to different sizes, from xx-small to xx-large 4.0 3.0
smaller Sets the font-size to a smaller size than the parent element 4.0 4.0
larger Sets the font-size to a larger size than the parent element 4.0 4.0
length Sets the font-size to a fixed size 4.0 3.0
% Sets the font-size to a % of the parent element 4.0 3.0
It is also possible to set the font size in pixels in CSS, e.g. font-size: 10px. I can't find the reference for this - perhaps it is the length value. Certainly 10px works.
Perhaps there are other possibilities in Javascript, VBS etc.
Anyway my question is :
What is the correspondence between these specs?
e.g.
If I specify 10px in CSS what does this correspond to as a font size in HTML - is it 3, 4, 5 or what?
What are the units used in HTML? I am sure font size="3" doesn't mean 3px.
What is the default size? e.g. in both HTML and CSS, one can increase the size, but what does it start at?
I hope someone can throw some light on this.
--
Thanks,
Trevor L.
I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html
Now I am getting more into HTML, CSS etc, I find that there many different ways of specifying font size.
From w3schools.com
These are the HTML Font Attributes (including size)
Attribute Example Purpose
size="number" size="2" Defines the font size
size="+number" size="+1" Increases the font size
size="-number" size="-1" Decreases the font size
face="face-name" face="Times" Defines the font-name
color="color-value" color="#eeff00" Defines the font color
color="color-name" color="red" Defines the font color
These are the CSS Font Sizes
Value Description NN IE
xx-small
x-small
small
medium
large
x-large
xx-large Sets the size of the font to different sizes, from xx-small to xx-large 4.0 3.0
smaller Sets the font-size to a smaller size than the parent element 4.0 4.0
larger Sets the font-size to a larger size than the parent element 4.0 4.0
length Sets the font-size to a fixed size 4.0 3.0
% Sets the font-size to a % of the parent element 4.0 3.0
It is also possible to set the font size in pixels in CSS, e.g. font-size: 10px. I can't find the reference for this - perhaps it is the length value. Certainly 10px works.
Perhaps there are other possibilities in Javascript, VBS etc.
Anyway my question is :
What is the correspondence between these specs?
e.g.
If I specify 10px in CSS what does this correspond to as a font size in HTML - is it 3, 4, 5 or what?
What are the units used in HTML? I am sure font size="3" doesn't mean 3px.
What is the default size? e.g. in both HTML and CSS, one can increase the size, but what does it start at?
I hope someone can throw some light on this.
--
Thanks,
Trevor L.
I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html