+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Overriding font-family with apply class dropdown

Overriding font-family with apply class dropdown

4 posts, 0 answered
  1. Stepahnie
    Stepahnie avatar
    18 posts
    Registered:
    19 May 2016
    20 Jul
    Link to this post

    I have created multiple classes, however there is one that I need the font-family to change, but this one does not show up in the drop-down menu. Why doesn't it work and is there a way to fix this? 

    CSS: 

    @font-face {<br>    font-family: "comic-book";<br>  src: url(~/Sitefinity/WebsiteTemplates/Template/App_Themes/template/Global/fonts/Comic-Book.otf);<br>   font-style: normal;<br> font-weight: normal;<br>}<br><br>.background {<br>  background-color: purple;<br>   color: white;<br>   border: solid 5px blue;<br> font-family: "comic-book";<br>}

  2. Victor Leontyev
    Victor Leontyev avatar
    65 posts
    Registered:
    01 Jul 2014
    20 Jul in reply to Stepahnie
    Link to this post
    Hi Stephanie. Your message looks unclear at all. Can you please provide more iinformation. As much as possible. And i will be glad to help you
  3. Stepahnie
    Stepahnie avatar
    18 posts
    Registered:
    19 May 2016
    20 Jul in reply to Victor Leontyev
    Link to this post

    Sorry thought I was being clear. I've been creating classes that are run through a stylesheet css file. I added them to the text editor xml in setting. Some classes are changing background color, border, etc. They show up and work perfectly find in the apply class drop-down in the content widget. However, one class has the property font-family (i.e action-comic) in it. The one class with the font-family change does not show up in the apply class dropdown. Is there a reason why it does not show up? Hopefully his is more clear.

  4. Victor Leontyev
    Victor Leontyev avatar
    65 posts
    Registered:
    01 Jul 2014
    20 Jul in reply to Stepahnie
    Link to this post

    Yes, this is clear, but is not enough. I can't predict your css, how you apply it and how you put classes. 

    It is easy to debug CSS issues with Developer Tools in any browser. As i understand (from your posts in this forum), you feel difficulties with that, write me to victor(dot)leontev(at)gmail.com and i'll show and explain to you how to debug this king of issues. 

4 posts, 0 answered