Deactivate line using css p tag

Hello, I am defining a css style and I have a problem with the p tag. I am defining a p-style tag and I get a line feed, but instead I want to disable its Line channel. How to do it?

+6
source share
2 answers

I assume that you want multiple <p> tags to add line breaks. In this case, try p {display:inline}; change the display property.

In previous CSS, line breaks are removed by default. Depending on your criteria, you can change it to refer to a specific element or class.

+13
source

Do you mean bedding? If so, try ...

 p { margin-bottom:0; } 
+5
source

Source: https://habr.com/ru/post/896218/


All Articles