a를 만들었습니다. 이 기사에서는 2 개의 div를 만들고 싶습니다. 이미지가있는 div와 텍스트가있는 div. 나는이 두 요소를 만들었습니다. 그러나 여전히 작동하지 않습니다. 텍스트는 html 2 위치 컨테이너 위치
여기 여기 내 코드*{
padding: 0px;
margin: 0px;
font-family: Raleway;
}
body{
background-image: url(images/hintergrund.png);
}
section{
margin-top: 20px;
width: 60%;
background: white;
border: 2px solid black;
\t box-shadow: 8px 8px 10px 0px rgba(0,0,0,0.75);
margin-left: auto;
margin-right: auto;
padding: 20px;
}
article{
width: 100%;
background-color: red;
overflow: hidden;
}
.one{
background-image: url("http://placehold.it/200x200");
height: 200px;
width: 200px;
}
.two{
}
<html>
<head>
<title>Homepage</title>
<link rel="stylesheet" href="index.css">
<link href='http://fonts.googleapis.com/css?family=Raleway:600' rel='stylesheet' type='text/css'>
</head>
<body>
<section>
<article>
<div class="one">
</div>
<div class="two">
exampleexampleexampleexampleexampleexampleexampleexamplexampleexampleexampleexampleexampleexampleexaexampleexampleexampleexampleexampleexampleexaexampleexampleexampleexampleexampleexampleexaexampleexampleexampleexampleexampleexampleexaexampleexampleexampleexampleexampleexampleexaeexampleexampleexampleexampleexampleexampleexampleexampleexampleexampleexamplempleexampleexampleexampleexampleexampleexampleexampleexampleexampleexampleexampleexample
</div>
</article>
<article>
</article>
</section>
</body>
</html>
있는 jsfiddle jsfiddle
입니다 그리고 ...하지 아래로 지금처럼해야 내가 긴 텍스트를 작성하는 경우, 텍스트는 섹션 밖으로 실행됩니다. 내가 어떻게 고칠 수 있니?