Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

font-style doesn't seem to work?

Status
Not open for further replies.

1DMF

Programmer
Jan 18, 2005
8,795
GB
What would be causing font-style to not work?

I've tried italic & oblique nothing changes?

thanks,
1DMF.

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Google Rank Extractor -> Perl beta with FusionCharts
 
Hi

Maybe the file of italic version for that font is not installed ?

More details may help :
[ul]
[li]Regular font or web font ?[/li]
[li]On one specific machine or on any machine ?[/li]
[li]In one specific browser or in any browser ?[/li]
[/ul]


Feherke.
 
The font is defined as follows
Code:
font-family: Verdana, Arial, Helvetica, sans-serif;

So i beleive the font being displayed is Verdana, which i thought was a web safe font?

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Google Rank Extractor -> Perl beta with FusionCharts
 
Hi

Well, it is indeed quite widespread, but there is no way to guarantee its presence.

Beside that, I met Windows systems where the font database/registry/whatever was broken and the application was unable to access some fonts or variants. That is why I asked those questions.

From the other side, are you sure there is no syntax error just before that rule in your CSS file ?

Feherke.
 
Green bill of health from W3V!

I have Win7 Professional with Office 2010 Pro & Adobe CS2 installed, so shouldn't have any fonts missing, in fact I should have a shed load more than normal?

Any other ideas?

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Google Rank Extractor -> Perl beta with FusionCharts
 
May sound banal but: how do you apply said "font-style"?
Maybe it's a simple tagging error.

Or do you have a stylesheet that might override styles?

[navy]"We had to turn off that service to comply with the CDA Bill."[/navy]
- The Bastard Operator From Hell
 
I have the one CSS file and i have the following rule...

Code:
ul.qbox li {
    padding:5px;
    margin-left:20px;  
    }

If i added
Code:
border:1px solid #000;
the border appears, but including
Code:
font-style:italic;
it doesn't show as italic?

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Google Rank Extractor -> Perl beta with FusionCharts
 
Check if there is a semi-colon missing before this line.

[navy]"We had to turn off that service to comply with the CDA Bill."[/navy]
- The Bastard Operator From Hell
 
W3Validator says all is OK and I did a check in Firefox error console also, no errors!

I think i need to check when I get home as feherke could be onto something about my fonts being screwed!

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Google Rank Extractor -> Perl beta with FusionCharts
 
nope all i use is font-xxxx so if I want to change size i always use font-size: 1.4em; for example

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Google Rank Extractor -> Perl beta with FusionCharts
 
Perhaps the effect is to subtle to notice?

What does the HTML look like? Do you ave maybe a link or a span in the list item that may be interfering with the italic style?>

What browser are you seeing this in?



----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Web & Tech
 
here is the markup..
Code:
            <ul class="qbox">
                <li><b class="red">Experienced mortgage advisers looking for the next step</b> - xxxxxxx Edited text for demo purposes..</li>
                <li><b class="red">Some experience &amp; full CeMAP but not ready to 'go it alone'</b> - xxxxxxx Edited text for demo purposes.</li>
                <li><b class="red">CeMAP but little or no mortgage selling experience</b> - xxxxxxx Edited text for demo purposes.</li>
            </ul>

nothing unusual that i can see?

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Google Rank Extractor -> Perl beta with FusionCharts
 
I made test htm and css files from your examples (css snippet + this little htm snippet) and it works fine for me!

There must be more to it.
A non-italic setting for a higher level, perhaps for the containing DIV section?

[navy]"We had to turn off that service to comply with the CDA Bill."[/navy]
- The Bastard Operator From Hell
 
Me too, both the red text in the <b> tag and the text outside are italicized.

Are you setting anything else on the <b> with the "red" class other than color?

Better yet would be to provide a link to the page in question. Using any debugger such as Firebug, or Element Inspector may reveal any conflict in your CSS.

----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Web & Tech
 
I have not applied a font-style anywhere in the CSS apart from the one I have shown.

No Phil , just red!

here is the URL.....

Code:
[URL unfurl="true"]http://www.homeloanpartnership.com/new/da_firms.asp[/URL]


"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Google Rank Extractor -> Perl beta with FusionCharts
 
I think you were right the first time Feherke!

My fonts might be screwed, dunno how or what I need to do to put them right?



"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Google Rank Extractor -> Perl beta with FusionCharts
 
OK, i just looked on the Boss's machine and it shows normal font and italic for the <li> , on my machine ALL text on the page seems to be italic?

I have done an enlarged screen shot to show what I mean!



"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Google Rank Extractor -> Perl beta with FusionCharts
 
 http://www.homeloanpartnership.com/new/font-issue.gif
Hi

If your browser supports add-ons, I would try to visit that page with disabled add-ons. ( In FireFox use the Help | Restart with Add-ons Disabled... command or start it with -safe-mode parameter. )

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top