i have html like
<h1 class = 'block__title' id='title'>Main text</h1>
with css:
.block__title {
display: inline-block;
}
i can get this element in js with:
const title = document.getElementById('title');
and doing anything with width title.offsetWidth+1
How i can do the same in ELM? i have:
[ h1 [ class "block-title" ]
[ text (Main text)
]
]
i need to get width of the element higher for further changes