-2

I'm trying to set the search bar width for user search to 100%, but the code I've tried doesn't work when entered into the CSS.

This is the code I've tried to input into the CSS:

 .um-directory .um-member-directory-header .um-member-directory-header-row .um-member-directory-search-line {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

But this is unsuccessful.

How can I achieve this?

Here's the page: https://slapperoni.com/members/

1 Answers1

0

How about giving flex: 1 to the input element? https://developer.mozilla.org/en-US/docs/Web/CSS/flex

<div style="
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
">
  <input style="flex: 1;">
  <button>test</button>
</div>

demo

Hope this helps you.

TK'
  • 302
  • 2
  • 10