Back to Freecodecamp

Learn Block and Inline Lesson J

curriculum/challenges/english/blocks/top-learn-block-and-inline/65704485e7b02272663824e8.md

latest595 B
Original Source

--description--

Now that you have a basic understanding on how adding width and height to inline elements works, what happens when you add a top padding of 10 pixels to a span element?

--questions--

--text--

What happens when you add padding-top: 10px; to a span element?

--answers--

The span element's content will shift downward by 10 pixels.


The span element will gain additional space above its content.


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


Padding has no effect on the layout of a span element.

--video-solution--

2