我制作了一个包装div,文本div和图像div浮动到右侧。一个简单的任务,是的,但似乎今晚不适合我。我无法使其工作并卡住。图片不会进入div
这里是它的外观现在:http://bit.ly/RNinCm
CSS:
introwrapper {
width: 938px;
background-color: white;
margin-bottom: -20px;
padding-left: 5px;
}
.introtekst {
font-size: 30px;
text-transform: uppercase;
font-family: Arial, Verdana, sans-serif;
color: #a81c11;
}
.gammeltbilde {
float: left;
}
HTML:
<div id="introwrapper">
<div class="introtekst">
<p>Some text here.</p>
</div>
<div class="gammeltbilde">
<img src="bilder/kjiptbilde.jpg" alt="bilde fra parken"/>
</div>
</div>
不管我给它的大小仍然不能进入我打算容器。我试过800(非常大)和20。 – user1736049