Warning: Cannot use a scalar value as an array in /home/admin/public_html/forum/include/fm.class.php on line 757

Warning: Invalid argument supplied for foreach() in /home/admin/public_html/forum/include/fm.class.php on line 770

Warning: Invalid argument supplied for foreach() in /home/admin/public_html/forum/topic.php on line 737
Форумы портала PHP.SU :: Пару вопросов про блоки css(dle)

 PHP.SU

Программирование на PHP, MySQL и другие веб-технологии
PHP.SU Портал     На главную страницу форума Главная     Помощь Помощь     Поиск Поиск     Поиск Яндекс Поиск Яндекс     Вакансии  Пользователи Пользователи


 Страниц (1): [1]   

> Без описания
Safok
Отправлено: 22 Июня, 2013 - 17:44:54
Post Id



Гость


Покинул форум
Сообщений всего: 96
Дата рег-ции: Март 2013  


Помог: 0 раз(а)

[+]


Помогите сделать нормальное отображение новостей dle

html код dle:

CODE (html):
скопировать код в буфер обмена
  1.  
  2. <div class="news-box">
  3.  
  4.                
  5.         <div class="block-header"><center>Новый плагин</center></div>
  6.         <img class="img-polaroid2" src="http://smain.ru/style/img/news/1370737911.jpg" width="80" height="80"/>
  7.         <div class="news-text">Был удален ненужный плагин MyHome, его заменил другой. В связи с этим у всех исчезли точки /home. Воспользуйтесь той же командой /sethome для восстановления. Теперь VIP игрокам можно ставить 3 точки дома, а Premium 10 точек дома. <br>Подробности в полной новости.</div>
  8.         <div style="clear:both;"></div>
  9. <div class="news-footer">
  10.  
  11.                 <table width="100%"><tr><td width="95px" align="left"><div style="margin-top: 2px; margin-right: 2px; float:left;"><i class="livicon" data-s="16" data-n="clock"></i></div> 09.06.2013</td><td align="left"><div style="margin-top: 2px; margin-right: 2px; float:left;"><i class="livicon" data-s="16" data-n="eye-open"></i></div> 198 </td><td align="right"> <a class="news-link" href="index.php?id=10">Подробнее</a> </td></tr></table> <!--<span class="divider">|</span>  -->
  12.                 <!--<span class="divider">|</span> <a class="news-link" href=""></a>-->
  13.  
  14.                
  15. <!--
  16.                         <div style="display: inline-block; margin-right: 6px;">
  17.  
  18.                                 <a class="news-link" href="index.php?id=10">
  19.                                
  20.                                         <img style="vertical-align: middle; margin-bottom: 2px;" src="style/img/comment.png" alt="Комментарии" width="12" height="12"/>
  21.                                         0
  22.                                        
  23.                                 </a>
  24.                         </div>
  25. -->
  26. <div class="clr"></div>
  27.         </div>
  28.                        
  29.  
  30.                 </div>
  31.  
  32.     </div>
  33.        
  34. </div>
  35.  
  36.  
  37.  
  38.  


css:
CODE (html):
скопировать код в буфер обмена
  1. /* style css
  2. -------------------------------------------------- */
  3. @import url("bootstrap.css");
  4. @import url("bootstrap-responsive.css");
  5.  
  6. /*@import url("../skinPoser/style.css");*/
  7. .block-header {
  8. display: block;
  9. padding: 5px;
  10. text-align: center;
  11. line-height: 20px;
  12. font-family: "Segoe UI Light","Segoe WPC","Segoe UI",
  13.               Helvetica, Arial, "Arial Unicode MS", Sans-Serif;  
  14.                           font-size: 20px;
  15.                          
  16. }
  17. .footer-block-header {
  18.         height: 2px;
  19.     background: #f1f1f1;
  20.     -webkit-box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125);
  21.      -moz-box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125);
  22.           box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125);
  23. }
  24. .news-text {
  25.   font-size: 14px;
  26.   padding: 5px;
  27.   line-height: 20px;
  28.   white-space: pre-line;
  29.   white-space: -moz-pre-line;
  30.   white-space: -pre-line;
  31.   white-space: -o-pre-line;
  32.   word-wrap: break-word;
  33.   font-family: "Segoe UI Light","Segoe WPC","Segoe UI",
  34.               Helvetica, Arial, "Arial Unicode MS", Sans-Serif;  
  35.                           font-size: 30px;
  36.                        
  37.        
  38. }
  39. .news-footer {
  40.   padding: 6px;
  41.   border: 0;
  42.   border-top: 1px solid #e5e5e5;
  43.  /* border-bottom: 1px solid #eee;*/
  44. }
  45. .faqtablezag{
  46.   text-align:center;
  47.   font-size:16px;
  48.   /*border-bottom: 1px solid #d4d4d4;*/
  49.   -webkit-border-radius: 0 0 0 0;
  50.      -moz-border-radius: 0 0 0 0;
  51.           border-radius: 0 0 0 0;
  52. background: #1570A6;
  53. color: #fff;
  54. }
  55.  
  56. .faqtabletr{
  57.   padding: 10px;
  58.   font-size:14px;
  59.   /*border-bottom: 1px solid #d4d4d4;
  60.   border-top: 1px solid #d4d4d4;*/
  61. }
  62. a.news-link {
  63. padding: 2px 6px 3px 6px;
  64. text-decoration: none;
  65. color: #fff;
  66. background: #7aafff;
  67.   -webkit-transition: 0.2s ease-in-out;
  68.   -moz-transition: 0.2s ease-in-out;
  69.   -o-transition: 0.2s ease-in-out;
  70.   -ms-transition: 0.2s ease-in-out;
  71.   transition: 0.2s ease-in-out;
  72. }
  73.  
  74.  
  75. a.news-link:hover{
  76.         background: #1570A6;
  77. }
  78.  
  79. a.news-link:active{
  80. }
  81. .news-box {
  82.   margin-bottom: 10px;
  83.     background-color: #fff;
  84.         border: 1px solid #ddd;
  85.         min-height: 200px;
  86.     /*-webkit-box-shadow: inset 0 0 0 rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.3);
  87.      -moz-box-shadow: inset 0 0 0 rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.3);
  88.           box-shadow: inset 0 0 0 rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.3);
  89.                   border-radius: 2px;
  90.                   position:relative;*/
  91.                   padding: 0 10px 3px;
  92. }
  93. /*
  94. .news-box:before, .news-box:after
  95. {
  96.     content:"";
  97.     position:absolute;
  98.     z-index:-1;
  99.     -webkit-box-shadow:0 1px 5px rgba(0,0,0,0.2);
  100.     -moz-box-shadow:0 1px 5px rgba(0,0,0,0.2);
  101.     box-shadow:0 1px 5px rgba(0,0,0,0.2);
  102.     top:10%;
  103.     bottom:0px;
  104.     left:20px;
  105.     right:20px;
  106.     -moz-border-radius:160px / 10px;
  107.     border-radius:160px / 10px;
  108. }
  109. */
  110. .news-box .divider {
  111.   padding: 0 5px;
  112.   color: #5b5b5b;
  113. }
  114. .news-header {
  115.   background-color: #fff;
  116.   padding: 6px;
  117.   font-size: 16px;
  118.   color: #999;
  119.   border-bottom: 1px dashed #e0edf1;
  120. }
  121. .news-text {
  122.  
  123.   font-size: 14px;
  124.   /*padding: 10px;*/
  125.  
  126.   white-space: pre-line;
  127.   white-space: -moz-pre-line;
  128.   white-space: -pre-line;
  129.   white-space: -o-pre-line;
  130.   word-wrap: break-word;
  131.        
  132. }
  133.  

Прикреплено изображение (Нажмите для увеличения)
safok.PNG
 
 Top
Страниц (1): [1]
Сейчас эту тему просматривают: 0 (гостей: 0, зарегистрированных: 0)
« HTML, Дизайн & CSS »


Все гости форума могут просматривать этот раздел.
Только зарегистрированные пользователи могут создавать новые темы в этом разделе.
Только зарегистрированные пользователи могут отвечать на сообщения в этом разделе.
 



Powered by PHP  Powered By MySQL  Powered by Nginx  Valid CSS  RSS

 
Powered by ExBB FM 1.0 RC1. InvisionExBB