| | |
CSS Text ttf/eot
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Oct 2009
Posts: 61
Reputation:
Solved Threads: 0
I am trying to incorporate an eot/ttf file named "steve.ttf"/"steve.eot" into a CSS, but I am seeing no changes being made. The font items are located in the same folder as the html document.
Here is the code I am using:
and I'm trying to insert it into this:
Do you see any errors (I'm trying to use firefox and IE)?
Here is the code I am using:
HTML and CSS Syntax (Toggle Plain Text)
@font-face { font-family: MyCustomFont; src: url("steve.eot"); src: local("steve.ttf") format("truetype"); } p.style1{ font: MyCustomFont; }
and I'm trying to insert it into this:
HTML and CSS Syntax (Toggle Plain Text)
<p class="style1">This shoud be My New Font</p>
Do you see any errors (I'm trying to use firefox and IE)?
•
•
Join Date: Jan 2009
Posts: 86
Reputation:
Solved Threads: 13
1
#4 20 Days Ago
What is font: MyCustomFont? Wrong css.
Must be: 'font' is short hand property. You must use this for shorthand.
Must be:
HTML and CSS Syntax (Toggle Plain Text)
font-family: MyCustomFont;
HTML and CSS Syntax (Toggle Plain Text)
font: [font-weight] [font-style] [font-variant] [font-size/line-height] [font-family]; /* font: MyCustomFont is wrong */
1
#6 20 Days Ago
local is the local pc font store, I think, from the web server, even a web server installed locally it requires a url
something like http://webfonts.info/ font-face browser support details on browser differences
something like
css Syntax (Toggle Plain Text)
@font-face { font-family: GraublauWeb; src: local("Lucida Grande"), url("fonts/GraublauWeb.otf") format ("opentype"); }
Last edited by almostbob; 20 Days Ago at 10:20 am.
Failure is not an option It's included free
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
1
#8 20 Days Ago
sames as IE6/png, conditional css with eot fonts for IE
or wait till IE supports css3 properly (looks out window, watching for Hell to freeze over) http://webfonts.info/wiki/index.php?...ernet_Explorer
or wait till IE supports css3 properly (looks out window, watching for Hell to freeze over)
css Syntax (Toggle Plain Text)
<!--[if IE]> @font-face { font-family: GraublauWeb; src: url("GraublauWeb.eot"); } <![endif]-->
Last edited by almostbob; 20 Days Ago at 12:14 pm.
Failure is not an option It's included free
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
•
•
Join Date: Oct 2009
Posts: 61
Reputation:
Solved Threads: 0
0
#9 20 Days Ago
•
•
•
•
what are u supposed to do for ie that doesn support true type fonts then?
you can also translate them into .eot files that IE recognizes, and include the
HTML and CSS Syntax (Toggle Plain Text)
src: local(XXXX.eot);
![]() |
Similar Threads
- Text overlay on image using css??? (HTML and CSS)
- CSS for making list to center (HTML and CSS)
- populating text field in firefox not working (JavaScript / DHTML / AJAX)
- CSS Style sheets (HTML and CSS)
- CSS (HTML and CSS)
- CSS alignment (HTML and CSS)
- Selectively Printing only Certain Divs (javascript/css question) (JavaScript / DHTML / AJAX)
- CSS syntax and commands (JavaScript / DHTML / AJAX)
- CSS text styling (HTML and CSS)
Other Threads in the HTML and CSS Forum
- Previous Thread: Rollover
- Next Thread: Moving Vertical Navigation
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7






