1

I have this below HTML page in LWC -

<lightning-layout multiple-rows="true">
            <lightning-layout-item padding="horizontal-small" size="4">
                <div class="borderclass">
                    Owner : <br/>
                    {record.fields.Account__r.value.fields.Name.value}
                </div>
            </lightning-layout-item>
</lightning-layout>

And below is the CSS -

.borderclass {
  border-radius: 50%;
}

I want to create a border around the lightning-layout-item. But it is not working.

3

You need an actual border for it to be effective:

.borderclass {
  border-radius: 50%;
  border: 1px solid red;
}
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.