Page 1 of 1

Replacing px with vw/vh

Posted: Mon Dec 30, 2019 3:42 pm
by spoon
Can I replace px with vw / vh?

Re: Replacing px with vw/vh

Posted: Mon Dec 30, 2019 4:03 pm
by Pablo
Layout grids and flexbox produce flexible layout.
Layers, layout grid and flexbox support 100vh.

Image

Re: Replacing px with vw/vh

Posted: Mon Dec 30, 2019 4:15 pm
by spoon
Can font-size for text be set in vw?
Is it even possible to move away from px?

Re: Replacing px with vw/vh

Posted: Mon Dec 30, 2019 4:38 pm
by Pablo
Font sizes of built-in are always in pixels otherwise the layout would not be WYSIWYG.

However, there are a few extensions with flexible text sizes.
http://www.wysiwygwebbuilder.com/fittext.html
http://www.wysiwygwebbuilder.com/flexibletext.html

I never did get any feedback for those extensions so I guess there are not many users who find this useful.

Re: Replacing px with vw/vh

Posted: Mon Dec 30, 2019 4:46 pm
by spoon
To date, the "responsive design" on relatively units is very popular and does not require a breakpoint https://kvartirremont.com.ua/. Pablo would be cool to make a blog for the vw / vh version

Re: Replacing px with vw/vh

Posted: Mon Dec 30, 2019 4:53 pm
by Pablo
This website does use breakpoints (media queries).
Basically, you can do the same with layout grids.
The flexibletext extension can be used to create flexible headings. It uses the vw unit for the font-size.