STE2DG
(Stephen G)
1
Hi does anyone know how to change the color of the stroke of an element?
Cant find anything in forum or documentation. Thanks.
I can change the background like this > window.drag_01.style.backgroundColor = ‘#4CAF50’;
But I dont know how to target the stroke.
Any help much appreciated.
MarkHunte
(Mark Hunte)
2
What do you mean by stroke.
If you mean border. Then
window.drag_01.style.borderColor = '#4CAF50
'
1 Like
STE2DG
(Stephen G)
3
Thanks very much - simple question I know but thanks for the reply.
How would you target the text colour of an element? Many thanks Mark
STE2DG
(Stephen G)
4
window.drag_01.style.color = ‘#fff’;
got it please disregard
1 Like