Answers for "how to make fixed position responsive"

CSS
0

how to make fixed position responsive

.responsive-div {
    position: fixed;
    width: 70vw; // vw being viewport-width, so 70% of the width of the viewport
    height: 50vh; // vh being viewport-height, so 50% of the height of the viewport
    /*works well for SVG's specifically*/
}
Posted by: Guest on July-28-2020

Code answers related to "how to make fixed position responsive"

Browse Popular Code Answers by Language