I have a CSS class which is like the code below.
I am calculating the view height – 100px, but I want the result doesnt go over 700px, and also I dont want to use CSS height property, because my DIV can start with dinamic height (fitting the content), which sometimes is smaller than the calc().
If someone could help me…
Yes, it is because sometimes 100vh-100px is less than 700px and I dont want the div goes out of the view area.
So, I think I have to control this using JS.
Thanks.
Author
Posts
Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘CSS’ is closed to new topics and replies.