Can someone please tell me why I still have space around my H3 even with margin and padding 0 ? [upl-image-preview url=https://www.webdeveloper.com/assets/files/2019-05-28/1559057612-898105-fbgfbf.png]
@codyhillauthorMay 28.2019 — #@Sempervivum#1604106 here is the github . I hope you can see the files, is the first time i've uploaded something on here :D
@codyhillauthorMay 28.2019 — #@Sempervivum#1604106 I just found this in inspect margin-block-start: 2.33em; margin-block-end: 2.33em; margin-inline-start: 0px; margin-inline-end: 0px; I don't know what those are...
I tried this but it didn't worked *{ padding: 0; margin: 0; box-sizing: border-box; margin-block-start: 0; margin-block-end: 0; }
@KeverMay 28.2019 — #It's a block element, so it uses the full width of it's parent unless you give it a width. If you don't want space around it you can set it to "display: inline", but then the text wil be moved to the left side of it's parent.
@codyhillauthorMay 28.2019 — #@Sempervivum#1604117 is not that . That happens everywhere . All of my H's has that . Even if I delete tha padding nothing happens. Only the div shrinks down.
@SempervivumMay 28.2019 — #I cannot spot any margin or padding for that h3. Do you mean the fact that it fills up the complete space in horizontal direction so that there is empty space at the left and the right? If so, you can remove that spaces by setting
@4squarelogicMay 29.2019 — #A collapsed margin is what occurs when two block-level elements with meeting vertical margins combine. When this happens, the larger of the two margins (or any if they are equal) is assumed as the single collapsed margin.