Next.js Discord

Discord Forum

Can't get proper result of ol or ul tag in next project

Unanswered
Silver Marten posted this in #help-forum
Open in Discord
Silver MartenOP
Do you guys, can able to use ol or ul tags in next-tilwind project? Does it working perfectly??
Am using but can't get the ol or ul result.please check this. There is an ol tag.but doesn’t working.

https://fluidapifrmtend.vercel.app/terms

5 Replies

Plott Hound
tailwind preflight removes all default styles so you'd need to do something like: <ul class="list-disc"> or <ol class="list-decimal">

you can also disable preflight if you want: https://tailwindcss.com/docs/preflight#disabling-preflight
Siamese Crocodile
Tailwindcss have default styling to remove list-style and other padding, margin etc you need to manually set them
@Silver Marten You can also disable the preflight. Like that you have the default html styles back. See here: https://tailwindcss.com/docs/preflight#disabling-preflight
@Silver Marten solved?
@Silver Marten ?