문제

Objective: To make the text start where the first line started underneath it.

Recommended Language:
CSS and HTML

Example: Example

Final Result: enter image description here

도움이 되었습니까?

해결책

You could add display: block; to the :before selector.

p:before {
    content: "This is inside the boxd and in the :before selector";
    background: green;
    color: white;
    border: 1px solid transparent;
    border-radius: 5px;
    padding-right: 100px;
    text-align: center;
    display: block;
}

Here is a fiddle http://jsfiddle.net/4XY2R/

Assuming this is what you're trying to do.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top