Здравейте. Как мога да накрам текста и изображенията да се позиционират едно спрямо друго. Мисля, че трябва да се получи с float , но като го приложа всичко се обърква. Ето кода и ето как излиза под Chrome
HTML:
<html>
<head>
<style type='text/css'>
#main {
margin: 10px 10px 0 10px;
width: 650px;
height: 1000px;
background-color: rgb(238, 238, 238);
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
}
h1 {
font-weight: lighter;
font-family: serif, Arial, monospace;
padding-top: 15px;
margin-left: 20px;
}
#content {
padding-top: 60px;
padding-left: 30px;
padding-right: 15px;
}
img {
display: inline-block;
width: 194px;
height: 126px;
}
.article {
height:150px;
padding: 20px;
margin-bottom: 60px;
background-color: white;
}
p {
margin-left: 30px;
position: relative;
top: -90px;
height: 50px;
width: 330px;
display: inline-block;
}
</style>
</head>
<body>
<div id='main'>
<h1>Music Categories</h1>
<div id='content'>
<div class='article'>
<img src='one.png' /><p>Even more websites all about website templates on <strong>Just Website Template</strong>.</p>
</div>
<div class='article'>
<img src='two.png' /><p>If you're looking for beautiful and professionally made templates you can find them at <strong>Template Beauty</strong>.</strong></p>
</div>
<div class='article'>
<img src='three.png' /><p>You can remove any link to our websites from this template you're free to use the template without linking back to us.</p>
</div>
</div>
</div>
</body>
</html>