Ich habe ein Problem mit @ Font-Face-Regel in meinem CSS. In einigen Stylesheets funktioniert es perfekt in anderen funktioniert es überhaupt nicht ...@ font-face funktioniert manchmal manchmal und nicht in anderen Zeiten?
Wie Sie im Snippet sehen können, verwende ich eine externe Datei für meine Schriftart, aber in diesem speziellen Fall funktioniert es nicht ...
Irgendwelche Gedanken jemand?
Endlose Dankbarkeit wird Ihr Anteil sein :)
@charset "utf-8"
@font-face {
font-family: sinhala;
src: url(fonts/Sinhala.ttc);
}
#wrapperportfolio4 {
\t width: 45%;
\t float:left;
\t position:relative;
\t margin-left: 5%;
\t margin-top: -42.5%;
\t box-shadow: 3px 5px 4px 0px black;
\t height: 20vw;
\t
\t
}
#wrapper4trans {
\t width: 45%;
\t float:left;
\t position:relative;
\t margin-left: 5%;
\t margin-top: -42.5%;
\t background-color: black;
\t opacity: 0.5;
\t height: 20vw;
}
#box1title {
\t width: 65%;
\t font-family: sinhala;
\t font-size: 1.0vw;
\t color: white;
\t margin-top: 2%;
\t text-align: center;
}
#box1img {
\t width: 60%;
\t position:relative;
\t float:left;
\t margin-left: 2.5%;
\t margin-top: 1.5%;
\t
}
#box1txt{
\t width: 25%;
\t position:relative;
\t float:left;
\t font-family: sinhala;
\t font-size: 1.0vw;
\t color: white;
\t margin-left: 5%;
\t margin-top: 5%;
\t text-shadow: 0px 2px 4px rgba(0,0,0,0.50);
}
#box1txt2{
\t width: 25%;
\t position:relative;
\t float:left;
\t font-family: sinhala;
\t font-size: 1.0vw;
\t color: white;
\t margin-left: 5%;
\t margin-top: 5%;
\t text-shadow: 0px 2px 4px rgba(0,0,0,0.50);
}
#box1link {
\t width: 25%;
\t position:relative;
\t float:left;
\t font-family: sinhala;
\t font-size: 1.0vw;
\t color: white;
\t margin-left: 5%;
\t margin-top: 5%;
\t text-shadow: 0px 2px 4px rgba(0,0,0,0.50);
\t cursor: pointer;
}
<div id="wrapperportfolio4">
\t <p id="box1title">www.pieterswebdesign.com</p>
\t
\t \t \t <img id="box1img" src="images/box1img.png" />
\t \t \t \t <p id="box1txt">Pieter's Web Design is een beginnende webdesigner gevestigd in Gent.</p>
\t \t \t \t \t <p id="box1txt2">Voor betaalbare professionele websites is dit de ideale oplossing.</p>
\t \t \t \t \t \t <a id="box1link" href="https://www.pieterswebdesign.com">www.pieterswebdesign.com</a>
\t </div>
Ok, ich werde einen Blick in das thx für die Antwort werfen :) – Pieter
Danke, schön von der richtigen Antwort zu mir zu kopieren 10 Minuten nachdem ich meine veröffentlicht! –
Oops srr dafür wurde thx für die Antwort angepasst :) – Pieter