Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

css text to fit container

//The viewport-percentage lengths are relative to the size of the initial
//containing block. When the height or width of the initial containing block
//are changed, they are scaled accordingly.
//vw = (% of the viewport width). So using it will look like this:
p {
    font-size: 2.5vw;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #css #text #fit #container
ADD COMMENT
Topic
Name
3+9 =