<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Problem with .svg&#x27;s in Opera]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I'm building a website and testing in Opera 12. When I zoom in on the page and the .svg images are enlarged they get cut off at the height and width parameters set for them. In other words, the image is enlarged within the width and height set for it instead of the width and height parameters expanding with the image. I don't know very much about Opera so any help or suggestions will be appreciated.</p>
]]></description><link>https://forums.opera.com/topic/6142/problem-with-svg-s-in-opera</link><generator>RSS for Node</generator><lastBuildDate>Sun, 10 May 2026 17:41:04 GMT</lastBuildDate><atom:link href="https://forums.opera.com/topic/6142.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 30 Oct 2014 01:37:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem with .svg&#x27;s in Opera on Thu, 30 Oct 2014 19:23:48 GMT]]></title><description><![CDATA[<p dir="auto">Sorry I took so long to get back. I had in my mind I would receive an email alert when someone posted.</p>
<p dir="auto">Anyway, thanks for your input and I apologize for not giving a url or at least a screenshot so you could check out the page and/or the code. I didn't have a url to give as I'm working locally and have let my web hosting account expire for the time being. You can go here to see a screenshot example of the problem <a href="http://i.imgur.com/oU1hOd3.gif" target="_blank" rel="noopener noreferrer nofollow ugc">Imgur</a>.</p>
<p dir="auto">By the way, I found a workaround to the problem and I'll share it with you after I provide the original code so you can get the full picture. Here is how I originally linked to the image which worked in all browsers except Opera.</p>
<pre><code>&lt;div class="wp-logo"&gt;[![](img/wordpress-logo.svg)](http://www.wordpress.org" target="blank)&lt;/div&gt;
</code></pre>
<p dir="auto">Here is the css:</p>
<pre><code>.wp-logo {
margin: 0 0 0 50px;
} 
.wp-logo { float: right;}  
.wp-logo {
position: absolute;
top: 55px;
right: -18px;
} 
.wp-logo a {
display: block;
text-align: center;
text-decoration: none;
text-align: center;
padding: 5px 10px;
border-radius: 5px;
    }
</code></pre>
<p dir="auto"><a href="http://codepen.io/commondream/pen/dFgrj/" title="CodePen website" target="_blank" rel="noopener noreferrer nofollow ugc">I found the workaround</a> here.</p>
<p dir="auto">Here is how the image is now targeted - it's pretty self explanatory so I won't comment on it. Here is the HTML:</p>
<pre><code>&lt;a href="http://www.wordpress.org" target="blank" class="svg"&gt;
&lt;object type="image/svg+xml" width="80" height="80" data="img/wp-logo.svg" class="wp-logo"&gt;&lt;/object&gt;
&lt;/a&gt;
</code></pre>
<p dir="auto">And here is the CSS:</p>
<pre><code>a.svg {
float: right;
position: relative;
margin-top: 50px; 
display: inline-block; 
}

a.svg:after {
content: ""; 
position: absolute;
top: 0;
right: 0;
bottom: 0;
left:0;
}
</code></pre>
<p dir="auto">To answer @angiesdom' question: I used both the keyboard shortcut (windows) control+ and also tried View&gt;Zoom which is what I think you mean by the context menu.</p>
<p dir="auto">I can't explain why no one else had this issue. It may have been something in my positioning technique but that was the first thing I looked and couldn't see anything there.</p>
<p dir="auto">Anyway, thanks for your response and if there is anything else you have to add I'm all ears. Thanks again.</p>
]]></description><link>https://forums.opera.com/post/56539</link><guid isPermaLink="true">https://forums.opera.com/post/56539</guid><dc:creator><![CDATA[sonofadoc]]></dc:creator><pubDate>Thu, 30 Oct 2014 19:23:48 GMT</pubDate></item><item><title><![CDATA[Reply to Problem with .svg&#x27;s in Opera on Thu, 30 Oct 2014 08:30:07 GMT]]></title><description><![CDATA[<p dir="auto">See if that's better - though honestly I don't get the correct context menu.</p>
]]></description><link>https://forums.opera.com/post/56472</link><guid isPermaLink="true">https://forums.opera.com/post/56472</guid><dc:creator><![CDATA[sgunhouse]]></dc:creator><pubDate>Thu, 30 Oct 2014 08:30:07 GMT</pubDate></item><item><title><![CDATA[Reply to Problem with .svg&#x27;s in Opera on Thu, 30 Oct 2014 08:16:09 GMT]]></title><description><![CDATA[<p dir="auto">Zooming complete page with + or zooming SVG by context menu does not cut of any image parts.</p>
]]></description><link>https://forums.opera.com/post/56471</link><guid isPermaLink="true">https://forums.opera.com/post/56471</guid><dc:creator><![CDATA[Deleted User]]></dc:creator><pubDate>Thu, 30 Oct 2014 08:16:09 GMT</pubDate></item><item><title><![CDATA[Reply to Problem with .svg&#x27;s in Opera on Thu, 30 Oct 2014 08:08:58 GMT]]></title><description><![CDATA[<p dir="auto">Arggh. Something went wrong by copying URL to SVG for HTML testcase.</p>
]]></description><link>https://forums.opera.com/post/56470</link><guid isPermaLink="true">https://forums.opera.com/post/56470</guid><dc:creator><![CDATA[Deleted User]]></dc:creator><pubDate>Thu, 30 Oct 2014 08:08:58 GMT</pubDate></item><item><title><![CDATA[Reply to Problem with .svg&#x27;s in Opera on Thu, 30 Oct 2014 08:00:11 GMT]]></title><description><![CDATA[<p dir="auto">@angiesdom, are you zooming the image (from its context menu) or the page?</p>
]]></description><link>https://forums.opera.com/post/56466</link><guid isPermaLink="true">https://forums.opera.com/post/56466</guid><dc:creator><![CDATA[sgunhouse]]></dc:creator><pubDate>Thu, 30 Oct 2014 08:00:11 GMT</pubDate></item><item><title><![CDATA[Reply to Problem with .svg&#x27;s in Opera on Thu, 30 Oct 2014 07:12:23 GMT]]></title><description><![CDATA[<p dir="auto">Wthout your HTML i cant imagine whats wrong.</p>
<p dir="auto">But for my test Nothing is cut off in Opera 12 if you zoom. Try this:</p>
<pre><code>`&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&amp;gt;
&amp;lt;html lang="de"&amp;gt;	
	&amp;lt;head&amp;gt;
		&amp;lt;meta http-equiv="content-type" content="text/html; charset=utf-8"&amp;gt;
		&amp;lt;title&amp;gt;SVG&amp;lt;/title&amp;gt;
	&amp;lt;/head&amp;gt;
  
	&amp;lt;body&amp;gt;
		&amp;lt;p&amp;gt;test&amp;lt;/p&amp;gt;
        &amp;lt;p&amp;gt;&amp;lt;img 			
		    src="http://upload.wikimedia.org/wikipedia/commons/0/02/SVG_logo.svg" 
			width="512" height="512"&amp;gt;&amp;lt;/p&amp;gt;
	&amp;lt;/body&amp;gt;	
&amp;lt;/html&amp;gt;
`
</code></pre>
]]></description><link>https://forums.opera.com/post/56463</link><guid isPermaLink="true">https://forums.opera.com/post/56463</guid><dc:creator><![CDATA[sgunhouse]]></dc:creator><pubDate>Thu, 30 Oct 2014 07:12:23 GMT</pubDate></item></channel></rss>