+ 2

CSS: Can we use vh or vw for margin?

Is this Valid for CSS? Margin-top: 5vh;

11th Jul 2019, 1:50 AM
Ginfio
Ginfio - avatar
2 Respuestas
+ 2
Yes. For sure !! But it will vary with the window height and width. :( So it may look good to you but others may have a bad view of your project. You need to use @media rules to make your page responsive 😊
11th Jul 2019, 7:47 AM
Ayan Fox
Ayan Fox - avatar
+ 1
Yes ..you can use it with flexbox for responsiveness
12th Jul 2019, 9:13 AM
Ayushi Gujarati
Ayushi Gujarati - avatar