0

I have the following function inside of a css file.

#portfolio .portfolio-box .portfolio-box-caption {
  display: block;
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  color: #fff;
 opacity: 0;
  background: rgba(13, 13, 13, 0.1);
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

I've changed the parameters values of the rgba function to something like:

background: rgba(255, 255, 132, 0.1);

but the changes are not visible in my browser. I have also deleted the cached browser's data but didn't get any result.

Please help me with that ! Thanks in advance.

Ovidiu
  • 101
  • 9

4 Answers4

2

I think the problem is that you are setting the property opacity to zero. Try to remove the line 'opacity: 0' or change it to a higher value.

Lin Kassem
  • 25
  • 7
1

Try opening Developer Tools in Chrome, then on the Network tab you can disable caching for your website.enter image description here

Kriszta
  • 575
  • 5
  • 19
0

You should implement fingerprinting of your assets (CSS, JS, perhaps even images in case you often change them). As long as you're developing on your localhost, caching and clearing the cache is easy, but as soon as you get live users, you can't make them clear cache and the only way to propagate changes in assets (CSS, JS, images, fonts) to all users is via fingerprinting. How that is done, exactly, depends largely on your build process and your entire stack. In essence, fingerprinting just adds a version query to your asset links. Eg., your CSS style won't be linked as style.css but it'll be linked as style.css?v=1 and then at next change, v=2, etc. Or it could have a random query based on last change timestamp or some other way.

l.varga
  • 861
  • 6
  • 14
0

Change opacity from 0 to 0.5:

opacity: 0.5;

Change "a" in rgba from 0.1 to 0.8

background: rgba(13, 255, 13, 0.8);

Or disabling chrome cache like it is explain here Disabling Chrome cache for website development

Community
  • 1
  • 1
b2ok
  • 552
  • 6
  • 13