Skip to main content
Best Answer

Changing font


JZenker
Guide II
Forum|alt.badge.img+1

Any idea on how to update the font used in my custom buttons? Trying to get them to match the custom content widget font

 

 

My CSS:

/* Custom Buttons PU Page */

.button_PU_page {
  border-radius: 4px;
  background-color: #105074;
  border: none;
  color: #FFFFFF;
  font-style: bold;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 28px;
  text-align: center;
  padding: 28px;
  height: auto;
  width: 100%;
  transition: all 0.5s;
  cursor: pointer;
}

.button_PU_page span {
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: 0.5s;
}

.button_PU_page span:after {
  content: '\00bb';
  position: absolute;
  opacity: 0;
  top: 0;
  right: -20px;
  transition: 0.5s;
}

.button_PU_Page:hover span {
  padding-right: 25px;
}

.button_PU_page:hover span:after {
  opacity: 1;
  right: 0;
}

My Html on the widget:

<a href="/pages/384/trace-power-user-guides">
<button class="button_PU_page"><span>Power User Guides</span></button>

</a>

Any help would be super appreciated - I’ve tried so many different lines of code but nothing is working 

Best answer by JZenker

Figured it out for anyone curious!

Adding

font-family: Arial, Helvetica, sans-serif;

to the CSS, but then also calling it in the HTML with one of the options in your font family like this 

<span style="font-family:Helvetica;">Power User Poll</span></button></a>

finally did the trick!

 

View original
Did this post help you find an answer to your question?

4 replies

lrnlab
Hero III
Forum|alt.badge.img+8
  • Hero III
  • 4854 replies
  • July 18, 2023

following...


JZenker
Guide II
Forum|alt.badge.img+1
  • Author
  • Guide II
  • 234 replies
  • July 26, 2023

Poking for help - 

 

Anyone know what code I could add to either the CSS or HTML shown above to make the button display as Helvetica? Thanks!


JZenker
Guide II
Forum|alt.badge.img+1
  • Author
  • Guide II
  • 234 replies
  • Answer
  • July 28, 2023

Figured it out for anyone curious!

Adding

font-family: Arial, Helvetica, sans-serif;

to the CSS, but then also calling it in the HTML with one of the options in your font family like this 

<span style="font-family:Helvetica;">Power User Poll</span></button></a>

finally did the trick!

 


JZenker
Guide II
Forum|alt.badge.img+1
  • Author
  • Guide II
  • 234 replies
  • July 28, 2023

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings