All Questions
Tagged with responsive-design svg
177 questions
0
votes
0
answers
23
views
scaling img with svg-content to font-size, why does it not respect my em-setting?
The simple html:
<html><head>
<style>
body {font-size:1em;}
img {display:inline-block; border:1px solid #0f0;}
</style>
</head><body>
<p>Mm<...
0
votes
1
answer
233
views
How to properly scale an SVG mask within a container element?
I'm trying to apply an SVG mask to a div element, but I'm encountering an issue where the mask is not scaling correctly with the container. The mask appears to overflow the container, showing only ...
-1
votes
1
answer
54
views
Resizing of svg leads to additional height [closed]
I have an interactive svg and tried to make it responsive with viewbox and display: flex:
// HTML
<div className="interactive-svg">
<svg ref={svgRef} viewBox={`0 0 ${svgWidth} ${...
0
votes
0
answers
26
views
My svg animation isn't responding properly to js transformations (translation)
I coded this animation with an svg text that's supposed to move like this: first the text "Times New Roman" enters from the right side of the screen, right after that "ce" reaches ...
0
votes
0
answers
54
views
SVG viewbox, Safari is positioning (relative / absolute) based on viewbox, so it's fixed to that size regardless on the screensize change
<?xml version="1.0" encoding="UTF-8"?>
<?AdobeSVGViewer save="snapshot"?>
<svg version="1.1"
baseProfile="full"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://...
0
votes
0
answers
26
views
I'm trying to make a responsive SVG, but it isn't showing on Safari
I have an SVG that I want to be responsive. I haven't set a width and height attribute because I ideally want it to be automatic. However, Safari doesn't render the SVG correctly without them.
<...
0
votes
1
answer
56
views
Non-proportionally scale complex SVG paths [closed]
I'm trying to find the best method for building unique border shapes in HTML/CSS, for example:
example of border shape I'm attempting to acheive
The goal is to be able to have this responsive so width/...
0
votes
1
answer
38
views
How do I scale an use'd svg with auto-width?
I have this simple foo.svg:
<?xml version="1.0" encoding="UTF-8" ?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" >
...
1
vote
0
answers
33
views
How do I make a random svg inserted into another svg resize and center on the parent?
think I have a very specific case in my work right now. Im developing UI which allows to create and customize some widgets like progress bars etc. Most of them are SVGs. Client wants icons to be ...
1
vote
0
answers
87
views
responsive SVG viewBox preserveAspectRatio:"none" and viewBox scaled to percentages
I'm trying to make an responsive SVG viewBox using preserveAspectRatio:"none", but the elements aren't being positioned as I expected.
The border responds to the aspect ratio of the viewBox, ...
3
votes
1
answer
91
views
How to make all objects in a group (inclluding text) in an SVG act as a single object when selecting using d3.js?
I am trying to make a responsive image map with svg and d3.js, but one thing I haven't been able to figure out is how to make entire groups respond to clicks as a single object. As a test, I have made ...
0
votes
1
answer
163
views
How to make a fluid div with a custom shape
I have a div that will be the header of the site I'm working on that is a custom shape. The issue I am having is that the header needs to resize horizontally while retaining the integrity of the ...
0
votes
0
answers
280
views
Svg icon not working on desktop but work fine on mobile
Hello my svg icons are not working on desktop i get only a white space but the icon work fine on mobile devices this is my code :
<svg xmlns="http://www.w3.org/2000/svg" width="56" height="56" ...
0
votes
0
answers
58
views
How do I stretch this SVG path to fit the height of the window?
I have the following SVG:
<svg class="svgwave" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 301 301" preserveAspectRatio="xMidYMid meet" height="100%" width="100%">
<path id="...
1
vote
0
answers
167
views
Ion-icon as background fill available space
I have multiple apps where I’m using svgs not just as small icons, but also as background, as interactive buttons or as animations.
The problem that I’m having is that I’m not able to position ...