Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apply Calibri (Body) font to text

I have a div and in this div I want to display some text in Calibri (Body) font.

How can I do this?

This is the css I have been given :

.an_account_join_1 {     float:left;     width:100%;     color:#000000;     font-family:Calibri (Body);     letter-spacing:2px;     font-size:14px;     text-align:center;     margin:20px 0px;     }    

This is the div:

<div class="an_account_join_1">Individual Free Membership</div> 

There is no font style displayed with this font family.

When I look at the firebug output there is no style for font family.

like image 698
Kichu Avatar asked May 30 '12 04:05

Kichu


People also ask

How do you use Calibri body font?

Open a new slide and add a new textbox. Then, set the textbox font to Calibri (Body) Then, add a new textbox and set the font to regular Calibri. Now, go to Design -> open small popup under Variants section and click Fonts option, then click Customize Fonts to set a new font family.

How do I get Calibri body font in Word?

"Calibri (Body)" means that Calibri is specified for the document theme which is currently applied to your document. If you scroll through the list of fonts, you should be able to locate "Calibri" (without "(Body)"). Note that you can change the default font in the Font dialog box (Ctrl+D).

Is there a difference between Calibri and Calibri body?

In Word, the Body font just displays a little darker and Calibri Light (Heading) font appears a little lighter, as its name implies. That is the only difference.

How do I use Calibri font in CSS?

css file in root/templates/gk_template_name/css directory : Code: Select all. body { font-family: Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif;} and then just remember to enable "Use override CSS" option in template advanced settings tab.


2 Answers

There is no such font as “Calibri (Body)”. You probably saw this string in Microsoft Word font selection menu, but it’s not a font name (see e.g. the explanation Font: +body (in W07)).

So use just font-family: Calibri or, better, font-family: Calibri, sans-serif. (There is no adequate backup font for Calibri, but the odds are that when Calibri is not available, the browser’s default sans-serif font suits your design better than the browser’s default font, which is most often a serif font.)

like image 132
Jukka K. Korpela Avatar answered Oct 22 '22 00:10

Jukka K. Korpela


change the font type for div use

.an_account_join_1{ font-family:"Calibri, sans-serif"; } 

for the main menu in WordPress

#primary-menu{     font-family:"Calibri, sans-serif";     } 
like image 42
The Coding Bus Avatar answered Oct 22 '22 02:10

The Coding Bus