CSS | min-block-size Property Last Updated : 29 Aug, 2022 Comments Improve Suggest changes Like Article Like Report The min-block-size property in CSS is used to create the minimum horizontal or vertical size of an element. If the writing direction is horizontal then min-block-size is equivalent to min-height property, and if it is in vertical mode then equal to min-width property. Syntax: min-block-size: length| percentage| auto| none| min-content| max-content| fit-content| inherit| initial| unset; Property values: length: It sets a fixed value defined in px, cm, pt etc. Negative values are also allowed. Its default value is 0px.percentage (%): It is the same as length but the size is set in term of percentage of the window size.auto: It is used when it is desired that the browser determines the block-size.none: It is used when you don't want to limit on the size of the box.max-content: It is used when you preferred min-width on the size of the box.min-content: It is used when you preferred min-width on the size of the box.fit-content: It is used when you preferred exact-width on the size of the box.initial: It is used to set the value of the min-block-size property to its default value.inherit: It is used when it is desired that the element inherits the min-block-size property from its parent element.unset: It is used to unset the default mix-block-size. Below examples illustrate the min-block-size property in CSS: Example 1: HTML <!DOCTYPE html> <html> <head> <title>CSS | min-block-size Property</title> <style> h1 { color: green; } div { background-color: green; width: 200px; height: 20px; } .one { position: relative; min-block-size: 10px; background-color: cyan; } </style> </head> <body> <center> <h1>Geeksforgeeks</h1> <b>CSS | min-block-size Property</b> <br><br> <div> <p class="one"> A Computer Science Portal for Geeks </p> </div> </center> </body> </html> Output: Example 2: HTML <!DOCTYPE html> <html> <head> <title>CSS | min-block-size Property</title> <style> h1 { color: green; } div { background-color: green; width: 200px; height: 20px; } .one { position: relative; writing-mode: vertical-rl; min-block-size: auto; background-color: cyan; } </style> </head> <body> <center> <h1>Geeksforgeeks</h1> <b>CSS | min-block-size Property</b> <br><br> <div> <p class="one"> A Computer Science Portal for Geeks </p> </div> </center> </body> </html> Output: Supported Browsers: The browsers supported by min-block-size property are listed below: Firefox 41+Google Chrome 57+Edge 79+Opera 44+Safari 12.1+ Reference: https://developer.mozilla.org/en-US/docs/Web/CSS/min-block-size Comment More infoAdvertise with us Next Article CSS | min-block-size Property S skyridetim Follow Improve Article Tags : Web Technologies CSS CSS-Properties Similar Reads CSS | max-block-size Property The CSS max-block-size property is used to create the maximum size of an element in the direction opposite that of the writing direction. Like if the writing direction is horizontal then max-block-size is equivalent to max-height, and if it is in vertical mode then equal to max-width. Syntax: max-bl 2 min read CSS | block-size Property The block-size property in CSS is used to define the horizontal or vertical size of an element's block. It coincides with the width or the height property, depending on the value of the writing-mode property. it leaves the space below are left of the element text.Syntax: block-size: length|percentag 2 min read CSS | margin-block Property The margin-block property is used to define the logical block end margin of an element. This property helps to place margin depending on the element's writing mode, directionality, and text orientation.Syntax: margin-block-end: length | auto | initial | inherit | unset; Property values: length: Sets 2 min read CSS inset-block-start Property The inset-block-start property is used to define logical block start offset, not for the inline offset or logical block. This property can apply to any writing-mode property. Syntaxinset-block-start: length|percentage|auto|inherit|initial|unset;Property ValuesValuesDescriptionslength It sets a fixe 2 min read CSS | padding-block Property The padding-block property in CSS is used to define the logical block start and end padding of an element. This property helps to place padding depending on the elementâs writing mode, directionality, and text orientation.Syntax: padding-block: length|percentage|auto|inherit|initial|unset; Property 2 min read Like