what the best way to add a custom font in HTML page
2 posters
Page 1 of 1
what the best way to add a custom font in HTML page
what the best way to add a custom font in HTML page to work even if the user dose not have the font installed on his OS
and to force the font i want to be in the page
with any way
thanks
and to force the font i want to be in the page
with any way
thanks
Last edited by Michael_vx on July 27th 2015, 12:52 pm; edited 1 time in total (Reason for editing : Solved)
Michael_vx- Forumember
- Posts : 659
Reputation : 29
Language : Arabic and some English
Location : Egypt
Re: what the best way to add a custom font in HTML page
You can usually import a font with CSS, such as Font Awesome or Google Fonts for example. The domain the fonts are hosted on however, needs to be cross domain. Otherwise, the font cannot be imported to your forum from another website.
Re: what the best way to add a custom font in HTML page
i want to custom a HTML page
and do you mind Explain a bit more
and do you mind Explain a bit more
Michael_vx- Forumember
- Posts : 659
Reputation : 29
Language : Arabic and some English
Location : Egypt
Re: what the best way to add a custom font in HTML page
Using google fonts for example, click "quick use" and it'll take you to a page with three codes. Since it's an HTML page you're using grab the standard link code and paste it in your head section.
Example :
Then you can use the font in a inline <style> tag.
Example :
- Code:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<meta charset="UTF-8"/>
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'/>
</head>
<body>
</body>
</html>
Then you can use the font in a inline <style> tag.
- Code:
<style type="text/css">
body {
font-family:'Open Sans', sans-serif;
}
</style>
Re: what the best way to add a custom font in HTML page
i understand now
thanks a lot
thanks words are not Enough
i still have much a lot to learn
thank you again
this topic is solved
thanks a lot
thanks words are not Enough
i still have much a lot to learn
thank you again
this topic is solved
Michael_vx- Forumember
- Posts : 659
Reputation : 29
Language : Arabic and some English
Location : Egypt
Re: what the best way to add a custom font in HTML page
You're welcome ^^
Topic locked
Google fonts would be the best font serving site that I know of, but I'm sure there may be more if you look. Have a great day !
Topic locked
Google fonts would be the best font serving site that I know of, but I'm sure there may be more if you look. Have a great day !
Similar topics
» How to Embed a Google Docs Form into an HTML page using HTML Pages Management
» Custom HTML Page images problem.
» Remove the footer on a custom HTML page
» Switch user page out with a html page
» How to create a custom HTML page to send newsletter/email?
» Custom HTML Page images problem.
» Remove the footer on a custom HTML page
» Switch user page out with a html page
» How to create a custom HTML page to send newsletter/email?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum