Не нравятся результаты поиска? Попробуйте другой поиск!
DLE FAQ » Все вопросы » Шаблоны (TPL) » Как вывести картинки по центру?

Как вывести картинки по центру?


     08.04.2021    Шаблоны (TPL), Стили (CSS)    869

вопрос
Помогите пожалуйста! Не как не получается в полной статье вывести картинку по центру

fullstory.tpl
<div class="story">
 <div class="full-story">
  <table width="100%" cellspacing="0" padding="0" border="0">
   <tbody><tr>
    <td>
     <div class="post-title">{title} [edit] Редактировать [/edit]</div>
     <div class="category">
      {link-category}
     </div>
      {full-story} 
    </td>
   </tr>
   <tr>
    <td>  </td>
   </tr>
  </tbody></table>
   
</div>
 <div class="post-data">
  Добавил {author} {date} Просмотров: {views} </div>
  <div align="center"></div>
  [tags]<div class="tags">Теги: {tags}</div>[/tags]
</div>
[related-news]
<div class="related-block"> 
<span>Похожее:</span>
  <ul>
    {related-news}
  </ul>
</div>
[/related-news]
{comments}
{navigation}
{addcomments}


CSS


/* NEWS POST */
.story{
width:530px;
margin:0 0 5px 0;
}
.post-title{
font-size:16px;
font-weight:bold;
color:#303030;
text-decoration:none;
font-family:"Arial";
line-height:20px;
}
.post-title a{
font-weight:bold;
color:#909090;
font-size:16px;
text-decoration:none;
font-family:"Arial";
}
.post-title a:hover{
color:#fff;
text-decoration:underline;
}
.full-story{
width:530px;
padding:0 0 10px 0;
color:#505050;
font-size:13px;
line-height:150%;
text-align:justify;
}
.full-story a {
color:#007de7;
font-size:13px;
}
.full-story a:hover {
color:#000;
text-decoration:none;
}
.full-story img {
margin:0 10px 10px 0;
}
.full-story ul {
margin-left:15px;
}
.category{
line-height:20px;
height:20px;
padding:0;
font-size:13px;
color:#fff;
margin:0 0 5px 0;
}
.category a{
line-height:20px;
height:20px;
padding:2px 5px;
color:#fff;
font-size:13px;
text-decoration:none;
background:#51ac00 url(../images/green.png) repeat-x;
border-radius:5px;
}
.category a:hover{
color:#ccc;
text-decoration:underline;
background:#505050;
}
.post-data{
font-size:12px;
color:#909090;
min-height:20px;
overflow:hidden;
line-height:20px;
border-bottom:1px solid #ccc;
}
.post-data a{
color:#007de7;
font-size:12px;
text-decoration:none;
}
.post-data a:hover{
color:#000;
text-decoration:none;
}
.post-data span{
float:left;
width:150px;
}
.tags{
padding:3px 0;
font-size:12px;
color:#303030;
font-weight:bold;
}
.tags a{
font-size:11px;
color:#fff;
line-height:20px;
height:20px;
text-decoration:none;
font-weight:normal;
background:#007de7 url(../images/blue.png) repeat-x;
border-radius:5px;
-webkit-border-radius:5px;
-moz-border-radius:5px;
padding:1px 5px 2px 5px;
}
.tags a:hover{
color:#000;
text-decoration:underline;
}
.related-block{
background:url(../images/short-data.png) repeat-x;
color:#007de7;
overflow:hidden;
position:relative;
width:530px;
max-height:210px;
margin-bottom:10px;
border-radius:5px;
-webkit-border-radius:5px;
-moz-border-radius:5px;
border-top:1px solid #ccc;
}
.related-block span{
font-size:15px;
font-weight:bold;
color:#08af00;
line-height:20px;
padding:0 10px;
border-bottom:2px solid #08af00;
display:block;
}
.related-block ul{
list-style:none;
padding:5px 0;
margin:0;
}
.related-block li{
display:block;
float:left;
position:relative;
overflow:hidden;
padding:0;
}
.related-block li.related{
overflow:hidden;
width:255px;
height:25px;
padding:5px 0;
margin:0 5px;
border-bottom:1px solid #e1e1e1;
font-size:12px;
color:#909090;
position:relative;
float:left;
overflow:hidden;
}
.related-block li.related a{
color:#505050;
font-size:12px;
line-height:15px;
padding:0;
text-decoration:none;
font-weight:bold;
}
.related-block li.related a:hover{
text-decoration:underline;
color:#000;
}
.related-block li.related img{
width:50px;
}
.short-story{
overflow:hidden;
position:relative;
width:530px;
padding:10px 0;
font-size:12px;
color:#505050;
border-bottom:1px solid #e1e1e1;
}
.short-story a{
color:#007de7;
font-size:13px;
line-height:15px;
padding:0;
text-decoration:underline;
font-weight:bold;
}
.short-story a:hover{
text-decoration:none;
color:#000;
}
.short-title{
min-height:20px;
line-height:20px;	
}
.short-title a{
color:#007de7 !important;
font-size:14px;	
font-weight:bold;
}

Ответа пока нет


1 комментарий

MaksOn
Юзер

MaksOn - 9 апреля 2021 01:59 -

<center>картинка</center>

Чтобы комментировать - войдите или зарегистрируйтесь на сайте

Похожие вопросы

 18.12.2013 abcdefghijklmnoprstuvwxyz  Шаблоны (TPL)
наверх