Support the ongoing development of Laravel.io →
posted 1 year ago
Last updated 5 months ago.
0
moderator Solution

Hey,

you could update your base css file to include custom styling for your content lists.

To do that you could for example add a custom css class to your prepared body div like this:

                <div class="mb-5 prepared-body">
                    {!! $article->prepared_body !!}
                </div>

Then add a custom directive to your resources/css/app.css file like this:

.prepared-body ul {
    margin: 0.5rem 0rem;
    list-style-type: disc;
}

Afterwards rebuild your app.css file using laravel mix (if that's what is used) and you're good to go.

1
Solution selected by @mbeachmountain

Thanks @tomhatzer for your solution. Also gave me some better understanding of how it works. Thanks

1

Sign in to participate in this thread!

Full Stack Europe

Your banner here too?

Marco mbeachmountain Joined 15 Sep 2021

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.