[SOLVED] Undesired blank spaces between blocks + color background for webpage

More
8 months 5 days ago - 8 months 4 days ago #76181 by agnoletti
Hello Sir,
  1. I'm trying to build the website  studentsupportitaly.com/ with Page Builder CK Pro.
  2. The purpose is to have a light-gray background color (#EAEAEA) in any blocks and between them, unless differently set in the Page Builder.
  3. 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).
  4. Not even ChatGPT was able to help me get rid ot those white spaces between blocks (which appear only when zooming-in a lot).
  5. 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.
  6. 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.

More
8 months 5 days ago #76182 by ced1870
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

Joomlack Webmaster and Developer

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

More
8 months 5 days ago #76183 by agnoletti
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!

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

More
8 months 5 days ago #76184 by agnoletti
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?

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

More
8 months 5 days ago #76186 by Chrysant
Try to write something like this in PageBuilder </> (Custom CSS):
Code:
.maincontent{ background-color:#EAEAEA; }
The following user(s) said Thank You: ced1870, agnoletti

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

More
8 months 5 days ago #76187 by ced1870
Chrysant has the answer :)
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

Fast and powerful creation, customizable and responsive.

Read More

We have 646 guests and no members online