The place for more technical questions for those who want to create new pagetypes or bespoke functionality.

Align tab in tab navigator vertically on small screens

Plus d'informations
il y a 4 ans 1 mois #8191 par Windesheim
I use the tab navigator quite regularly to segment information. However, when I visit the page on my mobile device (Android phone) the tab of the tab navigator don't align vertically, which I think makes more sense on small screens.

The attached screenshot shows how the tabs organise themselves on my mobile device. Is there a way to insert some code that makes these tabs align vertically? By which every pane takes up its own horizontal space?

Kind regards,
Arman
Pièces jointes :

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 4 ans 1 mois #8192 par ronm
Hi
I'm guessing that you want both the tabs and their panes to just to appear vertically rather than just the tabs and I'm not sure there is an easy solution to that. However if your are mainly concerned about just the tabs appearing vertically and retaining the navigation then I think there are two option:
1. use the accordion instead
2. try the following:
in a styles optional property at LO level add the following:
/* Smartphones (portrait and landscape)
*/
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
.nav-tabs > li {
clear: both;
}
}
This is in a media query so should only affect devices that match that query and should look like the attached screenshot.

HTH
Ron

Xerte developer & trainer
e-learning & m-learning consultant
mitchellmedia.co.uk | xerteacademy.com | learningapps.co.uk
Note: Support here is voluntary and meant for users to support each other.
Need direct commercial support with Xerte? mitchellmedia.co.uk/contact/
Pièces jointes :
Les utilisateur(s) suivant ont remercié: Windesheim

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 4 ans 1 mois #8193 par Windesheim
Réponse de Windesheim sur le sujet Align tab in tab navigator vertically on small screens
Works perfectly :)

Connexion ou Créer un compte pour participer à la conversation.

Modérateurs: JohnSmith
Temps de génération de la page : 0.150 secondes
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo