Решено! Модули съезжают вниз страницы

Тема в разделе "Внешний вид, шаблоны, графика", создана пользователем Pasha89, 21.08.2014.

  1. Offline

    Pasha89 Недавно здесь

    Регистрация:
    15.07.2014
    Сообщения:
    29
    Симпатии:
    0
    Пол:
    Мужской
    Создал шаблон на denwer было все норм, выложил в интернет и тут пошло поехало...модули с правой колонки (Поиск, Авторы) спустились под content и footer съехал тоже .Не могу понять где ошибки.
    Код (css):
    1. *{
    2.  
    3. padding:0 auto;
    4. outline:none;
    5. }
    6.  
    7. body, html {
    8.   height:100%;
    9.   margin:0;
    10.   padding:0;
    11.   background-image: url('images/myimg/fon.jpg') repeat;
    12.   font:14px Arial, Helvetica, sans-serif ;
    13.   line-height:1.3;
    14.   color:#000;
    15.   text-align:left;
    16. }
    17. #container{
    18.   width: 1024px;
    19.   margin:0 auto;
    20.   min-height:100%;
    21.   background-color: #ffffff;
    22.   position: relative;
    23. }
    24. #header{
    25.   background-image: url(img/shapka.jpg);
    26.   height:200px;
    27.   text-align:right;
    28. }
    29. #wrap {width:1024px;
    30.       clear:both;
    31.      overflow: hidden;
    32.      height:auto;
    33. }
    34.  
    35. #wrap2 {float:left;
    36.       width:810px;
    37.        min-height:100%;
    38.       overflow: hidden;
    39.       clear:both;
    40.       margin-left:2px;
    41. }
    42. #left{
    43.   background-color: #;
    44.   width: 195px;
    45.   float: left;
    46.   margin-top:5px;
    47.   text-align:left;
    48. }
    49. #odinL {  padding:5px;
    50.     width: ;
    51.     background-color:#ddd;
    52.     clear:both;
    53.     border-radius:6px;
    54. }
    55.  
    56.  
    57. #right{
    58.   background-color:#;
    59.   width:200px;
    60.   float:left;
    61.   margin-top:5px;
    62.   margin-left:px;
    63.  
    64.  
    65.   }
    66. #odinP {  padding:5px;
    67.     width: px;
    68.     background-color:#ddd;
    69.     clear:both;
    70.     border-radius:6px;
    71. }
    72. #dvaP {  padding:px;
    73.     width: px;
    74.     background-color:#bbb;
    75.     clear:both;
    76.     border-radius:6px;
    77. }
    78. #content{
    79.   background-color:;
    80.   padding: 10px 8px 5px 5px;
    81.   float:right;
    82.   width:600px;
    83.   padding-bottom: 50px;
    84.   <--box-shadow: 0 0 5px #bebdbd inset;
    85.   margin-top:5px;
    86. }
    87. #rasporka{
    88.   height:40px;
    89. }
    90. #footer{
    91.   background-color: #0072bc;
    92.   width: 1024px;
    93.   height:40px;
    94.   margin:-40px auto 0 auto;
    95.   position: relative;
    96.   clear:both;
    97.   text-align:center;
    98.   }
    99.  
    100. #user2 {
    101.     width: 100%;
    102.     background-color:#fffce9;
    103.     clear:both;
    104. }


    Код (xml):
    1. <?php
    2. defined('_JEXEC') or die('Restricted access');
    3. JHtml::_('behavior.framework', true);
    4.  
    5. ?>
    6. <?php echo '<?'; ?>xml version="1.0" encoding="<?php echo $this->_charset ?>"?>
    7.  
    8. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    9.  
    10. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
    11. <head>
    12. <jdoc:include type="head" />
    13.  
    14. <link rel="stylesheet" href="/templates/system/css/system.css" type="text/css" />
    15. <link rel="stylesheet" href="/templates/system/css/general.css" type="text/css" />
    16.  
    17. <link rel="stylesheet" href="/templates/<?php echo $this->template ?>/css/template.css" />
    18. <link rel="stylesheet" href="/templates/<?php echo $this->template ?>/css/menu.css" />
    19.  
    20.  
    21.  
    22. <link rel="icon" href="/templates/likbez-net/favicon.ico" type="image/x-icon">
    23. <link rel="shortcut icon" href="/templates/likbez-net/favicon.ico" type="image/x-icon">
    24. </head>
    25.  
    26. <body style="background-image:url(images/myimg/fon.jpg);">
    27.   <div id="container">
    28.     <div id="header">
    29.     <jdoc:include type="modules" name="header" style="xhtml" />
    30.        <img src="images/myimg/17001.jpg" width="1024px" alt="шапка сайта">
    31.     </div>
    32.       <div id="user2 ">
    33.      <jdoc:include type="modules" name="user2" style="xhtml" />
    34.       </div>
    35.      <div id="user1 ">
    36.      <jdoc:include type="modules" name="user1" style="xhtml" />
    37.       </div>
    38.      <div id="wrap">
    39.      
    40.         <div id="wrap2">
    41.            <div id="left">
    42.            <div id="odinL"><jdoc:include type="modules" name="odinL" style="xhtml" /></div>
    43.             <div id="dvaL"><jdoc:include type="modules" name="dvaL" style="xhtml" /></div>
    44.             <div id="triL"><jdoc:include type="modules" name="triL" style="xhtml" /></div>
    45.             <div id="chetL"><jdoc:include type="modules" name="chetL" style="xhtml" /></div>
    46.             <div id="pytL"><jdoc:include type="modules" name="pytL" style="xhtml" /></div>
    47.             <div id="shesL"><jdoc:include type="modules" name="shesL" style="xhtml" /></div>
    48.            </div>
    49.           <div id="content<?php echo $contentwidth; ?>">
    50.            <jdoc:include type="message" />
    51.            <jdoc:include type="component" style="xhtml" />
    52.            </div>
    53.        </div>
    54.         <div id="right">      
    55.             <div id="odinP"><jdoc:include type="modules" name="odinP" style="xhtml" /></div>
    56.             <div id="dvaP"><jdoc:include type="modules" name="dvaP" style="xhtml" /></div>
    57.             <div id="triP"><jdoc:include type="modules" name="triP" style="xhtml" /></div>
    58.             <div id="chetP"><jdoc:include type="modules" name="chetP" style="xhtml" /></div>
    59.             <div id="pytP"><jdoc:include type="modules" name="pytP" style="xhtml" /></div>
    60.             <div id="shesP"><jdoc:include type="modules" name="shesP" style="xhtml" /></div>
    61.             </div>
    62.      </div>
    63.       <div id="rasporka"></div>
    64.   </div>  
    65.       <div id="footer"></div>    
    66. </body>
    67. </html>
     
    Последнее редактирование: 21.08.2014
  2.  
  3. OlegK
    Offline

    OlegK Russian Joomla! Team Команда форума ⇒ Профи ⇐

    Регистрация:
    17.01.2011
    Сообщения:
    7 813
    Симпатии:
    771
    Пол:
    Мужской
    а файлы стилей подключились ?
     
  4. Offline

    Pasha89 Недавно здесь

    Регистрация:
    15.07.2014
    Сообщения:
    29
    Симпатии:
    0
    Пол:
    Мужской
    не там ставил подробнее, после чего все съезжало
     

Поделиться этой страницей

Загрузка...