I have a navigation menu in which I have icons positioned after the text using CSS :after:
a.pro-serv:after {
content: url('../imgs/pro.png');
position: absolute;
top: 65px;
left: 50%;
margin-left: -31px;
}
The icons are set to sit under the text using absolute positioning. However, on a responsive site, as the navigation items shrink in width, some of the icons become too wide and do not scale proportionally. I am struggling to adjust their sizes dynamically based on screen size changes. Is there a solution for ensuring that the icons react appropriately to changing sizes?
Thank you in advance for any insights.