How can I layer two images as a page background

jack.from.canada
118 Posts
jack.from.canada posted this 31 August 2023
Wishlist

An old website that I created with Artisteer had a vertical "sliver" of gradient colour that was tiled across the screen. On top of that was a .png file that featured a pattern. When overlaid onto the "sliver", the dual images provided a beautiful background for the website. How can I accomplish this same effect in Nicepage?

An old website that I created with Artisteer had a vertical "sliver" of gradient colour that was tiled across the screen. On top of that was a .png file that featured a pattern. When overlaid onto the "sliver", the dual images provided a beautiful background for the website. How can I accomplish this same effect in Nicepage?

Last edited 31 August 2023 by Support Team

Vote to pay developers attention to this features or issue.
7 Replies
Order By: Standard | Newest
Support Team
Support Team posted this 31 August 2023

Hello Jack,

Thanks for using Nicepage!

For a better understanding, please attach screenshots or a short video demonstrating your wish. We will try our best to help you.
...................................................
Sincerely,
George.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hello Jack, Thanks for using Nicepage! For a better understanding, please attach screenshots or a short video demonstrating your wish. We will try our best to help you. ................................................... Sincerely, George. Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
jack.from.canada
118 Posts
jack.from.canada posted this 01 September 2023

I can't really show you a screen shot because the old Artisteer website is no more. I have included a URL from the Wayback Machine Internet Archive, but it would be more practical to include a snippet of code from the website and the corresponding CSS file. It will better show what I'm talking about. And I will also include the graphic files referenced in that code snippet so you can see what it is I'm trying to accomplish within Nicepage.

From the HTML file...

<body>
<div id="art-main">
<header class="art-header">

From the CSS file that renders these classes...

#art-main
{
   background: #F2F5E5 url('images/page.jpeg') repeat-x scroll;
   background: url('images/pageglare.png') top center no-repeat, url('images/page.jpeg') repeat-x, #F2F5E5;
   margin:0 auto;
   font-size: 13px;
   font-family: Tahoma, Arial, Helvetica, Sans-Serif;
   position: relative;
   width: 100%;
   min-height: 100%;
   left: 0;
   top: 0;
   cursor:default;
   overflow:hidden;
}

and

.art-header
{
   -webkit-border-radius:0 0 5px 5px;
   -moz-border-radius:0 0 5px 5px;
   border-radius:0 0 5px 5px;
   border:1px solid #4C4539;
   margin:0 auto;
   background-repeat: no-repeat;
   height: 175px;
   background-image: url('images/object538245342.png'), url('images/header.png');
   background-position: 488px -13px, 0 0;
   position: relative;
   width: 800px;
   z-index: auto !important;
}

What we see in these snippets is code that displays TWO BACKGROUND IMAGES for the page background. The first image (page.jpeg) is a slim sliver of a multi-colored background, which is repeated horizontally across the screen as many times as is necessary to cover the screen; while the second image (pageglare.png) is a translucent file that features the image of clouds on a transparent background - so that the multi-colored strip can show through the transparent background. I know of no way in Nicepage to select MULTIPLE images as a page background. This leaves me having to define one of the images as the PAGE background, while defining the other as the HEADER and BLOCK backgrounds. But the way Nicepage is implemented, the HEADER and BLOCK images are displayed IN FRONT OF the PAGE background, and there is no z-setting available that allows me to change the order of displayed layers, so I cannot achieve the effect I want without compromising.

The closest I can come with the current version of Nicepage is to display the page.jpeg file as the PAGE background and then display the translucent pageglare.png file in the HEADER and again in the BLOCK so that the page background can show through the transparency. But this means the "clouds" are not being displayed as intended, but rather as a duplicate image (a portion of which is visible in the header area, and then the full image is visible in the block area).

There are two capabilities missing in Nicepage that would have allowed me to accomplish what I needed to accomplish.

1) Being able to select a TILED fill for an image in the header or block. If a TILED fill was available, I could have done the same type of tiled fill in the header and block that can currently be done at the page level.

2) Being able to select a z-index for the images (at the page and header/block level). If I was able to select which image would be displayed in front and which would be in back, I would be able to control the end-effect of what was visible to the user.

Of course, these are just "workarounds". The ultimate solution would have been able to select MULTIPLE images for the header, block and page backgrounds (as was implemented in Artisteer); with each of the images having independent control of how it would FILL the background (FILL, CONTAIN, TILE).

