Question - Assessment wanted for Marking up a letter

Hey! I got a question when I was completing Marking up a letter Assignment at MDN Learn.

Question - Why the CSS doesn't take any effect when I add the "sender-column" class to <time> element? It only effects when I add this class to <p> element.

Here is my code at Codepen. Please check it and tell me if it is wrong.

Hello @Hakan

cause the time element is inline element so it’s width is the width of it’s content
but p is block which go to the full width (unless changed)

you will get that when you start your trip in learning about css

hope that help and have a nice day

1 Like

Oh! I get it now. I feel stupid that I never thought it that way, hehe. Thank your for the help though. Have a awesome day.
Bye

@Hakan
we all still learning here so sometime we forget some stuff it’s usual and you doing great

have a nice day