Chinomso! Ниже приведены ПРОСТО изменения, которые я внес в таблицу стилей, и я закомментировал границу, которую вы использовали для .flex-container ... Я добавил для удобства комментарии рядом с каждой строкой. Посмотрите, работает ли это!
* {
box-sizing: border-box; /* See the Mozilla Developer Network on the box-sizing CSS property,
could help here...styling below for margins/border
is dependent on this */
}
.flex-container {
/* border: 5px solid white; */
padding: 1.5em; /* OPTIONAL - gives the whole container spacing for visual appeal */
}
.flex-item {
border: none; /* Removes the default CSS styling for the <input> HTML tag in browsers */
border-right: 2px solid black; /* Creates border to right of each .flex-item class */
text-align: center; /* OPTIONAL - styling to center input text */
margin: 0 5px; /* OPTIONAL - gives you spacing for visual appeal */
}
.flex-item:last-child {
border: none; /* Remove border from the last .flex-item child in the form */
}
MDN ссылка на статью о свойстве CSS box-sizing, много раз спасла мои плюшки: https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing
...
... И вот результат, который я получил от добавления вышеуказанных стилей к существующим:
![CSS styles added to create borders for flex container](https://i.stack.imgur.com/m8oZp.png)