Answer the question
In order to leave comments, you need to log in
Is it possible to apply display: flex properties to grandchildren instead of children?
Is it possible to apply styles from display: flex not to children, but to grandchildren, as in the example:
<style>
.block_flex {
display: flex;
justify-content: space-between;
align-items: center;
}
.block_flex .item {
align-self: center;
}
</style>
<div class="block_flex">
<a>
<span class="item">Пункт</span>
</a>
<a>
<span class="item">Пункт</span>
</a>
<a>
<span class="item">Пункт</span>
</a>
</div>
Answer the question
In order to leave comments, you need to log in
If for children - links to apply display: contents, then it will be possible.
https://css-live.ru/articles/display-contents-prac...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question