I have the following situation. A flex container has children displayed as in:
[ [div1] [div2] [div3] [div4]]
The container's relevant CSS is set to:
display:flex;
justify-content: flex-end;
The inner child divs are set with display: inline-flex. After this CSS is set, over which I have no control initially, I want to position only the first div, div1 to start at the beginning as shown below:
[[div1] [div2] [div3] [div4]]
What is the CSS to be applied in JQuery to div1 to do so. I could take div1 and group the other divs into one element by putting a wrapper around them but that breaks other CSS pre-applied to the grouped-divs over which I have no control. Therefore, I am seeking an alternate solution without introducing any wrappers.
EDIT: I think that I am looking for the equivalent of align-self for align-content or justify-content. align-self only works for align-items to target a specific element.