Service Portal -Why the Widget specific CSS styles are not being applied in Service Portal?
Sometimes the widget CSS specified on the service portal in ServiceNow does not work, I have found a Solution for this, 1 When we give background color or color to any part of the page on the portal, we have to keep in mind that whenever we give background color or color, keep the hex value correct, because the hex value of any color is of 6 digits. If we keep the value more than 6 digits then the CSS of our entire widget will not work. For example:- background-color: #ffffffff; To background-color: #ffffff; 2. When we give box shadow or color value in RGB in any part of the page on portal then we have to keep in mind that the color value we are keeping should not be in RGB, if the value is in RGB So our CSS widget will not work. For this we should use RGBA instead of RGB. For example:- box-shadow: 0 3px 6px 0 rgb(0, 0, 0, 0.16); To box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);