0
I have a Bootstrap template that I’m trying to apply to a project, but I have a huge difficulty importing the . eot, . svg. ttf, . Woff, . otf
These files are in the directory: NomeProjeto\Content\fonts
My . css file I call tries to use these files is in the directory: NomeProjeto\Content\fonts
.
I’m trying to reference it this way:
@font-face {
font-family: 'FontAwesome';
src: url('../fonts/fontawesome-webfont.eot?v=4.2.0');
src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.2.0') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff?v=4.2.0') format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.2.0') format('truetype'), url('../fonts/fontawesome-webfont.svg? v=4.2.0#fontawesomeregular') format('svg'); font-weight: normal;
font-style: normal;
}
Guys, any idea?
Thank you.
If your css file is in the same directory as the fonts directory, you do not need to add the ".. /" before the path. In my view this is it. I don’t quite understand your doubt.
– Lucas Trevisan