# Empty Value Should Remove Inline CSS Style

**URL:** <https://forum.pinegrow.com/t/empty-value-should-remove-inline-css-style/8143>\
**Category:** Bug Reports\
**Tags:** wordpress\
**Created:** [June 13, 2023, 1:02pm UTC](https://forum.pinegrow.com/t/empty-value-should-remove-inline-css-style/8143 "2023-06-13T13:02:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonroc](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/jonroc/32/2805_2.png) [@jonroc](https://forum.pinegrow.com/u/jonroc)\
**Post date:** [June 13, 2023, 1:02pm UTC](https://forum.pinegrow.com/t/empty-value-should-remove-inline-css-style/8143/1 "2023-06-13T13:02:10Z")

</div>

When I add a select dropdown attribute to a block to output an inline CSS style, the “style” tag does not show up when the value is empty (as expected). After I choose an option from the dropdown, the style tag with its value gets added (as expected). But if I move the select option back to nothing (-) in the dropdown, the style attribute stays on the element with an empty value like this: style=“text-align:”

It would be best if it removed the style tag altogether since there is no/null value.
