Skip to content
Discussion options

You must be logged in to vote

You could use .innerHTML property to have more control over the html

let root = dv.el("div", "", { cls: "card" }); root.innerHTML = "<span style="(your css here)">In 2020 I read <b>"+BookCount+"</b></span>"

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ReaderGuy42
Comment options

@tabrez-syed
Comment options

@ReaderGuy42
Comment options

Answer selected by ReaderGuy42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants