Padding or Margin inside Layout Grids

Questions related to the Responsive Web Design tools of WYSIWYG Web Builder.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/respon ... esign.html
Please read this first before posting any questions! Also check out the example project to get an idea how the RWD concept works.

Responsive Web Design FAQ:
http://wysiwygwebbuilder.com/forum/view ... 10&t=63817
Post Reply
lpug
 
 
Posts: 111
Joined: Thu Apr 05, 2018 10:15 am

Padding or Margin inside Layout Grids

Post by lpug »

I think I know the answer to this but I'll ask anyway just incase I'm missing something.

I have a layout grid with 2 cells, within each cell I have set a background image and set it to cover (so it covers whole cell) I did this with the other cell as well. When I preview its as expected 2 images side by side in the layout grid. Is there anyway to add padding betwen the images? when they are set to cover?

Reason for this process is that I want to overlay text, if I place it in the cell as an images then I cannot overlay any text.

Thanks
User avatar
Pablo
 
Posts: 22429
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Padding or Margin inside Layout Grids

Post by Pablo »

A background image will always fill the entire column, it is not affected by padding or margin.
If you want to add spacing then you can add a nested grid.
Or use a flex grid instead. In a flex grids you can set gaps between columns.
lpug
 
 
Posts: 111
Joined: Thu Apr 05, 2018 10:15 am

Re: Padding or Margin inside Layout Grids

Post by lpug »

As usual thanks Pablo, just for my information I thought nested grids is not good practice?
User avatar
Pablo
 
Posts: 22429
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Padding or Margin inside Layout Grids

Post by Pablo »

It will add extra code to the page, but it works.
Post Reply