r/csshelp • • Jan 01 '24

Request Padding not applying to border?

Hi I'm brand new to coding, currently following a book project. It's going really well so far, except when I added a border for h2. It connects to the img, even though there's a 10px padding on it. I know it works bc the text is behaving, so what's going on?

The book is kinda old so maybe it's the def between html 4/5? Again I'm just starting out so I've no idea 😅

2 Upvotes

2 comments sorted by