Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Remove Outline/Border from Object SVG in IE11

Tags:

html

css

svg

How to remove the Outline/Border in Object SVG in IE11

I tried with border:0 & outline: 0 but it not working. Outine coming only in IE.. I need to border below the text SVG Content enter image description here

      <object> SVG Content
    	<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px">
    		 <rect x="10" y="10" width="80" height="80"/>
    	</svg>
    </object>
like image 406
Raja O Avatar asked Sep 10 '25 09:09

Raja O


1 Answers

SVG border calls stroke

try remove it with:

svg {
    stroke: transparent;
    stroke-width: 0px;
}
like image 126
לבני מלכה Avatar answered Sep 13 '25 01:09

לבני מלכה