# How to change the weight of the "b" tag (CSS)

**URL:** <https://forums.ankiweb.net/t/how-to-change-the-weight-of-the-b-tag-css/25401>\
**Category:** Card Design\
**Created:** [December 16, 2022, 12:18am UTC](https://forums.ankiweb.net/t/how-to-change-the-weight-of-the-b-tag-css/25401 "2022-12-16T00:18:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jannes](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@Jannes](https://forums.ankiweb.net/u/Jannes)\
**Post date:** [December 16, 2022, 12:18am UTC](https://forums.ankiweb.net/t/how-to-change-the-weight-of-the-b-tag-css/25401/1 "2022-12-16T00:18:57Z")

</div>

I have the note-type from the picture underneath.  
The problem I’m facing is that I bold the words that I don’t know with the “b” tag when creating a card.  
I want to stick to the principle of bolding them, but I noticed that it is very hard to see characters with many strokes on the phone, because the “bold-effect is too strong”. How can I solve this problem/is there a way to tell how “thick” the bold of the “b” tag should be?  
Thanks in advance.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/4/406e0d26dab77681a807a9fb735a9c3aa9735325.png)

---

<div class="post-metadata">

**Author:** ![curiousboy](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@curiousboy](https://forums.ankiweb.net/u/curiousboy)\
**Post date:** [January 4, 2023, 7:50pm UTC](https://forums.ankiweb.net/t/how-to-change-the-weight-of-the-b-tag-css/25401/2 "2023-01-04T19:50:02Z")

</div>

Yes there seems to be a way although I havent tested it but it should work.

```css
.mobile b {
    font-weight: ...
}

```

[https://docs.ankiweb.net/templates/styling.html#platform-specific-css](https://docs.ankiweb.net/templates/styling.html#platform-specific-css)

> **[CSS font-weight property](https://www.w3schools.com/cssref/pr_font_weight.php)**
>
> W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [February 3, 2023, 7:50pm UTC](https://forums.ankiweb.net/t/how-to-change-the-weight-of-the-b-tag-css/25401/3 "2023-02-03T19:50:13Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
