Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / September 2005



Tip: Looking for answers? Try searching our database.

"Font-variant: Normal" won't take effect

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David Trimboli - 26 Sep 2005 14:53 GMT
If you look at http://www.trimboli.name/klingon/, you'll see that the
headers on the page are displayed in small-caps. Usually, this is
desired. However, the header "may'vaD ghuHmoH QoQ"* is surrounded by
<span lang="tlh"> ("tlh" for "tlhIngan Hol"), and I have put a
declaration of "font-variant: normal" in the main stylesheet. I can't
figure out why the Klingon title is still in small-caps. I want all
Klingon phrases to appear in normal text, never in small-caps. Can
anyone advise me?

The stylesheets applied to this page, in order, are
    http://www.trimboli.name/styles/screen.css
    http://www.trimboli.name/styles/klingon.css

David
Stardate 5737.3

*Approximate translation: "Music rouses one to battle."
Martin Honnen - 26 Sep 2005 15:27 GMT
> If you look at http://www.trimboli.name/klingon/, you'll see that the
> headers on the page are displayed in small-caps. Usually, this is
[quoted text clipped - 3 lines]
> figure out why the Klingon title is still in small-caps. I want all
> Klingon phrases to appear in normal text, never in small-caps. Can

I have looked at it with the Mozilla DOM inspector and you have a <span>
element containing an <a> element. While the rules for the <span> are
setting font-variant as normal those on the <a> element result in the
<a> element having font-variant as small-caps.

Signature

    Martin Honnen
    http://JavaScript.FAQTs.com/

David Trimboli - 26 Sep 2005 22:54 GMT
> I have looked at it with the Mozilla DOM inspector and you have a <span>
> element containing an <a> element. While the rules for the <span> are
> setting font-variant as normal those on the <a> element result in the
> <a> element having font-variant as small-caps.

Aha! I'll have to brush up on cascade order, I see. I just put the
<span> inside the <a>, and the <span> style won. Thanks!

David
Stardate 5738.2
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.