M
M
marginBottom2017-03-13 16:18:49
css
marginBottom, 2017-03-13 16:18:49

How to control the size of the viewBox in svg depending on the width of the browser viewport?

I have a logo with text like this
wordpress-logo-text.jpg
.
I hide the text "WordPress" using media queries depending on the width of the viewport (only screen and (max-width: 768px)), but the width of the viewbox does not become smaller. Is it possible to adapt the logo without js and without an additional shortened file?
codepen.io/anon/pen/rywmVq

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anna_BS, 2017-03-13
@marginBottom

Use two svgs
and read about viewBox

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question