this post was submitted on 14 May 2026
5 points (100.0% liked)

Web Development

5640 readers
38 users here now

Welcome to the web development community! This is a place to post, discuss, get help about, etc. anything related to web development

What is web development?

Web development is the process of creating websites or web applications

Rules/Guidelines

Related Communities

Wormhole

Some webdev blogsNot sure what to post in here? Want some web development related things to read?

Heres a couple blogs that have web development related content

CreditsIcon base by Delapouite under CC BY 3.0 with modifications to add a gradient

founded 2 years ago
MODERATORS
top 1 comments
sorted by: hot top controversial new old
[–] Kissaki@programming.dev 2 points 7 hours ago* (last edited 7 hours ago)

viewBox="0 0 $svg_width $svg_height"

The y co-ordinate is harder. The algorithm is: Find the height of the SVG.

Why is the viewBox using parameters?

SVG stands for scalable vector graphics. Let it scale.

viewBox can serve as a native baseline area coordinate system. Put width and height on the SVG or let it render in its container instead of misusing the viewBox for size and it will scale just fine. No?