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.

1 Answer 1

3

You need an actual border for it to be effective:

.borderclass {
  border-radius: 50%;
  border: 1px solid red;
}

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.