Here is a historic record of the Artisteer site as it looked recently before converting to Nicepage:
Cuddles Clothing for Kids (Artisteer version)

And here is the most recent version of the site, rendered with Nicepage:
Cuddles Clothing for Kids (Nicepage version)

I am enclosing the various graphic files referenced in the CSS as attachments to this post.

I can't really show you a screen shot because the old Artisteer website is no more. I have included a URL from the Wayback Machine Internet Archive, but it would be more practical to include a snippet of code from the website and the corresponding CSS file. It will better show what I'm talking about. And I will also include the graphic files referenced in that code snippet so you can see what it is I'm trying to accomplish within Nicepage. From the HTML file... <body> <div id="art-main"> <header class="art-header"> From the CSS file that renders these classes... #art-main { background: #F2F5E5 url('images/page.jpeg') repeat-x scroll; background: url('images/pageglare.png') top center no-repeat, url('images/page.jpeg') repeat-x, #F2F5E5; margin:0 auto; font-size: 13px; font-family: Tahoma, Arial, Helvetica, Sans-Serif; position: relative; width: 100%; min-height: 100%; left: 0; top: 0; cursor:default; overflow:hidden; } and .art-header { -webkit-border-radius:0 0 5px 5px; -moz-border-radius:0 0 5px 5px; border-radius:0 0 5px 5px; border:1px solid #4C4539; margin:0 auto; background-repeat: no-repeat; height: 175px; background-image: url('images/object538245342.png'), url('images/header.png'); background-position: 488px -13px, 0 0; position: relative; width: 800px; z-index: auto !important; } What we see in these snippets is code that displays TWO BACKGROUND IMAGES for the page background. The first image (page.jpeg) is a slim sliver of a multi-colored background, which is repeated horizontally across the screen as many times as is necessary to cover the screen; while the second image (pageglare.png) is a translucent file that features the image of clouds on a transparent background - so that the multi-colored strip can show through the transparent background. I know of no way in Nicepage to select MULTIPLE images as a page background. This leaves me having to define one of the images as the PAGE background, while defining the other as the HEADER and BLOCK backgrounds. But the way Nicepage is implemented, the HEADER and BLOCK images are displayed IN FRONT OF the PAGE background, and there is no z-setting available that allows me to change the order of displayed layers, so I cannot achieve the effect I want without compromising. The closest I can come with the current version of Nicepage is to display the page.jpeg file as the PAGE background and then display the translucent pageglare.png file in the HEADER and again in the BLOCK so that the page background can show through the transparency. But this means the "clouds" are not being displayed as intended, but rather as a duplicate image (a portion of which is visible in the header area, and then the full image is visible in the block area). There are two capabilities missing in Nicepage that would have allowed me to accomplish what I needed to accomplish. 1) Being able to select a TILED fill for an image in the header or block. If a TILED fill was available, I could have done the same type of tiled fill in the header and block that can currently be done at the page level. 2) Being able to select a z-index for the images (at the page and header/block level). If I was able to select which image would be displayed in front and which would be in back, I would be able to control the end-effect of what was visible to the user. Of course, these are just "workarounds". The ultimate solution would have been able to select MULTIPLE images for the header, block and page backgrounds (as was implemented in Artisteer); with each of the images having independent control of how it would FILL the background (FILL, CONTAIN, TILE). Here is a historic record of the Artisteer site as it looked recently before converting to Nicepage: [Cuddles Clothing for Kids (Artisteer version)][1] And here is the most recent version of the site, rendered with Nicepage: [Cuddles Clothing for Kids (Nicepage version)][2] I am enclosing the various graphic files referenced in the CSS as attachments to this post. [1]: https://web.archive.org/web/20190913223352/http://cuddlesclothingforkids.org:80/ [2]: https://cuddlesclothingforkids.org

Last edited 01 September 2023 by jack.from.canada

Support Team
Support Team posted this 01 September 2023

Hi Jack,

Maybe you could create a new image for your background that would contain a gradient with the cloud texture on top. Then you can use that single image as a background and it will fit the screen size.
Also if you still want to use two images please consider adding the custom CSS code in the theme.

