Set style "white-space" value to:
“That's why they call it the American Dream, because you have to be asleep to believe it.”
― George Carlin
Width of element
The rendering sequence may like this:
- Get the width
- Apply margin
- Display border
- Apply padding
- Display content
border:1px black solid; margin: 10px 10px; padding: 10px 10px; width:600px;
border:1px black solid;
Block element (such as a div, p, or ul, ...) will, by default expand to fit the width of its containing, or parent, element (minus any margins it has or padding its parent has).
Block element (such as a div, p, or ul, ...) will, by default expand to fit the width of its containing, or parent, element (minus any margins it has or padding its parent has).
border:1px black solid; margin: 10px 10px; padding: 10px 10px;
border:1px black solid; width:100%;margin:10px 100px;
Block element (such as a div, p, or ul, ...) will, by default expand to fit the width of its containing, or parent, element (minus any margins it has or padding its parent has).
Block element (such as a div, p, or ul, ...) will, by default expand to fit the width of its containing, or parent, element (minus any margins it has or padding its parent has).
border:1px black solid; margin: 10px 10px; padding: 10px 10px; width:600px;
border:1px black solid; width:100%;margin:10px 100px;
Block element (such as a div, p, or ul, ...) will, by default expand to fit the width of its containing, or parent, element (minus any margins it has or padding its parent has).
Block element (such as a div, p, or ul, ...) will, by default expand to fit the width of its containing, or parent, element (minus any margins it has or padding its parent has).
border:1px black solid; margin: 10px 10px; padding: 10px 10px;
display:inline; border:1px black solid;margin:10px 100px;
Block element (such as a div, p, or ul, ...) will, by default expand to fit the width of its containing, or parent, element (minus any margins it has or padding its parent has).
Block element (such as a div, p, or ul, ...) will, by default expand to fit the width of its containing, or parent, element (minus any margins it has or padding its parent has).
border:1px black solid; margin: 10px 10px; padding: 10px 10px; width:600px;
display:inline; border:1px black solid;margin:10px 100px; width:60px;
Block element (such as a div, p, or ul, ...) will, by default expand to fit the width of its containing, or parent, element (minus any margins it has or padding its parent has).
Block element (such as a div, p, or ul, ...) will, by default expand to fit the width of its containing, or parent, element (minus any margins it has or padding its parent has).