Align dropdown and input

232 Views Asked by At

I have a issue with css and ng2-completer. I try to align the dropdown part and the input. There is no example on the demo page to focus element with css and when i try to select the class .completer-dropdown-holder i have no result.

enter image description here

2

There are 2 best solutions below

0
On

Not sure if it's the best solution but with display flex it's fine for my case.

.completer-dropdown-holder {
  display: flex;
  justify-content: center;
}
0
On

I believe you can override the class for the options and set the left property. I think the class name is mat-option but you can double check by inspecting the element through dev tools. Hope this helps.