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

marges bootstrap

Plus d'informations
il y a 6 ans 6 mois #6233 par rloenen
marges bootstrap a été créé par 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
Pièces jointes :

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

Plus d'informations
il y a 6 ans 6 mois #6238 par Fay
Réponse de Fay sur le sujet 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
Les utilisateur(s) suivant ont remercié: rloenen

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

Plus d'informations
il y a 6 ans 6 mois #6239 par rloenen
Réponse de rloenen sur le sujet 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

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

Plus d'informations
il y a 6 ans 6 mois #6240 par Fay
Réponse de Fay sur le sujet 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

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

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