Jump to content

How to display a list in a line separate by commas


newcoder1010
 Share

Recommended Posts

Hello,

<div data-quickedit-field-id="block_content/56/field_states/en/full" class="field field--name-field-states field--type-list-string field--label-above quickedit-field">
    <div class="field--label">States</div>
          <div class="field--items">
              <div class="field--item">Arizona</div>
          <div class="field--item">Florida</div>
          <div class="field--item">Iowa</div>
          <div class="field--item">Vermont</div>
              </div>
      </div>

Currently they are listed as a list like this:

AZ

FL

How can I style it to display as:

AZ, FL

Please advise!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...