# The art of dictionary layout

**URL:** <https://forum.freemdict.com/t/topic/41567>\
**Category:** 词典装饰排版交流分享\
**Created:** [2025 年9 月 9 日 19:42 UTC](https://forum.freemdict.com/t/topic/41567 "2025-09-09T19:42:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

作者： ![anon69319103](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/a/ce73a5/32.png) [@anon69319103](https://forum.freemdict.com/u/anon69319103)\
发布日期： [2025 年9 月 9 日 19:42 UTC](https://forum.freemdict.com/t/topic/41567/1 "2025-09-09T19:42:51Z")

</div>

> Updates and replies will always be added to the first floor.

# 三省堂国語辞典

## 1.1 red tag, red chars + red rectangle border

### example:

 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/5/a/5a69f3d2557abc7de2a5585297529cb3ee2bc938.png)

### practice:

```auto
<style>
    .aaa {
        color: red;
        border: 0.05rem solid red;
        
        /* font-size: 0.8rem;
        padding: 0.1rem;
        word-break: keep-all;
        border-radius: 0.1rem; */
    }
    .aab {
        color: red;
        border: 0.05rem solid red;
        
        font-size: 0.8rem;
        padding: 0.1rem;
        word-break: keep-all;
        border-radius: 0.1rem;
    }

</style>
<div>
    <span class="aaa">Caution</span>
    <span class="aab">Caution</span>
</div>

```

 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/7/1/71655f5b9a784e8f34cf58ee614905663c693d97.png)

- obviously, the latter is more pretty.

## 1.2 Heading number, white char + gray background rectangle

### example:

 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/e/7/e701143b6d2fbe5e2c971fb13e2af6ff0f65fd39.png)

### practice:

```auto
<style>
    .aac {
        color: white;
        background-color: gray;

        font-size: 0.8rem;
        padding: 0.1rem;
        border-radius: 0.1rem;
        
        font-weight: 900;

        width: 1rem;
        height: 1rem;
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }
</style>
<div>
    <span class="aac">1</span> xyz xyz xyz xyz xyz xyz xyz xyz
    <span class="aac">2</span> xyz xyz xyz xyz xyz xyz xyz xyz
    <span class="aac">3</span> xyz xyz xyz xyz xyz xyz xyz xyz
</div>

```

 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/c/a/ca119bfc5e740b4dcb6f65796ff3a2c8ee5b9b92.png)

## 1.3 more clearly when crossing lines, line-height

### example:

 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/b/7/b724ab401f84d52d7adcdb0bc894a919890f36ca.png)

- the latter one added `line-height: 2rem; `

## practice:

 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/6/d/6da943075d2f0aba7b125d999e292222aa45da48.png)

Adjusting this attribute is useful for Chinese characters.

For English characters, the default line-height (approximately 1.2rem, shown in red) is sufficient for readability - unlike the 1rem setting (shown in black) which makes text slightly harder to read.

# replies

> [@mdict6](#):
>

- Wow, the official app has a much more polished looking.
- My version is incomplete(especially the fonts, which are hard to design).

---

<div class="post-metadata">

作者： ![mdict6](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/m/8491ac/32.png) [@mdict6](https://forum.freemdict.com/u/mdict6)\
发布日期： [2025 年9 月 10 日 13:59 UTC](https://forum.freemdict.com/t/topic/41567/2 "2025-09-10T13:59:17Z")

</div>

![IMG_1441](https://forumcdn.freemdict.com/uploads/default/original/3X/b/e/bef824c228ad9eefde358280a9c254540fc731fc.jpeg)  
 ![IMG_1442](https://forumcdn.freemdict.com/uploads/default/original/3X/9/5/955ca147fbc03e64ccac5e8cba22434ee83f7bc1.jpeg)
