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

marges bootstrap

  • rloenen
  • Onderwerp Auteur
  • Offline
  • Premium lid
  • Premium lid
Meer
6 jaren 6 maanden geleden #6233 door rloenen
marges bootstrap werd gestart door rloenen
Margins bootstrap
I experience that the margins between the different parts take up a lot of space and I would like to minimize that. I want to use them specially for smartphones.
Is there a way to do that?
Ronald
Bijlagen:

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
6 jaren 6 maanden geleden #6238 door Fay
Beantwoord door Fay in topic marges bootstrap
You would have to add some css to the styles optional property for your project. It's the kind of thing that you would probably need to explore the layout and existing css of the page in your browser's developer tools to find what changes work best for you.

Changing the values of the following css selectors would change some of the spacing in your screenshot (the values shown below are the default values so you would need to reduce these)
Code:
.page-header { padding-bottom: 9px; margin-top: 20px; margin-bottom: 30px; } .accordion { margin-bottom: 20px; }

If you wanted the changes to only be seen on smaller devices (where the menus move to the top rather than in the left menu) then you can wrap the css in a media max-width selector like this:
Code:
@media (max-width: 767px) { .page-header { padding-bottom: 9px; margin-top: 20px; margin-bottom: 30px; } .accordion { margin-bottom: 20px; } }

Hope this helps
Fay
De volgende gebruiker (s) zei dank u: rloenen

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

  • rloenen
  • Onderwerp Auteur
  • Offline
  • Premium lid
  • Premium lid
Meer
6 jaren 6 maanden geleden #6239 door rloenen
Beantwoord door rloenen in topic marges bootstrap
thanks Fay,

This will certainly help. If I want to permanently change this and perhaps some parts of the css in question, in which file should I do that?
regards
Ronald

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
6 jaren 6 maanden geleden #6240 door Fay
Beantwoord door Fay in topic marges bootstrap
The css for the default Bootstrap theme is here: modules/site/parent_templates/site/common/css/custom.css

Changes are likely to be overriden on upgrade though so if you're likely to make lots of changes you might want to make a custom theme.
Themes go in this folder: themes/site

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

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