Jump to content

Recommended Posts

Hi guys,

I have a background image, and then a fixed div.

 

My issue is when i scroll the page, i can see the scrollable content underneath the fixed div (transparent background, because of whole page image background).

 

How can I make the scrollable div content not viewable behind the fixed div?

 

Any method, css, jquery, PHP, is appreciated, cheers in advance.

Link to comment
https://forums.phpfreaks.com/topic/253417-disappear/
Share on other sites

Yeah not quite following what you're getting at. Code would help.

 

Otherwise if you want to just make it so you can't see through the div you could set a background colour on it...

 

But i'm not usre that's what you're trying to achieve.

 

Hi guys,

I have a background image, and then a fixed div.

 

My issue is when i scroll the page, i can see the scrollable content underneath the fixed div (transparent background, because of whole page image background).

 

How can I make the scrollable div content not viewable behind the fixed div?

 

Any method, css, jquery, PHP, is appreciated, cheers in advance.

Link to comment
https://forums.phpfreaks.com/topic/253417-disappear/#findComment-1299000
Share on other sites

As i said, i'm not fully following what you are trying to achieve. if you post your code with a more indepth description might be able to come up with something better :)

 

Drongo_III, putting a background color would solve this issue, however, the whole page background is an image, so that is not an option :(

Link to comment
https://forums.phpfreaks.com/topic/253417-disappear/#findComment-1299774
Share on other sites

Hi guys,

I have a background image, and then a fixed div.

 

My issue is when i scroll the page, i can see the scrollable content underneath the fixed div (transparent background, because of whole page image background).

 

How can I make the scrollable div content not viewable behind the fixed div?

 

Any method, css, jquery, PHP, is appreciated, cheers in advance.

 

you may need to explain your issue a little further. However if i understand you correctly, you are saying that you have a transparent background so you can see the bg image, however this is also making your fixed div transparent as well? This is tellig me that you are using the opacity: property for your transparent background. Instead of opacity, use an rgba color (alpha color), this will allow you to make the background transparent, but it wont affect the opacity of child elements inside of the transparent div.. So something like background: rgba(0,0,0,.4); (black background 40% opaque)

Link to comment
https://forums.phpfreaks.com/topic/253417-disappear/#findComment-1300061
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.