2

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

Cœur
  • 37,241
  • 25
  • 195
  • 267
shubham
  • 31
  • 2
  • 6

1 Answers1

0

For iphone / android phones. i think that .ttf and .svg would do the thing. if you want to use it. change MyWebFont to Comic Sans MS. the css code to use it should be :

font-family: "Comic Sans MS", cursive, sans-serif;
Cth103
  • 63
  • 5
  • The name of the font is for internal use only, so it doesn't really matter if you rename it as long as your rename it everywhere. THis indicates it is more likely to be another problem, be it with files or code somewhere. – somethinghere Jun 13 '16 at 16:18