css:height:div_100_height_with_padding_margin
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
css:height:div_100_height_with_padding_margin [2021/08/08 12:55] – [Using CSS box-sizing] peter | css:height:div_100_height_with_padding_margin [2021/08/08 12:56] (current) – [Using Calc] peter | ||
---|---|---|---|
Line 124: | Line 124: | ||
<code css> | <code css> | ||
#myDiv { | #myDiv { | ||
- | | + | |
- | height: calc(100% - 5px); | + | height: calc(100% - 5px); |
- | padding: 5px; | + | padding: 5px; |
} | } | ||
</ | </ | ||
<WRAP info> | <WRAP info> | ||
- | **NOTE: | + | **NOTE: |
</ | </ | ||
css/height/div_100_height_with_padding_margin.1628427354.txt.gz · Last modified: 2021/08/08 12:55 by peter