开发者

Deactivate line feed with css of tag p [closed]

开发者 https://www.devze.com 2023-04-01 14:00 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

Hello I'm defining a css style and I have a problem with t开发者_高级运维he tag p. I am defining a style p tag and I get a line feed but I would like to deactivate its Line feed instead. How to do that?


I assume you are wanting to prevent multiple <p> tags from adding a line-break. In this event, try p {display:inline}; to modify the display property.

The preceeding CSS will remove the line-break by default. Depending on your criteria, you can modify it to reference a specific element or class.


Do you mean the margin underneath? If so try...

p {
    margin-bottom:0;
}
0

精彩评论

暂无评论...
验证码 换一张
取 消