+ 1
Display property
When i type Div { display: inline; } It doesn’t apply to the html. However when if i change it so the property’s applied to the p it works P { display: inline; } Can somebody explain why? I don’t want to have to type the class for every para that needs to be displayed as an inline element.
4 Respuestas
+ 2
for the div you should use inline-block
+ 2
it is but a div has to have display:inline-block; while other elements can use inline and inline-block
+ 1
so the display property is not applicable for div?
+ 1
oh i see. thank you so much 👍🏽