Hi,
I got to this post Match-Popup-to-Map-Value.md . that explains how to change the color of the text according to the attribute.
I was trying to do the same for background.
my arcade code is exactly the same as in the post.
my original html code:
<div style="padding:5px;background-color:rgb(31, 209, 70)"><b>Region</b></div>
<table style="width:100%;">
And this is my failed attempt...
<div style="padding:5px;background-color:"{expression/expr0}"><b>Region</b></div>
<table style="width:100%;">
any help is welcome.
cheers
P
Solved! Go to Solution.
In your attempt, you've got an extra quotation mark in the style tag. You'll want the expression to be within the quotes with everything else. Try this:
<div style="padding:5px;background-color:{expression/expr0}"><b>Region</b></div>
<table style="width:100%;">
In your attempt, you've got an extra quotation mark in the style tag. You'll want the expression to be within the quotes with everything else. Try this:
<div style="padding:5px;background-color:{expression/expr0}"><b>Region</b></div>
<table style="width:100%;">
thx!!! cheers