Category description floating to the right

Hi there,

For the community that we have we are making some updates to the landing page and wanted to achieve something like community-openstreetmap has.

So far we made category logo smaller through following the Making custom CSS changes on your site. But when it comes to category-description - got stuck.


.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;
}

.category-description {
margin-top: 0.5em;
overflow: hidden;
color: var(--primary-high);
}

What we want

What we have

try this:

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

also, you are probably overusing !important

6 Likes

(post deleted by author)

Worked like a charm! Thank you!

Will remove some of !important :slight_smile:

2 Likes