Thread: CSS Help Please
View Single Post
Old 06-23-2011, 08:27 AM   #4
viviena
Evangelist
viviena ought to be getting tired of karma fortunes by now.viviena ought to be getting tired of karma fortunes by now.viviena ought to be getting tired of karma fortunes by now.viviena ought to be getting tired of karma fortunes by now.viviena ought to be getting tired of karma fortunes by now.viviena ought to be getting tired of karma fortunes by now.viviena ought to be getting tired of karma fortunes by now.viviena ought to be getting tired of karma fortunes by now.viviena ought to be getting tired of karma fortunes by now.viviena ought to be getting tired of karma fortunes by now.viviena ought to be getting tired of karma fortunes by now.
 
Posts: 412
Karma: 520610
Join Date: May 2010
Location: Canberra, Australia
Device: Currently Kobo Clara HD and Aura One, iPad
I don't know what might help. I currently designate line-height like this without any problems:

Code:
html { 
	font-family: "Vollkorn" !important;
}

body { 
	font-family: "Vollkorn" !important;
	line-height: 1.05em;
}

.mainBody {
	font-family: "Vollkorn" !important;
}

.calibre {
	font-family: "Vollkorn" !important;
}

p {
	font-family: "Vollkorn" !important;
}

@font-face {
  font-family: "Vollkorn";
  font-weight: normal;
  font-style: normal;
  src: url(res:///Data/fonts/vollkorn/Vollkorn-Regular.ttf);
}

@font-face {
  font-family: "Vollkorn";
  font-weight: bold;
  font-style: normal;
  src: url(res:///Data/fonts/vollkorn/Vollkorn-Bold.ttf);
}

@font-face {
  font-family: "Vollkorn";
  font-weight: normal;
  font-style: italic;
  src: url(res:///Data/fonts/vollkorn/Vollkorn-Italic.ttf);
}

@font-face {
  font-family: "Vollkorn";
  font-weight: bold;
  font-style: italic;
  src: url(res:///Data/fonts/vollkorn/Vollkorn-BoldItalic.ttf);
}
(To make sure I wasn't imagining the extra line-height, I even took another screenshot after my line-height adjustment and measured the difference with a ruler. I'm good at fooling myself otherwise.)

The only difference I can see is that you have no semi-colon after the second CSS property, but that shouldn't usually matter, I think? It doesn't for most web design, not when it's the final property in a ruleset.

Last edited by viviena; 06-23-2011 at 09:12 AM. Reason: Awesome, just discovered an error in my CSS. I haven't had any bold italicised text yet, which is probably how it eluded me.
viviena is offline   Reply With Quote