Scale A Rectangle In Html And Css October 26, 2023 Post a Comment I want to make a rectangle (a div) with a specific scale. The height-width scale has to be 30:50. The rectangle fills 40% of the width-screen. If I resize my screen, how can I chanSolution 1: Try scaling it using vw (viewport width):#bg { background-color: blue; width: 40vw; height: 66.67vw; } Copyhttps://jsfiddle.net/gmsitter/9tpbq30x/1/ Baca JugaMaking Movable Menu Items In HtmlCss Animation, Fade In Fade Out Opacity On Automated SlideshowHow To Set Flex Items To Equal Width According To The Item With The Longest Content? Share You may like these postsHow To Make A Jquery Mobile Popup Appear In Full Screen Of DeviceHtml5 Audio Object Doesn't Play On Ipad (when Called From A Settimeout)Devextreme Datagrid Command ButtonHow Exactly Can I Replace An Iframe With A Div And Javascript? Post a Comment for "Scale A Rectangle In Html And Css"
Post a Comment for "Scale A Rectangle In Html And Css"