Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
laxina
Experienced
Topic Author
Posts: 48
Joined: 16 Mar 2017, 21:41

Gallery top padding with page intro

13 Jul 2017, 09:37

Hi Karl,

when I use page intro with gallery below, there is a padding between the page intro, please check out the image attached.

I use the code you give me already in the custom css
Code
.gallery {

  margin-top: 0 !important;
is it possible that I can remove the padding? 

thanks

Leon 
Attachments
2.jpg
2.jpg (270.29 KiB) Viewed 2011 times
1.jpg
1.jpg (296.58 KiB) Viewed 2011 times
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: Gallery top padding with page intro

13 Jul 2017, 11:28

With the intro module, it is necessary for us to add extra space to the first module by default. Else, the first text/title/image would be squeezed up right up to the intro without any space. In your case, try this:
Code
.module-first {
    margin-top: 1px !important;
}
I am pretty sure you want 1px, but if not, change it to 0.
 
User avatar
laxina
Experienced
Topic Author
Posts: 48
Joined: 16 Mar 2017, 21:41

Re: Gallery top padding with page intro

13 Jul 2017, 19:27

thanks a lot, works great!