Z
Z
zhigunov132021-06-13 10:58:41
JavaScript
zhigunov13, 2021-06-13 10:58:41

How to hide an element in a modal?

There is an element that should hide in a modal window in the mobile version of the site. Tell me how can this be done?
60c5be9ca4848717091276.png
60c5bf04bbb12110572663.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav, 2021-06-13
@zhigunov13

Yes, that's right, on mobile devices set it to fixed and set the values ​​to top, left, etc. it will simply exit the general layout flow on the adaptive and will visually be a modal, and in the dom it will remain in its place and there will be no need to duplicate the markup

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question