# 分类描述浮动到右侧

**URL:** <https://meta.discourse.org/t/category-description-floating-to-the-right/393053>\
**Category:** Development\
**Created:** [2026年一月9日 11:22 UTC](https://meta.discourse.org/t/category-description-floating-to-the-right/393053 "2026-01-09T11:22:04Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)\
**Post date:** [2026年一月9日 17:33 UTC](https://meta.discourse.org/t/category-description-floating-to-the-right/393053/2 "2026-01-09T17:33:23Z")

</div>

> [@pomodoren](#):
>
> ```plaintext
> .category-logo.aspect-image {
> --max-height: 70px !important;
> width: auto !important;
> max-width: none !important;
> height: auto !important;
> display: block !important;
> margin-bottom: 0.5em;
> }
> 
> .category-logo.aspect-image img {
> display: block;
> width: calc(var(--max-height) * var(--aspect-ratio)) !important;
> max-width: none !important;
> height: auto !important;
> max-height: var(--max-height) !important;
> }
> 
> ```

试试这个：

```scss
.category-logo.aspect-image img {
    float: left;
    padding-right: 10px;
}

```

另外，你可能过度使用了 `!important`

---

_[View the full topic](https://meta.discourse.org/t/category-description-floating-to-the-right/393053)._
