我创建了一个。在这篇文章中,我想创建2个div。 1格与图像和其他格与文字。我创建了这两个元素。但仍然无法工作。文本应该是不降反升像现在......html 2 div容器定位
这里是我的代码
*{
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
如果我写了长文,该文本将用完该部分。我该如何解决这个问题?