From what I understand, flexbox is used to align multiple items in a container. If there is only a single item/child inside a container, is it best practice to still use flexbox? For example:
.container .child {
display: flex;
align-items: center;
}
In the example above, there is only one child. Of course, it will still display correctly, but I'm not sure if it's ideal.
If it isn't, what's the ideal way to go about it?