Back to Freecodecamp

Learn Block and Inline Lesson K

curriculum/challenges/english/blocks/top-learn-block-and-inline/65704486e7b02272663824e9.md

latest579 B
Original Source

--description--

Now that you have a basic understanding on how adding width and height to inline elements works.

--questions--

--text--

What happens when you add a bottom padding of 15 pixels to a span element with display set to inline-block?

--answers--

The span element's content will shift upward by 15 pixels.


The span element's width will increase by 15 pixels.


The span element will gain additional space below its content.


Padding has no effect on the layout of an inline-block span element.

--video-solution--

3