Support the ongoing development of Laravel.io →
posted 3 years ago
Last updated 2 years ago.
0

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.

mbeachmountain liked this reply

1
Solution selected by @mbeachmountain

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

tomhatzer liked this reply

1

Sign in to participate in this thread!

Eventy

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?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.