Item p element doubt

Hello, I need help with one thing.

I would know how to put a p item in the start of the line in the CSS.

What have you tried?

Is this about a step in the curriculum? If so, its best to use the Ask For Help button.

I tried

margin: 0, 0, 0, 0;

it´s the 5 project of the html

That looks like a CSS rule for a p element. In what way is it not doing what you expect?

The element is on the center, because I add, text-align: center to the p elements

I don’t understand the question, but the values for the margin shorthand are not comma-separated.

p {
  margin: 1rem 0 1rem 0;

And if you just want all sides to be 0 you can set it using a single value.

p {
  margin: 0;
1 Like

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