Skip to main content

Add "vw" units for column and image element

Comments

5 comments

  • KC George

    Hi Vantrinh,

    You have mentioned that 

    I wish brizy use "vw" units for the image, custom height for colums. Set image width 100% and height 20vw (example). The aspect ratio does not change much for different screen sizes.

    Can you develop a test page with and without vw units and prove this concept on a Brizy page? Please use custom CSS to override the % value with vw units. 

    If your suggested solution works, we will add a request for this.

    0
  • vantrinh duong

    Maybe I'm a bit wrong.
    But this is what I need. I use the "vw" unit for the column height.

    https://jmp.sh/wYkayP16

    test: https://pagedemo.brizy.site/test2-2

    0
  • KC George

    Hi Vantrinh,

    If the purpose is to retain the aspect ratio, what about placing the images using the image element as in this page? https://digital-works.brizy.site/image

     

    0
  • vantrinh duong

    I'm wrong. The image in the brizy scales to the width of the parent element.

    when setting 1 image as column background. (The column contains contents). Now, The height can only be changed in "px". Column height will be fixed on any size screen.
    I can add css to make them work as I want them to. But if you guys add "vw" to column element, it's great

    0
  • KC George

    Hi Vantrinh,

    You are right, the aspect ratio changes for images in the column background based on the screen size. Thanks for reporting this. We will add a request for this. 

    0

Please sign in to leave a comment.