Scale A Rectangle In Html And Css January 31, 2024 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 JugaLimit The Browser Windows Height Can Not Less Than 200 Px Using Jquery?Css: How Can I Get Rid Of The Default Window "padding"? An Element Set To 100% Width Doesn't Reach The Window's BordersCss Position Relative Without Relative Width? Share You may like these postsSet Width Of Fixed Div Equal To That Of Parent Width (which Is Declared As Percentage)Css Two Column Full WidthSetting Width Of Div JqueryHow To Match Text Width To Image Without Specifying Exact Widths? Post a Comment for "Scale A Rectangle In Html And Css"
Post a Comment for "Scale A Rectangle In Html And Css"