...................................................
Sincerely,
Hella
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi Jack, Maybe you could create a new image for your background that would contain a gradient with the cloud texture on top. Then you can use that single image as a background and it will fit the screen size. Also if you still want to use two images please consider adding the custom CSS code in the theme. ................................................... Sincerely, Hella Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
jack.from.canada
118 Posts
jack.from.canada posted this 01 September 2023

I tried to create a single image combining the two graphic elements, but because one of the elements was simply a SLIVER, which does not cover the screen unless rendered in HTML, that was a difficult proposition.

I also had considered using custom CSS and I may still do that, but I figured it is a feature that could be useful within Nicepage itself.

If I resort to using custom CSS, I'm not sure how well that will work, since the PAGE background would need to be defined on a project-wide basis, and I don't know whether the CSS for the page background will render properly from the project level. I guess I can experiment to see how it works.

I tried to create a single image combining the two graphic elements, but because one of the elements was simply a SLIVER, which does not cover the screen unless rendered in HTML, that was a difficult proposition. I also had considered using custom CSS and I may still do that, but I figured it is a feature that could be useful within Nicepage itself. If I resort to using custom CSS, I'm not sure how well that will work, since the PAGE background would need to be defined on a project-wide basis, and I don't know whether the CSS for the page background will render properly from the project level. I guess I can experiment to see how it works.

Last edited 01 September 2023 by jack.from.canada

rdugaue
16 Posts
rdugaue posted this 05 September 2023

I had a new support ticket ready to go when I saw this come up. I'm having the exact same issue!

Previously, with Artisteer, the body itself was enclosed in a DIV tag that encompassed the entire page. In this case, "art-main".

artmain-div.jpg

This is important when manipulating a background on the page associated with more than one image or overlay. Nicepage is using the body class with u-body, but it's not within a DIV container. This causes a problem when trying to overlay two transparent images on the background of the page. IE:

background: url(../images/pageglare.png) no-repeat, url(../images/page.png) bottom left repeat-x, #333333;

Because there's no DIV container like the Artisteer generated theme, there's no reference to push the 2nd image to the bottom of the page so the two images appear one after the other.

You can see what I mean if you take a look at the Artisteer Joomla 3 website at: https://www.ceelectronics.com/

There's no way to manipulate two overlay images to do this without the body in a DIV tag. I tried putting the 2nd image into the footer class, but then its constrained within that DIV and does not display correctly. IE: https://staging.ceelectronics.com/

The body really needs to have a DIV tag in order to provide the flexibility to do something like this within the entire page of the website.

Thank you,

-Robert

I had a new support ticket ready to go when I saw this come up. I'm having the exact same issue! Previously, with Artisteer, the body itself was enclosed in a DIV tag that encompassed the entire page. In this case, "art-main". !artmain-div.jpg! This is important when manipulating a background on the page associated with more than one image or overlay. Nicepage is using the body class with u-body, but it's not within a DIV container. This causes a problem when trying to overlay two transparent images on the background of the page. IE: background: url(../images/pageglare.png) no-repeat, url(../images/page.png) bottom left repeat-x, #333333; Because there's no DIV container like the Artisteer generated theme, there's no reference to push the 2nd image to the bottom of the page so the two images appear one after the other. You can see what I mean if you take a look at the Artisteer Joomla 3 website at: https://www.ceelectronics.com/ There's no way to manipulate two overlay images to do this without the body in a DIV tag. I tried putting the 2nd image into the footer class, but then its constrained within that DIV and does not display correctly. IE: https://staging.ceelectronics.com/ The body really needs to have a DIV tag in order to provide the flexibility to do something like this within the entire page of the website. Thank you, -Robert
Support Team
Support Team posted this 06 September 2023

Robert,

We have such request in our wish list, however, it is not yet been realized, unfortunately.

...................................................
Sincerely,
Alan R.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Robert, We have such request in our wish list, however, it is not yet been realized, unfortunately. ................................................... Sincerely, Alan R. Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
rdugaue
16 Posts
rdugaue posted this 10 September 2023

Could you check and see if this request is scheduled and/or on a to-do list? My alternative, temporarily, would be to edit the index.php file and enclose the body in a DIV statement. Not ideal of course, but a work-around for now.

Thanks,

-Robert

Could you check and see if this request is scheduled and/or on a to-do list? My alternative, temporarily, would be to edit the index.php file and enclose the body in a DIV statement. Not ideal of course, but a work-around for now. Thanks, -Robert
You must log in or register to leave comments