Условное оформление CSS, если максимальная ширина компонента: 600 пикселей. ⇐ CSS

Разбираемся в CSS
Anonymous
Условное оформление CSS, если максимальная ширина компонента: 600 пикселей.

Сообщение Anonymous »


not the screen I want to apply this if the component is of width 600px I'm trying to change some styling if the component is in a Modal I only want to change flex-direction from column to row-reverse so I can't see a point in doing another component my code

const wrapper = styled.div` display: flex; flex-direction: column; @media screen and (max-width: 600px) { flex-direction: row-reverse; } } ` This obviously doesn't since it is checking the screen


Источник: https://stackoverflow.com/questions/781 ... idth-600px

Вернуться в «CSS»