Hiding inline SVG from older browsers with CSS namespaces

Developer
Size
1,836 Kb
Views
20,240

How do I make an hiding inline svg from older browsers with css namespaces?

We have two problems; old IE, and old everything else. This two-pronged approach solves both.. What is a hiding inline svg from older browsers with css namespaces? How do you make a hiding inline svg from older browsers with css namespaces? This script and codes were developed by Taylor Hunt on 29 September 2022, Thursday.

Hiding inline SVG from older browsers with CSS namespaces Previews

Hiding inline SVG from older browsers with CSS namespaces - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Hiding inline SVG from older browsers with CSS namespaces</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <svg width="200" height="200" viewBox="0 0 200 200"> <!--[if gt IE 8]><!--> <switch> <g class="hide-me-from-older-browsers"> <image xlink:href="http://placehold.it/200/200" height="200" width="200"/> <text y="50" x="15" fill="#fff">Some text! <a xlink:href="#" fill="blue" text-decoration="underline"> A link!</a></text> <rect x="150" y="170" width="20" height="20" fill="green"/> </g> <foreignObject width="0"> <!--<![endif]--> <img src="http://placehold.it/200/200" alt="alt text for the fallback"> Fallback text </foreignObject> </switch>
</svg>
</body>
</html>

Hiding inline SVG from older browsers with CSS namespaces - Script Codes CSS Codes

@namespace svg "http://www.w3.org/2000/svg";
.hide-me-from-older-browsers { display: none; visibility: hidden;
}
svg|g.hide-me-from-older-browsers { display: inline; visibility: visible;
}
Hiding inline SVG from older browsers with CSS namespaces - Script Codes
Hiding inline SVG from older browsers with CSS namespaces - Script Codes
Home Page Home
Developer Taylor Hunt
Username tigt
Uploaded September 29, 2022
Rating 3
Size 1,836 Kb
Views 20,240
Do you need developer help for Hiding inline SVG from older browsers with CSS namespaces?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Taylor Hunt (tigt) Script Codes
Create amazing art & images with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!