Let's take this as an example:
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<link type="text/css" rel="stylesheet" href="s.css">
</head>
<body>
<div id="container">
<p>qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq</p>
</div>
</body>
</html>
CSS
* {
margin:0px;
padding:0px;
}
#container {
margin:10px;
width:400px;
border: 2px solid red;
}
And it looks like this:

What should I do to always place such texts in the parent div?
source
share