D
dave richards
Hi,
I'm currently trying to learn css/html and am having difficulties with font
sizes. The site loads a background with an image of a circle. All of the
content needs to fit inside this circle and I have used a div to contain the
content.
in my css I listed a number of fonts (the site needs a font that looks like
handwriting).
body {
font-family: "Monotype Corsiva","Comic Sans MS", "Cursive";
font-size:16px;
color: #505050;
margin-top: 10px;
margin-bottom: 10px;
margin-left: 10px;
margin-right: 10px;
}
The problem I have is that although 16px font size looks fine for "Monotype
Corsiva", if this font is not available and another is selected the text
either looks very compact or spills off the end of the div. I have tried
px/pt/em for the font size. Is there anyway to either specifically set the
font height to a set number of pixels or use a different font size depending
on which font is selected.
Thanks for your help
Dave
I'm currently trying to learn css/html and am having difficulties with font
sizes. The site loads a background with an image of a circle. All of the
content needs to fit inside this circle and I have used a div to contain the
content.
in my css I listed a number of fonts (the site needs a font that looks like
handwriting).
body {
font-family: "Monotype Corsiva","Comic Sans MS", "Cursive";
font-size:16px;
color: #505050;
margin-top: 10px;
margin-bottom: 10px;
margin-left: 10px;
margin-right: 10px;
}
The problem I have is that although 16px font size looks fine for "Monotype
Corsiva", if this font is not available and another is selected the text
either looks very compact or spills off the end of the div. I have tried
px/pt/em for the font size. Is there anyway to either specifically set the
font height to a set number of pixels or use a different font size depending
on which font is selected.
Thanks for your help
Dave