Open ocastadaniel opened 6 years ago
hi @ocastadaniel
I think you can try div.style = 'position: relative;';
var div = document.createElement('div');
div.style = 'position: relative;';
var content = document.createTextNode("Hello world, this get's overlapped");
div.appendChild(content);
swal({
icon: 'success',
content: div
});
If you set the content option to a custom element, without text or a title, but you do add an icon, the icon overlaps the content.
Example here in jsfiddle
https://jsfiddle.net/spyrnx35/11/
outputs as follows: