Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development


Reply
 
Share Thread Tools Display Modes
Old 10-14-2009, 12:23 AM   #1
Admin. Don't bug or I'll byte.
 
Bugbyte's Avatar
 
Join Date: Sep 2004
Location: Corning, NY
Posts: 6,143
Bugbyte is a splendid one to beholdBugbyte is a splendid one to beholdBugbyte is a splendid one to beholdBugbyte is a splendid one to beholdBugbyte is a splendid one to beholdBugbyte is a splendid one to beholdBugbyte is a splendid one to behold
Help with CSS and custom fonts in html

Trying to use a custom font on a simple web page and it works except when I invoke the @font-face command it actually prints that on the page. Any CSS experts explain to me what I'm doing wrong here?

It's a page that displays a speedometer. Here's a link and the code follows:

Code:
@font-face { font-family: "TexasLED"; src: url(/var/www/fonts/TEXASLED.TTF); format("truetype"); } <div style="background-image:url(/images/speedo.gif); background-repeat:no-repeat; width:400px; height:380px;"> <div style="position: absolute; top:160px; left: 120; width:200px; height:25px; font-family: TexasLED; font-size: 300%; color: #1589FF"> 120 mph </div>

__________________
Want to:
-Find out about the iBug?
-Stop being a newbie? Take a look at the FAQ Emporium?
-Find out about carPC's in just 5 minutes? View the Car PC 101 video
-Help me kill my car PC
-Watch live video streams from my mobile PC? Check it out here.
-Where is the iBug?
Bugbyte is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 10-14-2009, 12:47 AM   #2
Maximum Bitrate
 
colin's Avatar
 
Join Date: Dec 2006
Posts: 620
colin will become famous soon enoughcolin will become famous soon enough
Your page is timing out.
__________________
2001 Mustang Convertible Worklog
Indigo Custom Frontend (Flash/Delphi)
Blog

Code:
Currently: - Working on my new product! Wiring: |■■■■■■■■■■■■■■■■■■--| Trunk: |■■■-----------------| Sound: |■■■■■■--------------| Screen: |■■■■■■--------------|

colin is offline   Reply With Quote
Old 10-14-2009, 04:03 AM   #3
Low Bitrate
 
Join Date: Jan 2008
Posts: 66
coreyspeed is on a distinguished road
it should be this
<style>
font-face {
font-family: "TexasLED";
src: url(/var/www/fonts/TEXASLED.TTF);
format("truetype");
}
</style>

i think this is right ant done it for a while though
coreyspeed is offline   Reply With Quote
Old 10-14-2009, 08:48 AM   #4
Admin. Don't bug or I'll byte.
 
Bugbyte's Avatar
 
Join Date: Sep 2004
Location: Corning, NY
Posts: 6,143
Bugbyte is a splendid one to beholdBugbyte is a splendid one to beholdBugbyte is a splendid one to beholdBugbyte is a splendid one to beholdBugbyte is a splendid one to beholdBugbyte is a splendid one to beholdBugbyte is a splendid one to behold
Thanks, that was the trick! Funny that none of the tutorials mention the style tag. I guess I ought to learn a little more about CSS.

@colin - oops, I linked to my internal ip. Here's the working link.
__________________
Want to:
-Find out about the iBug?
-Stop being a newbie? Take a look at the FAQ Emporium?
-Find out about carPC's in just 5 minutes? View the Car PC 101 video
-Help me kill my car PC
-Watch live video streams from my mobile PC? Check it out here.
-Where is the iBug?
Bugbyte is offline   Reply With Quote
Old 10-14-2009, 10:08 AM   #5
Variable Bitrate
 
hexxamillion's Avatar
 
Join Date: Dec 2007
Location: AZ
Posts: 373
hexxamillion is on a distinguished road
Quote: Originally Posted by Bugbyte View Post
Thanks, that was the trick! Funny that none of the tutorials mention the style tag. I guess I ought to learn a little more about CSS.

@colin - oops, I linked to my internal ip. Here's the working link.

Yeah. Unless you developed an external stylesheet (.css file), which you do not include the <style> tag, you need to specify it in the normal html document so the computer knows what to do with it and how to display it.
__________________
"Live Free!!!...It's all about Open Source"
Worklog: '05 Nissan Altima Project (Intel D945GCLF2D)
Project #2:Solar Power Integration
Vimeo Vids:Project Videos
Blog: Hexxamillion.com- 100% Powered by Wind Energy
Twitter:http://twitter.com/hexxamillion
hexxamillion is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




All times are GMT -5. The time now is 02:59 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics