Site logo

Archived topic

Format tag cloud

11 replies · Started by Mohit on October 3, 2018

Viewing posts 1–12 of 12

Hi,

I want to show tag cloud of categories in Footer but can't format it well.
I want to show tag cloud like this: http://prntscr.com/l1nnen

What CSS should I use?

Thanks

Hi there,

if you can add the tag cloud to the footer widget then i can help with some CSS to make the style you need.

Give this a shot:

.tagcloud {
    text-align: center;
}

a.tag-cloud-link {
    font-size: 1em !important; 
    margin: .25em;
    text-transform: capitalize;
    word-break: break-word;
}

a.tag-cloud-link:before {
    content: '\2022'; 
    font-size: 1.5em;
    margin-right: 0.5em;
}

Try this:

@media (max-width: 420px) {
    .tagcloud {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
        text-align: left;
    }
    a.tag-cloud-link {
        width: 45%;
    }
}

Hi,

It didn't worked.

Thanks

Ooops can you try the edited code above, i added an extra hyphen. Once done can you flush any caches.

Hey David,

Now its working but I was wondering is it possible to get bullets align in a straight line in mobile view?

http://prntscr.com/l225sy as shown and marked in red line.

Thanks

Updated code here with a text-align property.

Now it looks great.

Thanks :)

You're welcome :)

This archived topic is closed to new replies.