سؤال

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