473,395 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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

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."
Sep 26 '05 #1
2 1768


David Trimboli wrote:
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


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.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Sep 26 '05 #2
Martin Honnen wrote:
David Trimboli wrote:
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
Sep 26 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Andreas Prilop | last post by:
Internet Explorer displays <tt>, <code> etc. in a smaller font size: http://www.unics.uni-hannover.de/nhtcapri/temp/monospace.html I don't like the idea that monospaced text is displayed in a...
6
by: Matt Adams | last post by:
I want define for a couple of words inside a longer text with different font specifications. I declared it like: ....text before.... <FONT class=aaa> these text should get other attributes...
3
by: David Phillip Oster | last post by:
In Javascript, how do I detect that the user has used the browser's menu command to make the font smaller? I just need some kind of event or callback, so I can adapt to the new environment. ...
0
by: Chad Sanford | last post by:
I have some server side code that instantiates a font object that is then used for generating a chart. It has worked great on many machines, but I have run into one where it is throwing a...
1
by: Achim Domma (SyynX Solutions GmbH) | last post by:
Hi, is there a possibility to set the font size to a percent value of the "top level" font size? For example: The font size of the body might be 100% and I have a div which should have a...
0
by: Altemir | last post by:
I have a datagrid in an .aspx page that contains some columns using the "Font=Bold" inline style. The problem is that some users' browsers aren't displaying the bold font while others are. We...
4
by: Iacopo.Marmo | last post by:
Hi! I need to manipulate multicolor strings, i.e. strings with a color associated with each letter. Any suggestions?
9
by: MadingS | last post by:
Is there an HTML (or CSS) way to say "use the user's INPUT font, whatever that might be."? Most browsers have the ability for the user to pick his or her own preference for what font to use...
4
by: david.karr | last post by:
I'm a CSS newbie, but I was browsing through the css files in the YUI library, and I noticed the following line: body {font:13px/1.231 arial,helvetica,clean,sans-serif;*font-...
3
moishy
by: moishy | last post by:
I have over 3000 fonts that I've backed up. (I had to reformat my drive.) Now I try to copy/paste the fonts into the fonts directory. For most of them I get the message: The <font name> font...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.