1 reply [Last post]
gidmeister
gidmeister's picture
User offline. Last seen 12 weeks 9 hours ago. Offline
rank Regular
Regular
Timezone: GMT-5
Joined: 2011-03-01
Posts: 16
Points: 35

I have a page with code such as:

<table  >
<tr><td class="mobiletitle" ><span class="mobilefont">David Ben-Gurion</span></td></tr>

etc.

But the mobilefont class, which is supposed to make the text large, is not working.
It looks like:

.mobilefont
{
	font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
	font-size: 14px;
}

Any help is appreciated.
You can see the page itself at:
http://www.zionism101.org/mobile/mFF_Gurion.aspx
-- Gid

//mode edit: Please read the how to post thread. I have edited this post to add bbcode. ~gt

Hugo
Hugo's picture
User offline. Last seen 11 hours 36 min ago. Offline
rank Moderator
Moderator
Timezone: GMT+1
Joined: 2004-06-06
Posts: 15193
Points: 2296

First thing to test for is

First thing to test for is specificity, has your class a high enough 'Weight' or are other stated rules actually managing the font-size for this element. One way to check this is to get used to using tools such as Firebug for Firefox which will allow you to examine an element and to see what rulesets are associated with that element and which are actually applied and which have been countermanded by a stronger rule.

You can test quickly for specificity by adding weight to your ruleset selectors e.g:
#some-parent table tr td.mobiletitle span.mobilefont {}

That is an overstated selector set simply to ensure the ruleset did have a higher weight than any other.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me