Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

[NOT SOLVED] Is there any way to stylize <details> (accordion) as bootstrap 5 "nav-tabs" or create something like nav-tabs themselves here?

A topic by Sírıfys-Al created 99 days ago Views: 113 Replies: 2
Viewing posts 1 to 2
(6 edits)

What am I trying to achieve is: https://toyhou.se/SIRIFYS-AL

The code’s like here: https://www.w3schools.com/bootstrap/bootstrap_tabs_pills.asp

I tried using

<details><summary>click to see more!</summary>content 1</details>
<details><summary>click to see even more than more!</summary>content 2</details>

The problem is that whenever I add more than one of those “accordions”, they sort in a column, but I need them to appear in a row (even tables don’t work).

I don’t believe it’s impossible with HTML and CSS only, but I’m not very good at it, so I’d appreciate any help.

Moderator(+1)

You probably need custom CSS.

(1 edit)

I have it! I’m just not sure what exactly I should write there for this result, I need help with code. :“D

This topic has been auto-archived and can no longer be posted in because there haven't been any posts in a while.