newcoder1010 Posted September 27, 2020 Share Posted September 27, 2020 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 More sharing options...
dsonesuk Posted September 27, 2020 Share Posted September 27, 2020 Try .field--item {display: inline-block;} .field--item:not(:last-child):after {content:", ";} .field--item:last-child:after {content:".";} Link to comment Share on other sites More sharing options...
newcoder1010 Posted September 27, 2020 Author Share Posted September 27, 2020 It worked with the first two lines. Last line puts comma at the end so I did not useĀ the last line. Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now