народ я уже зарылся в этих кссах)подскажите пожалуйста я новичок в этом деле.... где там прописана ширина вот допустим код одного шаблона... Код (PHP): body { font-family: Tahoma, Verdana, sans-serif; line-height: 1.3em; margin: 0; padding: 0; font-size: 12px; color: #000; background: #FEFEFE url(../images/bg.jpg) top left repeat-x; text-align: center; } .clr { clear: both; } body.contentpane { background: #FEFEFE url(../images/bg.jpg) top left repeat-x; text-align: left; } body.contentpane .contentpaneopen { width: 97%; } body.contentpane .contentpaneopen .contentheading { } .moduletable { margin: 0 auto; } select.button { width: auto; padding: 0; } td { font-family: Tahoma, Verdana, sans-serif; color: #000; font-size: 11px; } .sectiontableentry2, .sectiontableentry1 { color: #666; } ul { margin: 0; padding: 0; list-style: none; } li{ line-height: 20px; padding-left: 12px; padding-top: 0px; } a:link, a:visited { text-decoration: underline; font-weight: normal; color: #333; } a:hover { text-decoration: none; font-weight: normal; color: #000; } p { margin-top: 0; margin-bottom: 5px; text-align: justify; } .center { text-align: center; margin: 10px auto 0 auto; padding: 0; width: 920px; } div#wrapper { margin: 0 auto; width: 920px; text-align: center; background: url(../images/content.jpg) top center repeat-y; } #area { padding: 0; margin: 0 auto; text-align:center; } #search form { margin:0; padding:0; } #search .moduletable { margin:0; padding:0; } #search .search { width: 126px; height: 24px; padding: 6px 0 0 20px; } #search .search .button { display: none; } #search .search .inputbox { font-size: 11px; background: none; border: 0; padding: 0; margin:0; } #top { background: url(../images/top.jpg) top center no-repeat; margin: 0 auto; width: 970px; height: 41px; } #int { width: 880px; margin: 0 auto; } #lpart { float: left; width: 590px; padding: 0; } #pathway { padding: 0; text-align: left; height: 35px; } span.pathway { color: #333; display: block; padding: 20px 0 0 0; font-size: 11px; overflow: hidden; font-size: 11px; } span a.pathway { text-decoration: underline; } #pathway span img { height: 5px; padding: 0 0 1px 0; } #newsflash { margin: 0; float: left; width: 290px; padding: 10px 0 0 0; height: 190px; overflow: hidden; } #newsflash th { padding: 4px 0; text-align: left; color: #444; font-size: 12px; font-weight: bold; } #newsflash td { text-align: justify; color: #444; font-size: 12px; } #header { height: 219px; background: url(../images/header.jpg) top center no-repeat; margin: 0 auto; width: 970px; } .maintable { margin: 0 auto; width: 906px; text-align: left; } #sitename { padding: 71px 0 0 0px; text-align: left; } #sitename p { font-weight: normal; font-family: Verdana, Arial, sans-serif; font-size: 24px; padding: 0; margin: 0; letter-spacing: 1px; color: #777; text-decoration: none; outline: none; line-height: 20px; } #menucenter { text-align: left; margin: 0 auto; padding: 0; background: url(../images/menu.jpg) top center no-repeat; width: 970px; height: 29px; } #menucenter .menu_m { float: left; padding: 0; margin: 0; } #topnavi{ } #topnavi ul { margin: 0; padding: 0 28px; list-style: none; } #topnavi ul li { float: left; margin: 0; padding: 0; height: 29px; background: url(../images/menu_li.jpg) bottom right no-repeat; } #topnavi ul li a{ font-family: Verdana, Tahoma, sans-serif; font-size: 12px; float: left; display: block; line-height: 26px; padding: 0 10px; color: #999; text-decoration: none; font-weight: normal; text-transform: lowercase; height: 29px; } #topnavi ul li a:hover,#topnavi ul li a.current{ color: #666; cursor: pointer; } #topnavi ul li a span{ } #topnavi ul li a:hover span,#topnavi ul li a.current span { } #leftmenu, #rightmenu { margin: 0; width: 180px; float: left; text-align: left; padding: 0; } #main { float: left; width: 528px; padding: 0 6px; text-align: left; } #main_full { float: left; width: 688px; padding: 0 0 0 10px; text-align: left; } #content_top { background: url(../images/content_top.jpg) top center no-repeat; height: 27px; } #content { width: 900px; margin: 0 auto; text-align: center; padding: 0 10px 10px 10px; } #content_bottom { background: url(../images/content_bottom.jpg) top center no-repeat; height: 26px; } #footer { margin: 0 auto; width: 906px; height: 10px; text-align: center; vertical-align: top; padding: 10px 0; } a.mainlevel:link, a.mainlevel:visited { line-height: 20px; padding: 0 0 0 14px; text-decoration: none; color: #666; font-weight: normal; font-size: 11px; background: url(../images/menu_row.jpg) center left no-repeat; margin: 0; height: 20px; display: block; } a#active_menu.mainlevel:link, a#active_menu.mainlevel:visited { color: #333; } a#active_menu.sublevel:link, a#active_menu.sublevel:visited { color: #333; } a.mainlevel:hover { background: #e9edfb url(../images/menu_row_hover.jpg) center left no-repeat; } a.sublevel:link, a.sublevel:visited { text-decoration: none; color: #666; margin: 0 0 0 -4px; font-size: 11px; background: url(../images/submenu_row.jpg) center left no-repeat; font-weight: normal; display: block; line-height: 20px; padding: 0 0 0 24px; border: none; height: 20px; display: block; text-align: left; } a.sublevel:hover { background: #e9edfb url(../images/submenu_row_hover.jpg) center left no-repeat; } table.contentpaneopen { margin: 2px 8px; border-spacing: 0; padding: 0; border-collapse: collapse; text-align: justify; } #header table.contentpaneopen { margin: 2px 0; border-spacing: 0; padding: 0; border-collapse: collapse; text-align: justify; } table.contentpaneopen td.contentheading { color: #333333; font-family: Tahoma,Arial,sans-serif; font-size: 12px; font-weight: bold; padding: 0; text-align: left; vertical-align: middle; } .button { color: #333; font-size: 10px; border: 1px solid #555; } .inputbox { border: 1px solid #555; color: #333; padding: 2px; } input[type="checkbox"] { border: none; } .copyright { color: #555; font-family: Tahoma, Verdana, sans-serif; font-size: 12px; padding: 0; margin: 0 23px; text-align: center; } .back_button { float: left; text-align: center; font-size: 11px; font-weight: normal; width: auto; padding: 0px 10px; line-height: 20px; margin: 10px 0 50px 0; } .componentheading { height: 22px; padding: 8px 0 0 10px; font-family: Tahoma, Arial, sans-serif; font-size: 14px; margin: 0; text-align: left; color: #555; } .wrapper { width: 670px; height: 550px; } .module div div div h3 { color: #666; font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 11px; text-align: center; height: 27px; text-decoration: none; padding: 0 5px; background: url(../images/h3.jpg) top center no-repeat; font-weight: normal; line-height: 28px; margin: 0; text-transform: uppercase; } .module { padding: 0; margin: 0; } .module div { padding: 0; margin: 0 0 14px 0; } .module div div { margin:0; width: 100%; padding: 0; background: url(../images/column_bottom.jpg) bottom center no-repeat; } .module div div div { margin:0; padding: 0 0 4px 0; background: url(../images/column_top.jpg) top center no-repeat; text-align: center; } .module div div div div{ border: none; padding: 0; margin: 0; } .module div div div table { margin: 4px 0 0 0; padding: 0 3px; list-style: none; background: none; } .module div div div div { padding: 0 0 1px 0; background: none; } .module div div div div.syndicate { margin: 0; padding: 10px 0; } .module div div div form { padding: 0; margin: 0; text-align: center; } .module div div div form table { padding: 0 10px; width: 100%; text-align: left; } /* footer links*/ a.sgfooter:link, a.sgfooter:visited { color: #555; font-size: 12px; font-family: Tahoma, Verdana, sans-serif; text-decoration: none; } a.sgfooter:hover { color: #555; font-family: Tahoma, Verdana, sans-serif; text-decoration: none; } /**/ /*banner*/ .sgf { font-size: 12px; font-family: Tahoma, Verdana, sans-serif; color: #555; text-decoration: none; } .sgf1 { font-size: 12px; font-family: Tahoma, Verdana, sans-serif; color: #555; text-align: left; } a.sglink:link, a.sglink:visited { color: #FFF; font-size: 12px; font-family: Tahoma, Verdana, sans-serif; text-decoration: none; } a.sglink:hover { text-decoration: none; } a img { border: 0; } .pagenav { font-size:12px; font-weight:normal; } #topnavigation a.topnavigation:link, a.topnavigation:visited { font-family: Tahoma, Verdana, sans-serif; font-size: 10px; font-weight: normal; letter-spacing : 1px; color: #fefefe; padding-right:5px; text-decoration:none; } #topnavigation a.topnavigation:hover { color: #b9f15d; border-bottom: none; text-decoration:none; } #topnavigation a.topnavigation:active { color: #51c0f5; text-decoration:none; } a.toclink:link, a.toclink:visited { line-height:normal; font-size:11px; font-family: Tahoma, Verdana, sans-serif; color: #000000; text-decoration: underline; } a.toclink:hover { text-decoration: none; } table.contenttoc { padding: 2px; margin-left: 2px; margin-bottom: 2px; } table.contenttoc th { color: #333; text-align: left; padding-top: 2px; padding-left: 4px; height: 21px; font-weight: normal; font-size: 11px; text-transform: uppercase; } .sectiontableheader { height: 20px; padding-right:3px; font-weight :normal; } table.contentpane td.contentdescription { font-size:12px; line-height:18px; } table.contentpane td.componentheading { height: 20px; padding: 0 0 3px 0; color: #555; text-align: left; padding-bottom:3px; white-space: nowrap; font-family: Tahoma, Verdana, sans-serif; font-size: 14px; font-weight: normal; } table.contentpane td { padding-top:1px; padding-bottom:2px; font-size:12px; } table.contentpaneopen td { line-height: 14px; font-size: 12px; } .height { height: 100%; } .small { font-size: 10px; color: #555; font-weight: normal; text-align: left; } table.contentpaneopen td.createdate { color: #555555; font-size: 10px; font-weight: normal; height: 20px; padding-top: 0; vertical-align: top; } table.contentpaneopen td.modifydate { color: #555555; font-size: 10px; font-weight: normal; height: 20px; text-align: right; vertical-align: bottom; } table.contentpaneopen td a.readon{ display: block; float: right; line-height: 14px; font-size: 10px; text-decoration: none; padding: 1px 2px 1px 2px; color: #333; } table.contentpaneopen td a.readon:hover{ color: #333; } h4 { font-size: 10px; text-transform: uppercase; } table.contentpaneopen td.buttonheading { } .pagenav_next, .pagenav_prev { font-size: 12px; color: #666; } я везде менял параметры возле любого слова width: и смотрел изменения...и ничерта(((все время прихожу в тупик..подскажите пожалуйста кому не трудно..или направьте в какую сторону копать... Заранее благодарю....
Сайт, увы, не виден, поэтому вопрос (а может быть и подсказка): а где КОД ШАБЛОНА? То, что представлено выше - это CSS. Так может быть в шаблоне имеют место таблицы?
у вас сайт вообще не доступен??хмм..странно у меня и моих друзей все работает((( код шаблона вот он..но там все через дивы... Код (PHP): <?php defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); // needed to seperate the ISO number from the language file constant _ISO $iso = split( '=', _ISO ); // xml prolog echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>'; ?> <!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"> <head> <?php if ( $my->id ) { initEditor(); } ?> <?php mosShowHead(); ?> <meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" /> <?php echo "<link rel=\"stylesheet\" href=\"$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/css/template_css.css\" type=\"text/css\"/>" ; ?> <link rel="alternate" type="application/rss+xml" title="<?php echo $mosConfig_sitename?>" href="<?php echo $mosConfig_live_site;?>/index.php?option=com_rss&feed=RSS2.0&no_html=1" /> </head> <body> <div id="top"></div> <div id="header"> <div id="int"> <div id="lpart"> <div id="pathway"> <?php mosPathWay(); ?> </div> <div id="sitename"> <p><?php echo $GLOBALS['mosConfig_sitename']?></p> </div> </div> <div id="newsflash"> <?php mosLoadModules('top'); ?> </div> </div> </div> <div> <?php include'menu.php'; ?> </div> <div class="center"> <div id="wrapper"> <div id="content_top"></div> <div id="content"> <div id="leftmenu"> <?php mosLoadModules('left' , '-3'); ?> <? $sg = 'banner'; include "templates.php"; ?> </div> <?php if (mosCountModules('right')){ ?> <div id="main"> <? } else { ?> <div id="main_full"> <? } ?> <?php mosMainBody(); ?> </div> <div id="rightmenu"> <?php mosLoadModules('right' , '-3'); ?> </div> <div class="clr"></div> </div> </div> <div class="clr"></div> </div> <div id="content_bottom"></div> <div id="footer"> <p class="copyright"><? $sg = ''; include "templates.php"; ?></p> </div> </body> </html>
Я делал так: заходишь в /www/htdocs/templates/твой_template/css открываешь template_css.css: Код (CODE): [COLOR="Red"].bg[/COLOR] { background: #ffffff; [COLOR="Red"]width: 850px;[/COLOR] height: 100%; border-left: 1px solid #336699; border-right: 1px solid #336699; } [COLOR="Red"].top[/COLOR] { background: #fff url(../images/top.jpg) no-repeat top center; [COLOR="Red"]width: 850px;[/COLOR] height: 200px; } [COLOR="Red"].footer_bg[/COLOR] { background: #fff; [COLOR="Red"]width: 850px;[/COLOR] height: 30px; border-left: 1px solid #336699; border-right: 1px solid #336699; border-bottom: 1px solid #336699; } Соответственно у трёх выделенных красным параметров меняешь величину. разумеется она должна быть одинаковая у всех.
А подскажите, как сделать текст по ширине страницы? У меня почему то справа белый блок стоит. Вот тут http://teplopol55.ru/7-samoreguliruyushchijsya-kabel.html/