Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
raffi
Experienced
Topic Author
Posts: 44
Joined: 15 Nov 2018, 09:34

image background

04 Jul 2020, 14:33

Hi,

I can't find how/why backuground doesn't apply on the main page text content (like you example here https://demo.photo.gallery/examples/plu ... und-image/)

I get this:  https://snipboard.io/R7hsPj.jpg
is there something wrong with context ?

Image
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13997
Joined: 30 Sep 2006, 03:37

Re: image background

05 Jul 2020, 00:11

If you can send a link, I can diagnose. Can't do much from a screenshot only ... Maybe you have custom CSS ...
 
User avatar
raffi
Experienced
Topic Author
Posts: 44
Joined: 15 Nov 2018, 09:34

Re: image background

05 Jul 2020, 06:43

 
User avatar
mjau-mjau
X3 Wizard
Posts: 13997
Joined: 30 Sep 2006, 03:37

Re: image background

05 Jul 2020, 11:12

I see you have in your custom CSS:
Code
.main {background: #ffffff !important;}
The above is setting a white background on the "main" element, which is OVER the page element that contains the background image.
 
User avatar
raffi
Experienced
Topic Author
Posts: 44
Joined: 15 Nov 2018, 09:34

Re: image background

05 Jul 2020, 12:52

Oh ! you're right !
I would be happy to remove it but i have some difficulties after doing that (that's why it has been set this way in the past)

If I remove from CSS the code you pointed, then, even if I set white background on page menu suffers ... https://snipboard.io/fOAdJp.jpg
see here : https://www.photographe-mariage.fr/port ... ategories/
(same for sub folder is white is set : https://www.photographe-mariage.fr/port ... eparatifs/)

I let the unwanted design online, in order to let you take a look.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13997
Joined: 30 Sep 2006, 03:37

Re: image background

05 Jul 2020, 22:10

First of all, I can't see what that style I mentioned in my last post has to do with the menu ... The .main {background: #ffffff !important;} was applied on the "main" element, which is the section that starts BELOW the menu. It' basically contains most of the page, except the HEADER/menu and FOOTER. It seems now that you have made other changes also?

Perhaps more importantly though, it seems you have added A LOT of not-so-well-planned CSS styles to your X3 website. Perhaps the most interesting (or fundamentally wrong), is that you have selected the X3 BLACK skin (which has a black background, with light text), and then you have added a WHITE background, and therefore had to change all text colors also.

Normally, if you really need to customize the X3 skin so heavily, it would make most sense to FIRST select a skin color that resembles the style you want to achieve. For example, if you want a light or white background, you would select WHITE skin (or daylight). Then, most existing colors would match without you having to overwrite them. Now that you have selected a BLACK skin, and manually changed the background to WHITE, it causes lots of colors that won't match in the X3 skin, as you can see in your menu.

But then having said all the above, to make things worse, I see you have set a WHITE background for in the background plugin for this page (in your example). How do you expect that to work when your menu text is white? This is unclear to me.
 
User avatar
raffi
Experienced
Topic Author
Posts: 44
Joined: 15 Nov 2018, 09:34

Re: image background

06 Jul 2020, 06:23

Style choice was also the issue previously in my story.
I think problem was "not being able to change some custom parameter around the menu if I choose the white style".
Black style was necessary (not just the wrong choice)
Anyway, I don't feel comfortable with all there parameters, so I think I go back to previous configuration.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13997
Joined: 30 Sep 2006, 03:37

Re: image background

06 Jul 2020, 06:37

Ok, well I can understand that the skins are not perfect for all. There is custom CSS available, although that is "advanced" and does have side-effects naturally.

About the original question though, the background plugin is actually working, but you had a WHITE background on the .main element which overlays the background plugin. You could remove that CSS style (and that CSS style only) and it would work. The only reason I mentioned other issues with your custom CSS, is because these issues seem inherent with your custom CSS approach.
 
User avatar
raffi
Experienced
Topic Author
Posts: 44
Joined: 15 Nov 2018, 09:34

Re: image background

06 Jul 2020, 06:42

Will probably look deeper, but as I'm absolutely not css expert, for now, it's ok, and never mind for the moment about the image background.
Thanks for your feedback and detailed comments karl.