Hacks, tips, short cut code
margin: auto
container
to override the width and set the container to the full width of the
viewportwidth: 100vw;
position: relative;
left: 50%;
right: 50%;
margin-left: -50vw;
margin-right: -50vw;
<img>
tags<img>
tag with the following
code:<img src="image.svg" onerror="this.src='image.png`; this.onerror=null;">
.element {
background: url(fallback_image.png);
background: url(image.svg), linear-gradient(transparent, transparent)
}
<%= link_to main_app.contact_forms_url do %>
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 15.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg class="buy-now" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="100px" height="92.796px" viewBox="0 0 100 92.796" enable-background="new 0 0 100 92.796" xml:space="preserve">
<path fill="#1C75BC" d="M98.572,"/>
<image src="<%= asset_path('shopping_cart.png')%>" href="" />
</svg>
<% end %>