Styling with JS

PHOTO EMBED

Sat May 07 2022 14:44:52 GMT+0000 (Coordinated Universal Time)

Saved by @Luduwanda #javascriptreact

//Turning a right floating and squared image in a centered text and a round image
const sth = document.querySelector("#container")
sth.style.textAlign = "center"
sth.querySelector("img").style.width = "150px";
sth.querySelector("img").style.borderRadius = "50%";
content_copyCOPY