Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Working with a legacy VB.net site where IE was the recommended browser. We moved to Chrome as the recommended browser but it comes with quirks not found in IE or Edge. We have a lot of transparent .png images where the couple pixels around the image gets trimmed in Chrome but not the other browsers. I know a lot of designs would want to trim/crop those pixels but in our case we want to keep them.

Is there a fast and easy setting to retain those pixels edging the images?

Thanks

What I have tried:

HTML changes to no avail. Hoping not to have to add code to do this. Can't figure out which property to change for this.
Posted
Comments
Richard Deeming 19-Oct-21 4:06am    
Chrome won't do that on its own. There must be something in your code which is causing it to happen. Right-click on the image and inspect the element and its applied CSS rules to see if you can spot the problem.
ehwash 20-Oct-21 9:12am    
Not sure what is causing this so I adjusted the positioning of other controls surrounding certain images. This is on a lot of pages but not too many. This is only happening in Chrome unfortunately.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900