Search
 
SCRIPT & CODE EXAMPLE
 

CSS

how to use flex-shrink in css

<!DOCTYPE html>
<html>
<head>
    <title>flex-shrink</title>
    <style>
        body {
            width: 400px;
            display: flex;
        }
        div {
            border: 1px solid black;
            flex-basis: 100px;
        }
        .item1 {
            flex-shrink: 5;
        }
        .item2 {
            flex-shrink: 1;
        }.item3 {
            flex-shrink: 2;
        }.item4 {
            flex-shrink: 2;
        }.item5 {
            flex-shrink: 2;
        }
    </style>
</head>
<body>
    <div class="item1">item1</div>
    <div class="item2">item2</div>
    <div class="item3">item3</div>
    <div class="item4">item4</div>
    <div class="item5">item5</div>
</body>
</html>
Comment

PREVIOUS NEXT
Code Example
Css :: css grid example 
Css :: css selector last child 
Css :: fonts from google fonts do not work 
Css :: absolute positioning css 
Css :: Giving body maximum width in css 
Css :: css id selector 
Css :: bootstrap badges 
Css :: simple website templates free download html with css without bootstrap 
Css :: how to use hr lines in a class css 
Css :: css animation 
Css :: css flex container 
Css :: tel css 
Css :: boostarp grid npm css react 
Css :: create variable in css 
Css :: check browser on css 
Css :: css font-family 
Css :: how to change color of hyperlink in css 
Css :: https request 
Css :: postion on window top css 
Css :: build responsive real-world websites with html and css download 
Css :: max with in bootstrap 4 
Css :: wrapping links in css 
Css :: css responsive tabs 
Css :: webpack alias not working in jest 
Css :: css colors 
Css :: css animate absolute position 
Css :: css color 
Css :: how to apply a transition to a child element when hovering over parent element 
Css :: css aufzählungszeichen entfernen 
Css :: is there a min-left css attribute 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =