/    Sign up×
Community /Pin to ProfileBookmark

the difference between viewbox width and height and the width and height in svg

I read the following article:
[url]http://webdesign.about.com/od/svg/a/svg-viewbox-attribute.htm[/url]

But in the example:

[QUOTE]

<svg width=”800″ height=”400″ viewBox=”0 0 800 400″>
This view box covers the entire page.

<svg width=”800″ height=”400″ viewBox=”0 0 400 200″>
This view box covers half the page starting in the upper right hand corner.

[/QUOTE]

what is the point to set width and height in the viewBox that are half of the width and height that are set to the svg?

I still don’t get the difference.?

to post a comment
Full-stack Developer

0Be the first to comment 😎

×

Success!

Help @programAngel spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.12,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...