Panneau N0C 04 EN 250 250
Get 15% discount on our partner PlanetHoster with the code PHA-ceikay

Odd behavious when adding border to module

More
9 years 10 months ago - 9 years 10 months ago #39548 by Boradan


The above image shows the difference between 2 modules (aligned modules)
The only difference in the css for them is the fact that the one on the right has a 1 pixel border.

Adding this border seems to be adding 9 pixels of padding at the top of the module (or the title) without changing any of the css settings.


**EDIT**

I see the issue now.
ALL heading sizes in bootstrap have a 9 pixel margin.
For some reason this isn't applied until a border is added...
Changing the formatting of all h1-h6 titles in the template to 0 margin fixes the issue
Last edit: 9 years 10 months ago by Boradan.

Please Log in or Create an account to join the conversation.

More
9 years 10 months ago #39549 by ced1870
Hi
this is a normal behavior and in fact a CSS bug, called "collapsing margins"
you can ask google about it to have some more advanced explanations ;)

There is also a little video about this in the template creator component help page...
CEd

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
9 years 10 months ago - 9 years 10 months ago #39550 by Boradan


Just sorted it out by manually changing all H1 >> H6 titles to have margin of 0px (even though they had nothing in the margin fields)
Last edit: 9 years 10 months ago by Boradan.

Please Log in or Create an account to join the conversation.

Time to create page: 0.199 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 1126 guests and 2 members online