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

  • Windesheim
  • Onderwerp Auteur
  • Offline
  • Nieuw lid
  • Nieuw lid
Meer
4 jaren 1 maand geleden #8191 door 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
Bijlagen:

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
4 jaren 1 maand geleden #8192 door 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/
Bijlagen:
De volgende gebruiker (s) zei dank u: Windesheim

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

  • Windesheim
  • Onderwerp Auteur
  • Offline
  • Nieuw lid
  • Nieuw lid
Meer
4 jaren 1 maand geleden #8193 door Windesheim
Beantwoord door Windesheim in topic Align tab in tab navigator vertically on small screens
Works perfectly :)

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Moderators: JohnSmith
Tijd voor maken pagina: 0.132 seconden
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo