+ 3

How do you make an adjustable background for an h1 tag depending on the text?

What I mean is, when you put more text into an editable h1 tag (with the contenteditable attribute), the background color expands in width.

26th Jun 2019, 2:30 AM
Rishan [da_coder, semi-active]
Rishan  [da_coder, semi-active] - avatar
2 Respostas
+ 5
BG width
18th Aug 2019, 3:19 PM
Rishan [da_coder, semi-active]
Rishan  [da_coder, semi-active] - avatar
+ 1
Can you please explain how a background color can expands its width? Du you mean the background width or the color brightness? :)
17th Aug 2019, 9:02 PM
Tom Hammerbacher
Tom Hammerbacher - avatar