I have a CSS:
I use it here:
It works fine with doctype I have been using:
I was given code to create menus - the code uses .ul .li . I was given the following doctype to use for this:
When I put that in, the font-family from the CSS stopped being recognized. Everything else in the CSS is still recognized.
I changed the doctype from XHTML to HTML strict and it made no difference. Then I tried this:
The font-family was still being ignored while the menu code continued to work correctly. Then I tried dropping the http
Now the CSS font-family works once again - but the menu code fails to work properly. So the problem is this http that is at the end of the docutype. Why is the presence of this preventing font-family from being recognized while the rest of the CSS is recognized? (And why is its absence breaking the menu code?)
I have tried changing the fonts specified in the font-family but that has made no difference. I have also tried removing the class=normal from the <p> and that has not made a difference, either.
Code:
.bigletter {
font-family:"Typo Upright BT, Times New Roman";
font-size:45px;
font-weight:normal;
line-height:80%;
letter-spacing:-6px;
}
I use it here:
Code:
<p class=Normal><span class="bigletter">T</span>his is the start of a new chapter.</p>
It works fine with doctype I have been using:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
I was given code to create menus - the code uses .ul .li . I was given the following doctype to use for this:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">[/URL]
I changed the doctype from XHTML to HTML strict and it made no difference. Then I tried this:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/html4/loose.dtd">[/URL]
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
I have tried changing the fonts specified in the font-family but that has made no difference. I have also tried removing the class=normal from the <p> and that has not made a difference, either.