SVG CSS ViewBox Demo

2,176 Kb

How do I make an svg css viewbox demo?

What is a svg css viewbox demo? How do you make a svg css viewbox demo? This script and codes were developed by Mobile Application Design-Development on 11 November 2022, Friday.

SVG CSS ViewBox Demo Previews

SVG CSS ViewBox Demo - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>SVG CSS ViewBox Demo</title> <link rel="stylesheet" href="css/style.css">
<body> <div class="contain-demo"> <!-- original viewBox values 0 0 115 190 Try playing with the values in viewBox to see what happens. The viewBox values are the cropping numbers for the image. The CSS width and height are how big to make the svg image on the page. It's like the scaling of the image. opening tag can be... <svg viewBox="0 0 115 190"> OR <svg width="115" height="190"> --> <svg width="115" height="190"> <desc>Green pear to show effects of matching viewport and viewBox.</desc> <g> <path fill="#BBC42A" d="M4.976,126.451c-0.571,1.76-1.067,3.551-1.475,5.377c-6.62,29.681,7.465,54.363,43.244,56.718 c56.994,3.751,77.653-25.65,60.462-67.25C90.017,79.697,82.063,89.688,80.366,57.764c-0.764-14.367-11.098-27.167-26.203-24.576 c-17.378,2.982-19.794,19.916-22.192,34.44C28.36,89.508,11.623,105.957,4.976,126.451z"/> <path fill="none" stroke="#59351C" stroke-width="7" stroke-linecap="round" d="M56.427,40.406 c0,0-7.375-15.376,8.06-35.837"/> <path fill="#7AA20D" stroke="#7AA20D" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" d=" M54.247,35.412c0.787-3.843,3.55-7.335,8.368-9.848c10.053-5.244,18.075-4.042,28.061,0.2c0.004,0.002,12.83,5.449,20.517-4.672 c-4.778,6.291-9.415,12.478-14.878,18.237c-8.878,9.359-25.348,22.181-37.176,9.661C55.019,44.629,53.349,39.793,54.247,35.412z"/> </g> </svg>

SVG CSS ViewBox Demo - Script Codes CSS Codes

.contain-demo { margin: 25px auto; text-align: center; background-color: #eee;
.contain-demo svg{ border: 1px dotted grey; background-color:#ddd; height: auto; width: 25%;
SVG CSS ViewBox Demo - Script Codes
SVG CSS ViewBox Demo - Script Codes
Home Page Home
Developer Mobile Application Design-Development
Username mad-d
Uploaded November 11, 2022
Rating 3
Size 2,176 Kb
Views 24,288
Do you need developer help for SVG CSS ViewBox Demo?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Mobile Application Design-Development (mad-d) Script Codes
Create amazing art & images with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!