Scale A Rectangle In Html And Css June 11, 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 JugaChrome Bug Or Coding Error? Anchor/id Links Within Destination Page Not WorkingOverlap Columns In Bootstrap 4Strange Behavior Of "overflow: Auto" On Chrome Share You may like these postsHow To Change The Color Of The Timeline Circle When It Is An Active Stage?How To Swap Image And Video To Another Div?Stylesheet Not Displaying Within Div Id Tab?Print A Specific Div Using Javascript Post a Comment for "Scale A Rectangle In Html And Css"
Post a Comment for "Scale A Rectangle In Html And Css"