Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

how to set height equal to dynamic width pure css

.some_element {
    position: relative;
    width: 20%;
    height: 0;
    padding-bottom: 20%;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #set #height #equal #dynamic #width #pure #css
ADD COMMENT
Topic
Name
2+5 =