Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

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*/
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #fixed #position #responsive
ADD COMMENT
Topic
Name
1+4 =