Margin-left property isn't working on p tag

Hey guys, could you take a look at this webpage
and tell me why the margin left property on the card doesn’t affect the second line?

There’s no display: inline in the css, but on chrome dev tools it shows that the p tag is inline. Why’s that?

<p1> is display:inline by default. you could specify it as display:block in p1 element selector like this.

p1{
  display: block;
}
1 Like

Thanks for your reply,
but isn’t a p tag a block level element?
So by default shouldn’t it be having a display: block by default?

yes you are right. When inspected it shows that you have used a custom tag <p1>. And i think it acts as inline by default.

1 Like

change the display properties of p tag to block

p  {
display: block;
}
1 Like

Oh, thanks, it was supposed to be a p tag😄 my bad.

1 Like

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