Dreevoo.com | Online Learning and Knowledge Sharing
Home | Programs | Programming languages | HTML | Set up Custom Font on a Web Page
Click to view your profile

Set up Custom Font on a Web Page

If you would like to enrich your web page with some not ordinary font, follow this interesting CSS tutorial.

  Author: NikMan | Version: CS3 | 28th June 2013 |  

First of all, copy font file into the same directory of web page.

Also recommended:


Then open the web page in code mode.


Go under the tag <title> (see my pic).


Then enter or copy the following code:

<style type="text/css">
@font-face {font-family:Steelfish; src: url("font_steelfish.ttf"); }

In my case, I have downloaded font Steelfish from dafont.com and if you need help, just place your question on forum.


We have set up the font and it's name. It's also pisitioned in the same direcotry as web page (see the pic).


Now go to position above the tag </style> (see the pic).


And after that place the followoing code:

.test {font-family: Steelfish; color: #000000; font-size: 40px; text-decoration: none; }


Go to desing mode now.


Select the text on page.


Set up the new style, you have just selected.


Press key F12, to check out your final result.

Internet Explorer will probalby not show the font correctly and you will have to transofmr the .ttf file first and add a new style in CSS too. For more information drop us a comment.

  Please login to post a comment
  Click to open user profile  
thefansbuzz, 19th Feb 2023, 7:33 PM
Cheap SMM Panel Social Media Marketing is a huge field with a lot of competition. If you want to stand out from the crowd, you need to know how to find ways to make your content go viral. If you are interested in using social media to market your product, this service is perfect for you. The panel gives you access to hundreds of different social media sites, so that you can find new ways to market your business. Visit our website at: https://thefansbuzz.com/
  Click to open user profile  
timothyferris, 18th Oct 2023, 4:00 AM
The instructions you provided explain in great detail how to set up custom fonts on a website using CSS https://2048go.com
  Click to open user profile  
smmpanel001, 7th Nov 2023, 8:36 AM
I can easily handle numerous social media networks, such as Instagram, TikTok, Facebook, and Twitter, thanks to https://smmpakpanel.com, which act as primary hubs.

  Click to open user profile  
Easy smm pane, 8th Nov 2023, 11:09 AM
  Click to open user profile  
boles9, 11th Dec 2023, 8:26 PM
백링크업체's SEO audits exceeded my expectations. They transformed my site's SEO strategy effectively.https://backlinkhigh.com
  Click to open user profile  
boles9, 24th Dec 2023, 2:33 PM
축구중계 is my trusted companion for immersive soccer experiences, offering top-tier streaming quality.https://bmtv24.com
  Click to open user profile  
boles9, 24th Dec 2023, 2:49 PM
I can't get enough of 오피쓰 and its real-time chat—it's addictive!https://www.opsite.biz/오피쓰
  Click to open user profile  
boles9, 5th Jan 2024, 7:35 AM
It's easy to navigate 부산비비기 for massage options.https://www.busanbi.com
  Click to open user profile  
boles9, 7th Jan 2024, 8:52 AM
Effortless browsing: Finding officetel info on 오피가이드 is effortless. Love the user-friendly interface.https://www.오피가이드.co
  Click to open user profile  
boles9, 11th Jan 2024, 1:39 PM
오피스타 is the ultimate solution for locating massage parlors nearby. It's efficient and reliable.https://www.opstar.shop
online learning made for people