I want to make my website's colored logo using font-family : comic sans MS
, I don't want to make an photo of my logo, I just want to do it using CSS and HTML, I have used @font-face
:
Here is my css:
@font-face {
font-family: 'MyWebFont';
src: url('webfont.eot'); /* IE9 Compat Modes */
src: url('webfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('webfont.woff2') format('woff2'), /* Super Modern Browsers */
url('webfont.woff') format('woff'), /* Pretty Modern Browsers */
url('webfont.ttf') format('truetype'), /* Safari, Android, iOS */
url('webfont.svg#svgFontName') format('svg'); /* Legacy iOS */
}
.logo{
font-family:'MyWebFont', Fallback, "comic sans MS"! important;
font-size : 20px! important;
margin-left : 33%! important;
}
.logo:visited{
text-decoration: none! important;
}
.logo:active{
text-decoration : none! important;
}
.logo:hover{
text-decoration : none! important;
text-shadow: -3px 1px 13px yellow;
transition-duration : 0.2s;
}
On Desktop Screen it looks good 'comic sans MS' text, but on mobile devices my font-family 'comic sans MS' does not applied