Подскажите,почему у меня картинка в нижнем блоке съезжает вниз?Вот код:
<section class="recent_news">
<article>
<img src="images/05.png" alt="pic" class="pic">
<div class="text">
<time>05.12.11</time>
<p><a href="#">It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters.</a></p>
</div>
</article>
<article>
<img src="images/04.png" alt="pic" class="pic">
<div class="text">
<time>04.27.11</time>
<p><a href="#">Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC,making it over 2000 years old.</a></p>
</div>
</article>
<article>
<img src="images/03.png" alt="pic" class="pic">
<div class="text">
<time>04.20.11</time>
<p><a href="3">Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</a></p>
</div>
</article>
<p><a href="#" class="all_news">All events and news</a></p>
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Здравствуйте, подскажите какой тег использовать для увеличения значения, пример на картинке.
Вроде, про такой тег я слышала. Если есть тег прогресс бар, значит и такое должно быть.
Question
eleonore
Подскажите,почему у меня картинка в нижнем блоке съезжает вниз?Вот код:
<section class="recent_news">
<article>
<img src="images/05.png" alt="pic" class="pic">
<div class="text">
<time>05.12.11</time>
<p><a href="#">It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters.</a></p>
</div>
</article>
<article>
<img src="images/04.png" alt="pic" class="pic">
<div class="text">
<time>04.27.11</time>
<p><a href="#">Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC,making it over 2000 years old.</a></p>
</div>
</article>
<article>
<img src="images/03.png" alt="pic" class="pic">
<div class="text">
<time>04.20.11</time>
<p><a href="3">Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</a></p>
</div>
</article>
<p><a href="#" class="all_news">All events and news</a></p>
</section>
css:
.recent_news article{
background:#f8fdfe;
color:#426c93;
margin-bottom:30px;
padding:15px 10px;
-moz-box-shadow:0px 15px 15px -10px #8f9498;
-webkit-box-shadow:0px 15px 15px -10px #8f9498;
box-shadow:0px 15px 15px -10px #8f9498;
border-radius:5px;
-moz-border-radius:5px;
-webkit-border-radius:5px;
}
.recent_news article a{
color:#426c93;
}
time{
color:#273e53;
font-size:11pt;
}
img.pic{
-moz-box-shadow:0px 15px 15px -10px #8f9498;
-webkit-box-shadow:0px 15px 15px -10px #8f9498;
box-shadow:0px 15px 15px -10px #8f9498;
float:left;
}
.text{
margin-left:175px;
}
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.