//Put the element you want to center inside a <div> called container
.container {
width: 700px;
margin-left: auto;
margin-right: auto;
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter