In short
Ahrefs flags "HTTPS page links to HTTP CSS" when a secure page loads a stylesheet with an http:// URL. Browsers treat CSS as active mixed content and block it, so the styles never apply. Change the stylesheet URL to HTTPS or host the file yourself.
Like scripts, stylesheets loaded over HTTP on an HTTPS page are blocked by browsers.
How to fix it
Search the page source for
href="http://on<link rel="stylesheet">tags.Load the same file with
https://. If it works, update the tag.Check theme options, header code, and old font or icon library embeds.
Look inside CSS files too:
@import url(http://...)andurl(http://...)for fonts and backgrounds.
WordPress: a database search-and-replace on http://yourdomain.com fixes most internal references; external ones need editing by hand.
Shopify, Webflow and Wix: check custom code for old HTTP font or library links.
Custom builds: use relative paths for your own files and HTTPS URLs for all third-party ones.
This guide isn't affiliated with or endorsed by Ahrefs.
Related issues
Sources and references
MDN, Mixed content
web.dev, What is mixed content?

About the author
Nazmul Nikhil
Head of SEO & Assistant Manager, Digital Marketing at Notionhive
SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.



