About 53 results
Open links in new tab
  1. Using custom fonts using CSS? - Stack Overflow

    Aug 27, 2012 · Today there are four font container formats in use on the web: EOT, TTF, WOFF, and WOFF2. Unfortunately, despite the wide range of choices, there isn't a single universal …

  2. css - How to Apply global font to whole HTML document - Stack …

    Aug 17, 2016 · You should be able to utilize the asterisk and !important elements within CSS. html * { font-size: 1em !important; color: #000 !important; font-family: Arial !important; } The asterisk …

  3. Using CSS to set default font - Stack Overflow

    Aug 8, 2013 · The * selector, however, will apply the CSS font-family rule to the text of all elements. Note that CSS uses a specificity priority, and if you have any other CSS selectors …

  4. Applying a single font to an entire website with CSS

    Apr 6, 2012 · Here you defined no second font so the default serif font will be used, and it'll be Times, Times New Roman except maybe on Linux. Two options there: use @font-face if your …

  5. How to change font-family of drop down's list item?

    Oct 3, 2013 · I have a drop-down that lists font families. Like Tahoma, Arial, Verdana, etc. I want to change the font-family of each drop-down item according to the value it represents. Just like …

  6. css - Font scaling based on size of container - Stack Overflow

    I'm having a hard time getting my head around font scaling. I currently have a website with a body font-size of 100%. 100% of what though? This seems to compute out at 16 pixels. I was under …

  7. How to make my font bold using css? - Stack Overflow

    Nov 22, 2014 · Another approach would be to use the font-weight property. You can achieve inline, or via a class or id. Let's say you're using a class. .className { font-weight: bold; } …

  8. html - How can I change the Bootstrap default font family using …

    Jun 6, 2014 · you should change css variable --bs-body-font-family and set it whatever font you want, like below: :root { --bs-body-font-family: myFontName; } Because you are using compiled …

  9. How to change text transparency in HTML/CSS? - Stack Overflow

    May 31, 2012 · And by the way, the font tag is deprecated, use css to style the text div { opacity: 0.5; } Edit: This code will make the whole element transparent, if you want to make ** just the …

  10. In CSS how do you change font size of h1 and h2

    Jul 5, 2022 · If you like wanted to have EVERY single h1 to have like let's say the font size as 40 px, then you can do this in the css file: h1{ font-size: 40px; } This makes it so that EVERY …

Refresh