0
Good afternoon Personal,
If you can help with the codes below, as you can see I’m new with html and CSS. I searched but could not make work the font I want from a source link I made myself. If it’s possible to do it the way I should?
I need a code for CSS and a code for dry html.
Att.
<center><p><font size="5px" font="sittella" url=(http://teste-teste.ucoz.com.br/sittella.ttf); color="8ffff4">DVD ON DEMAND</font></p>
<!DOCTYPE html>
<html>
<head>
<style>
@font-face {
font-family: myFirstFont;
src: url(http://teste-teste.ucoz.com.br/sittella.ttf);
}
div {
font-family: myFirstFont;
}
</style>
</head>
<body>
<h1>The @font-face Rule</h1>
<div>With CSS, websites can finally use fonts other than the pre selected "web-safe" fonts.</div>
<p><b>Note:</b> Internet Explorer 8 and earlier, do not support the WOFF format (only supports EOT format).</p>
</body>
</html>
Matthew, then import place I can do. The problem I have is that I needed it to go through the link because I’m going to put it in an html page where if the person doesn’t have the source works for that person too and I don’t have to leave it on a server.
– kasten
If there is a solution to do this would thank Matthew Daniel
– kasten
@Kasten if the source is on your server, it will work for your user normally, because the source will be loaded along with the site, and the best is that you will not depend on external servers that if they crash will leave your page without source.
– Mateus Daniel
then more I have no server I uploaded the font to ucoz.com.br as I will host the site ai wanted q it to load the font from the link of the same site. But I guess that’s not possible?
– kasten
If you are going to host the site on ucoz.com.br and the source is also hosted there, isn’t it better to do it all in a single directory? this way you can load the source directly into the same project, in reality will give in the same rs
– Mateus Daniel
If this answer has helped you, don’t forget to mark it as solved ;)
– Mateus Daniel
It didn’t. Because I can’t pull the link, it’s not working. Is there a site that I can upload the "font" and get it to work?
– kasten
I can only do it by google fonts and if the font is on my computer then right.
– kasten
Let’s go continue this discussion in chat.
– Mateus Daniel
Can you give me one more helping?
– kasten
can speak @Kasten
– Mateus Daniel
The example of yesterday that you sent me, can do another example but with two different fonts one for div and one that works in <p> but are different fonts?
– kasten
@Kaster for you to manage to do this, just create another @font-face by importing the font you want
(ex. @font-face { font-family: MinhaFonte; src: url('pasta/nome_da_fonte.ttf'); })
and then apply the css rule to the<div>
and the<p>
desired, example:div, p { font-family: MinhaFonte }
.– Mateus Daniel