+ 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 RĂ©ponses
+ 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 đđœ