Всем привет, никак не могу найти вывод ширины шаблона бьюсь уже 2-й день, шаблон с относительной шириной столбцов, левый и правый могу менять, но за счет общей ширины, в "wrap { width: 120%; clear: both; }" поставил 120% сайт смещается вправо без изменения ширины Где общую ширину поменять в голову не лезит... layout.css Код (PHP): /* MAIN LAYOUT DIVS --------------------------------------------------------- */ .wrap { width: 120%; clear: both; } .main { width: 900px; max-width: 1200px; margin: 0 auto; position: relative;} .column { overflow: hidden; float: left; } .ja-mass { clear: both; } /* Gutter ---*/ .main .inner { /* We use liquid layout, so we need to insert a div which will create margin if need */ padding-left: 5px; padding-right: 5px; } #ja-main .inner { padding: 0 !important; margin-left: 5px; margin-right: 5px; } #ja-mainnav .inner { padding: 0 !important; margin-left: 5px; margin-right: 5px; } .column div.ja-moduletable, .column div.moduletable, .column div.ja-module, .column div.module { /* for side columns and spotlight, we only need to add margin or padding to Module */ margin-left: 5px; margin-right: 5px; } .ja-inset2 div.ja-moduletable, .ja-inset2 .div.moduletable, .ja-inset2 div.ja-module, .ja-inset2 div.module { margin-right: 0; margin-left: 10px; } .ja-inset1 div.ja-moduletable, .ja-inset1 .div.moduletable, .ja-inset1 div.ja-module, .ja-inset1 div.module { margin-right: 10px; margin-left: 0; } .article_column .contentpaneopen { /* for article columns, we only need to add margin or padding to this div */ padding-left: 5px; padding-right: 5px; } .leading { } .article_row { /* minus the spacing of the article row to macth with the Gutter & global grid */ margin-left: -5px; margin-right: -5px; } /* MAIN COLUMN --------------------------------------------------------- */ #ja-mainbody { float: left; } #ja-current-content, #ja-main { float: right; } /* SIDE COLUMNS --------------------------------------------------------- */ .ja-colswrap {} .ja-col {} /* Left Column ---*/ #ja-left .ja-l2 .ja-left1, #ja-left .ja-l2 .ja-left2 { width: 70%; } #ja-left .ja-l1 .ja-col { width: 100%; } /* Right Column ---*/ #ja-right { float: right; } #ja-right .ja-r2 .ja-right1, #ja-right .ja-r2 .ja-right2 { width: 70%; } #ja-right .ja-r1 .ja-col { width: 100%; } /* HEADER --------------------------------------------------------- */ #ja-header {} /* FOOTER --------------------------------------------------------- */ #ja-footer { clear: both; } /* CONTENT'S GRIDS --------------------------------------------------------- */ .article_column { float: left; position: relative; } .cols1 .article_column { width: 100%; } .cols2 .article_column { width: 50%; } .cols3 .article_column { width: 33.33%; } .cols4 .article_column { width: 25%; } .cols5 .article_column { width: 30%; } /* SPOTLIGHT --------------------------------------------------------- */ #ja-topsl {} #ja-botsl {} .ja-box { float: left; overflow: hidden; } и вот еще defoult.php Код (PHP): // no direct access defined( '_JEXEC' ) or die( 'Restricted access' ); $this->_basewidth = 20; $this->customwidth('left1', 20); $this->customwidth('right1', 20); $this->customwidth('left-mass-top', 30); $positions = array ( 'left1' =>'left', 'left2' =>'', 'left-mass-top' =>'main', 'left-mass-bottom' =>'', 'right1' =>'right', 'right2' =>'', 'right-mass-top' =>'', 'right-mass-bottom' =>'', 'content-mass-top' =>'', 'content-mass-bottom' =>'', 'content-top' =>'', 'content-bottom' =>'', 'inset1' =>'', 'inset2' =>'' ); $this->definePosition ($positions); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>"> <head> <?php $this->loadBlock('head')?> </head> <body id="bd" class="fs<?php echo $this->getParam(JA_TOOL_FONT);?> <?php echo $this->browser();?>"> <div id="ja-wrapper"> <a name="Top" id="Top"></a> <!-- HEADER --> <?php $this->loadBlock('header')?> <!-- //HEADER --> <!-- MAIN NAVIGATION --> <?php $this->loadBlock('mainnav')?> <!-- //MAIN NAVIGATION --> <?php $this->loadBlock('topsl')?> <!-- MAIN CONTAINER --> <div id="ja-container" class="wrap <?php echo $this->getColumnWidth('cls_w'); ?>"> <div class="main clearfix"> <div id="ja-mainbody" style="width:<?php echo $this->getColumnWidth('mw')?>%"> <div class="ja-box1"><div class="ja-box2"> <?php $this->loadBlock('main')?> <?php $this->loadBlock('left')?> </div></div> </div> <?php $this->loadBlock('right')?> </div> </div> <!-- //MAIN CONTAINER --> <?php $this->loadBlock('botsl')?> <!-- FOOTER --> <?php $this->loadBlock('footer')?> <!-- //FOOTER --> </div> <jdoc:include type="modules" name="debug" /> <?php if ($this->isIE6()) : ?> <?php $this->loadBlock('ie6/ie6warning')?> <?php endif; ?> </body> </html>
ну вот это вот .main { width: 900px; max-width: 1200px; margin: 0 auto; position: relative;} первые два параметра