Kunena Menu
[SOLVED] Undesired blank spaces between blocks + color background for webpage
8 months 5 days ago - 8 months 4 days ago #76181
by agnoletti
[SOLVED] Undesired blank spaces between blocks + color background for webpage was created by agnoletti
Hello Sir,
- I'm trying to build the website studentsupportitaly.com/ with Page Builder CK Pro.
- The purpose is to have a light-gray background color (#EAEAEA) in any blocks and between them, unless differently set in the Page Builder.
- I put that light-gray background color (#EAEAEA) in all the blocks, but when zooming-in or narrowing the page, white spaces appear above and below every box (SEE ATTACHED IMAGE).
- Not even ChatGPT was able to help me get rid ot those white spaces between blocks (which appear only when zooming-in a lot).
- I just wanted that the whole page has always that light-gray background color (#EAEAEA) everywhere, unless I put a different background color in the specific block in the Page Builder CK Pro.
- How to achieve that? How to get rid of any white space when zooming-in or narrowing the webpage?
Thank you for your attention!
Marco (Italy)
Last edit: 8 months 4 days ago by agnoletti. Reason: I have edited the subject to indicate that: is SOLVED + there is also the issue about webpage background (solved too)
Please Log in or Create an account to join the conversation.
8 months 5 days ago #76182
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Undesired blank spaces between blocks
Hi
this is typically a CSS margin fusion issue (well known in the CSS world since years). It comes from the fact that the paragraphs have some margins, and placed into a container without margins. The margins of the paragraph are working outside of the container
What you can do :
Edit the styles of the block >> margins >> padding >> add 1px padding for example
It shall fix it
CEd
this is typically a CSS margin fusion issue (well known in the CSS world since years). It comes from the fact that the paragraphs have some margins, and placed into a container without margins. The margins of the paragraph are working outside of the container
What you can do :
Edit the styles of the block >> margins >> padding >> add 1px padding for example
It shall fix it
CEd
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
8 months 5 days ago #76183
by agnoletti
Replied by agnoletti on topic Undesired blank spaces between blocks
I put the suggested 1px padding in Row, Block and element (text), but with no result.
None of those blocks (Row, Block and element) have any internal margin.
Is there a way to force the desired light-gray background color (#EAEAEA) in the page (article) built with Page Builder CK Pro, so when blocks separate from each other, that light-gray background color is always the filling color between them?
Thank you!
None of those blocks (Row, Block and element) have any internal margin.
Is there a way to force the desired light-gray background color (#EAEAEA) in the page (article) built with Page Builder CK Pro, so when blocks separate from each other, that light-gray background color is always the filling color between them?
Thank you!
Please Log in or Create an account to join the conversation.
8 months 5 days ago #76184
by agnoletti
Replied by agnoletti on topic Undesired blank spaces between blocks
I could finally get rid of all spaces between blocks by:
- adding that 1px internal padding in the first block (image header)
- having ChatGPT writing a log index.css code for the default template of Joomla, where I specifically asked to remove any spacing between blocks.
But a question remains: How to force the webpage (article) built with Page Builder CK Pro to have a specific background color?
- adding that 1px internal padding in the first block (image header)
- having ChatGPT writing a log index.css code for the default template of Joomla, where I specifically asked to remove any spacing between blocks.
But a question remains: How to force the webpage (article) built with Page Builder CK Pro to have a specific background color?
Please Log in or Create an account to join the conversation.
8 months 5 days ago #76186
by Chrysant
Replied by Chrysant on topic Undesired blank spaces between blocks
Try to write something like this in PageBuilder </> (Custom CSS):
Code:
.maincontent{ background-color:#EAEAEA; }
Please Log in or Create an account to join the conversation.
8 months 5 days ago #76187
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Undesired blank spaces between blocks
Chrysant has the answer 
you can better use this css code, because it seems that there is no "maincontent" area in your template
you can better use this css code, because it seems that there is no "maincontent" area in your template
Code:
.pagebuilderck {
background: #eaeaea;
}
Joomlack Webmaster and Developer
The following user(s) said Thank You: agnoletti
Please Log in or Create an account to join the conversation.
Time to create page: 0.205 seconds




