0 added
0 removed
Original
2026-01-01
Modified
2026-03-09
1
<p>We learned how to change the font color and size depending on the values that the user selected. All that we have left to do is to program the article background color setting. This is done in a way that is very similar to how font color setting is adjusted. We will obtain the values from the dropdown list with the background-setting class.</p>
1
<p>We learned how to change the font color and size depending on the values that the user selected. All that we have left to do is to program the article background color setting. This is done in a way that is very similar to how font color setting is adjusted. We will obtain the values from the dropdown list with the background-setting class.</p>
2
<p>The background-color property is responsible for the background color in the CSS. To change it from JavaScript, the property name must be written in CamelCase.</p>
2
<p>The background-color property is responsible for the background color in the CSS. To change it from JavaScript, the property name must be written in CamelCase.</p>
3
<p>Let’s get down to business!</p>
3
<p>Let’s get down to business!</p>
4
<p>The style property allows us not only to change styles, but also to obtain them, too. Of course, you can only use it to figure out those styles that are specified in the markup and in the style attribute of the element itself. These styles are also called<a>embedded</a>styles.</p>
4
<p>The style property allows us not only to change styles, but also to obtain them, too. Of course, you can only use it to figure out those styles that are specified in the markup and in the style attribute of the element itself. These styles are also called<a>embedded</a>styles.</p>
5
<p>To obtain all of the styles that are already applied to an element, use the window.getComputedStyle method. You can read more about it in the<a>specification</a>.</p>
5
<p>To obtain all of the styles that are already applied to an element, use the window.getComputedStyle method. You can read more about it in the<a>specification</a>.</p>