bootstrap svg. code example

Example 1: bootstrap class align center image

class="mx-auto d-block"

Example 2: responsive svg with bootstrap

.svg-content { 
	display: inline-block;
	position: absolute;
	top: 0;
	left: 0;
}

Example 3: responsive svg with bootstrap

.svg-container { 
	display: inline-block;
	position: relative;
	width: 100%;
	padding-bottom: 100%; 
	vertical-align: middle; 
	overflow: hidden; 
}

Example 4: responsive svg with bootstrap

<svg version="1.1" viewBox="0 0 500 500">
	<circle fill="#F7941E" stroke="#231F20" stroke-width="10" 
	cx="250" cy="250" r="200" opacity="0.6" />
</svg>

Tags:

Misc Example