Site logo

Archived topic

Styling on the "list" block

17 replies · Started by Huseyin on May 9, 2020

Viewing posts 1–15 of 18

Hey Generatepress Team,

Need quick help with the "list" block on Gutenberg, the default looks plain. Could something give help for getting it to look better? please check the screenshot.https://ibb.co/v1249qJ

Thanks

Hi there,

Any chance you can link us to the site in question?

You can edit the original topic and use the private URL field.

Let me know :)

Thanks, I have attached a link on the original topic

Thanks working like a charm, wondering what is the code for dot points?

What style are you looking for ?

Try this:

.entry-content ul {
    list-style: none;
    margin-left: 0;
}

.entry-content ul li:before {
    content: '';
    display: inline-block;
    position: relative;
    width: 5px;
    height: 5px;
    margin: 0 15px 0 25px;
    top: -5px;
    border-radius: 10px;
    background-color: #ccc;
}

Legend, it works. Thank you very much David, Have a good one.

You're welcome

Try this:

.entry-content ul:not([class^="wp"]) {
    list-style: none;
    margin-left: 0;
}

.entry-content ul:not([class^="wp"]) li:before {
    content: '';
    display: inline-block;
    position: relative;
    width: 5px;
    height: 5px;
    margin: 0 15px 0 25px;
    top: -5px;
    border-radius: 10px;
    background-color: #ccc;
}

Try these instead:

ol {
    list-style: none !important;
    counter-reset: item;
}

ol li {
    counter-increment: item;
    margin-bottom: 5px;
    position: relative;
}

ol li:before {
    content: counter(item);
    display: inline-block;
    position: absolute;
    left: -2em;
    width: 1.2em;
    line-height: 1.2em;
    padding: 2px;
    background-color: #bbb;
    border-radius: 100%;
    color: white;
    text-align: center;
}

.entry-content ul {
    list-style: none;
}

.entry-content ul:not([class^="wp"]) li {
    position: relative;
}

.entry-content ul:not([class^="wp"]) li:before {
    content: '';
    display: inline-block;
    position: absolute;
    left: -1.5em;
    top: 0.5em;
    width: 0.25em;
    height: 0.25em;
    border-radius: 10px;
    background-color: #ccc;
}

much better, but there are small circle dots near social media button links

This archived topic is closed to new replies.