Kunena Menu
Odd behavious when adding border to module
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
Odd behavious when adding border to module was created 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.
9 years 10 months ago #39549
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Odd behavious when adding border to module
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
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.
9 years 10 months ago - 9 years 10 months ago #39550
by Boradan
Replied by Boradan on topic Odd behavious when adding border to module
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





