Tagged: color section, LayerSlider, overlap
-
AuthorPosts
-
June 8, 2018 at 5:08 pm #970140
Hello all,
I’m working on a page layout with an Advanced Layer Slider on top.
Below, there’s a Color Section, the right column of which holds an image. Now, is there any way to adjust this Color Section so that it will overlap the Advanced Layer Slider above by 100px? I tried:
#slideroverlap {
z-index: 10000;
padding-top: 0;
margin-top: -100px;
}It seems to pull up the color section, but the content is hidden behind the Layer Slider.
As always, I would really appreciate any ideas and pointers.
Many thanks.
June 9, 2018 at 9:53 am #970346Hey MadRhino,
Please post a link to where we can see the elements in question so that we can have a closer look.
Best regards,
RikardJune 9, 2018 at 11:49 am #970382Sure. No problem Rikkard. The site is not public as of yet; so, you will need to login with the admin login credentials provided below.
As you can see on the welcome page, the image underneath of the LayerSlider is moved up, as it should be, but it’s still covered by the LayerSlider. And this is despite having used a Z index of 10000 along with !important.
Many thanks for looking into that.
Best,
Karl
June 10, 2018 at 7:11 am #970630Hallo Karl,
Thanks for that. Please try this CSS as well:
.home #layer_slider_1 { z-index:0; }
Grüß,
RikardJune 10, 2018 at 7:22 pm #970848Thanks Rikard. That works. You rock!
Karl
June 11, 2018 at 8:49 am #970992Hi Karl,
Great, glad we could help :-)
Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
RikardJune 11, 2018 at 1:49 pm #971182Hello Rikard,
I was just trying to duplicate the effect with the Color Section overlapping the Layer Slider on a secondary page, but I keep running into the same problem with Layer Slider covering the content of the color section.
I already created another class (because the negative margin will be greater for that color section) and I tried modifying the code you supplied above, but to no avail. :-(
So, how would I need to go about modifying the z-index of this Layer Slider, let’s say on the services page I just created? And, in addition to that, on other secondary pages?
Many thanks for looking into that again. I sincerely appreciate it.
Best,
June 12, 2018 at 6:22 am #971536Hi Karl,
If you want the CSS I posted to apply globally, then you can use this CSS:
#layer_slider_1 { z-index:0; }
If you need to target specific pages then you will have to find the page ID class for that page. If you inspect the page in question in your browser then you will find it in the body tag. It looks something like page-id-123. So then you could use code like this:
.page-id-123 #layer_slider_1 { z-index:0; }
Best regards,
RikardJune 12, 2018 at 10:21 am #971618Thanks Rikard,
I see what you are saying.
So, knowing now that all Layer Sliders seemingly all have the same global id (#layer_slider_1), I followed your lead and went with:
#layer_slider_1 {
z-index:0;
}Following this rational, this should apply a z-index:0 to all Layer Sliders?
So, as far as this concerns my welcome page, working with
#slideroverlap {
padding-top: 0;
margin-top: -100px;
z-index: 10000 !important;
}is working just fine.
Now here is what I’m struggling with: On secondary pages, such as services, legal, etc. I’m using another smaller Layer Slider with a canvas height of only 400px. Now applying the following code
#slideroverlap_2 {
padding-top: 0;
margin-top: -200px;
z-index: 10000 !important;
}won’t do anything. If I increase the negative top margin to -300px, it would create the desired effect; however, since, it’s a response site layout, it will cause the Color Section below to move up almost to same level as the main menu.
Why is that? Since the the Color Section below has no padding applied, shouldn’t any negative margin cause the Color Section to overlap Layer Slider. Why is that working perfectly on the index page and here it doesn’t?
Many thanks for helping me get through this. It’s vital to my overall design and layout; so, I appreciate your help and patience with me.
Best,
June 13, 2018 at 7:34 am #972074Hi Karl,
I’m not sure I understand the exact problem you are having, I’m looking at the services page, but the “Because no roof is like any other.” section seems to placed where it should and the image from your second section is overlapping the first section. Is that not how it’s supposed to look? Please post screenshots of the problem if I have misunderstood you.
Best regards,
RikardJune 13, 2018 at 10:49 am #972210Thanks for babysitting this issue and helping to find a solution.
As a matter of fact, you have been looking at the wrong color section.
The color section I want to overlap layer slider is the one right underneath of the layer slider on the services page. You can see it already has the slideroverlap_2 class assigned to it. You can find the corresponding styling in the Quick CSS section of the Enfold General Styling section.
The effect I’m trying to achieve is the exact same as on the welcome page – with the only distinction that the negative margin on the services page and all other secondary pages should be -200px.
Simply put, I want the color section (slideroverlap_2) on the services page to overlap layer slider by -200px (link). It’s already working, if the page is viewed on a smaller screen size, but on larger screens it’s off and positioned below. It’s driving me crazy because none of these issues occur on the welcome page. It’s the exact same effect I want to achieve – just with a larger negative margin – on secondary pages.
I hope this makes it clearer now. Again, many thanks for looking into this.
June 14, 2018 at 7:43 am #972652Hi Karl,
Thanks for the screenshot and clarification. It looks good on my end using a 13″ laptop, but I can imagine that it would not overlap on larger screens. This is what is difficult about things like these, you might need to use several media queries to get it looking right on all resolutions. You could also try to use % instead of pixels, 10% for instance? If that doesn’t work then you will need media queries.
Best regards,
RikardJune 18, 2018 at 8:20 pm #974457Just a quick note to let you know that working with a percentage-based negative top margin did do the trick for me, Rikard.
Many thanks for that.
June 19, 2018 at 7:07 pm #974869Hi MadRhino,
I was going to have a look, but credentials did not work. Could you please update the credentials?
Best regards,
VictoriaJune 20, 2018 at 11:34 am #975212Thanks for looking into this Victoria: I appreciate it.
I checked the login credentials and they seem to work. As you can see from previous responses from Rikard, he was able to login as well. Either way, the issue has been resolved in the mean time.
Many thanks again.
June 20, 2018 at 1:22 pm #975281Hi MadRhino,
Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.