Line-height


#1

In line-height exercise it asked me to set the height of paragraph element to 1.7em.
For the given question i wrote the following code in the first line within pragraph element:

line-height:1.7em;

But i got an error. So when i clicked in GET CODE then what i observed is that the code was same but it was written on the 4th line i.e after font-size.

So i just wanna inquire that is there any order which should be tken care of while making use of line-height attribute.


#2

Nope. It was probably checking your code against the set answer it had, and expected the line-height attribute to be below font-size. Codecademy behaves that way sometimes...


#3

Thanks :slight_smile:


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.