var cardDiv = $("#cards");
var outerDiv = $("<div>", { class: "col-md-4 test" });
var newDiv = $("<div>", { class: "card mb-3 shadow-sm" });
var cardsDiv = $("<div>", { class: "card border-success mb-3" });
var cardImage = $("<img>", { class: "card-img-top" });
var cardBody = $("<div>", { class: "card-body" });
var cardTitle = $("<h5>", { class: "card-title" });
var cardText = $("<p>", { class: "card-text" });
var cardBtn = $("<button>", { class: "btn btn-primary" });
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