Всем добрый вечер! Срочно нужна ваша помощь! Никак не получается отобразить картинку на главной странице по ЦЕНТРУ. Шаблон Sunshine. Пробовал <center>, таблицы, <div> - ничего не выходит - картинка прижата к левому краю. Однако, если написать длинный текст в материале - то картинка встает по центру.. Прошу помощи срочно! Спасибо! Вот сайт: www.monavie5.ru
У меня аналогичная проблема. Шаблон feel_free версия джумлы! 1.5.26 Вы уж извините чайник чайником Подскажите в каком файле находится эта строчка а то я уже весь локалхост перелопатил а найти ну никак. Буду ну при много благодарен.
Хм... для изображений задавайте в редакторе: Код (CODE): <img align="middle" src="путь"> Или например можете так: Код (CODE): <p align="center">IMG</p>
В index.php шаблона такого не наблюдается. Я конечно извиняюсь но очень надо, я знаю что вы можете помочь но для этого мало информации. Я чайник и не знаю как все правильно сформулировать, но попробую впихнуть весь index.php шаблона возможно кто подскажет: Код (CODE): <?php defined( '_JEXEC' ) or die( 'Restricted access' ); ?> <!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> <jdoc:include type="head" /> <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" /> <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" /> <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/feel_free/css/template.css" type="text/css" /> <?php $text = JRequest::getString('text', JText::_('search...'), 'post'); ?> </head> <body> <div align="center" id="main" class="width_<?php echo $this->params->get('widthStyle'); ?>"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr valign="top"> <td width="170"> <div id="orange"><img src="<?php echo $this->baseurl ?>/templates/feel_free/images/orange.gif" width="170" height="5" alt="" /></div> <div id="logo"><a href="<?php echo $this->baseurl ?>/"><img src="<?php echo $mosConfig_live_site; ?>/templates/feel_free/images/logo.jpg" width="170" height="120" alt="<?php echo $mosConfig_sitename; ?>" title="<?php echo $mainframe->getCfg('sitename') ;?>" /></a></div> <div id="search"> <form action="index.php" method="post"> <input name="searchword" id="searchbox" maxlength="20" alt="<?php echo $button_text; ?>" type="text" value="<?php echo $text; ?>" onblur="if(this.value=='') this.value='<?php echo $text; ?>';" onfocus="if(this.value=='<?php echo $text; ?>') this.value='';" /> <input type="submit" name="GO" id="searchbutton" value="OK" src="<?php echo $this->baseurl ?>/templates/i_gobot/images/enter.gif" alt="<?php echo JText::_('search...'); ?>" /> <input type="hidden" name="task" value="search" /> <input type="hidden" name="option" value="com_search" /> </form> </div> <div class="clear"></div> <div id="modules_l"><jdoc:include type="modules" name="left" style="xhtml" /></div> <div class="clear"></div> </td> <td> <div id="header"> <div id="rss_feed"> <jdoc:include type="modules" name="syndicate" /> </div> <div class="clear"></div> <div id="topmenu"><jdoc:include type="modules" name="user3" /></div> <div id="flashnews"> <div id="scater"><img src="<?php echo $this->baseurl ?>/templates/feel_free/images/scater.gif" width="190" height="146" alt="" /></div> <div id="news"><jdoc:include type="modules" name="top" /></div> </div> </div> <div id="green"><img src="<?php echo $this->baseurl ?>/templates/feel_free/images/green.gif" width="100%" height="5" alt="" /></div> <?php if($this->countModules('user1 and user2')) : ?> <div id="usermods"> <div id="user1"><jdoc:include type="modules" name="user1" style="xhtml" /></div> <div id="user2"><jdoc:include type="modules" name="user2" style="xhtml" /></div> </div> <div class="clear"></div> <?php endif; ?> <div id="mainbody"> <?php if ($this->getBuffer('message')) : ?> <div class="message"><jdoc:include type="message" /></div> <?php endif; ?> <jdoc:include type="component" /> </div> <div id="bottom"><jdoc:include type="modules" name="bottom" /></div> </td> <?php if($this->countModules('right')) : ?> <td width="195"> <div id="modules_r"><jdoc:include type="modules" name="right" style="xhtml" /></div> </td> <?php endif; ?> </tr> </table> </div> <div id="blue" class="width_<?php echo $this->params->get('widthStyle'); ?>"><img src="<?php echo $this->baseurl ?>/templates/feel_free/images/blue.gif" width="100%" height="5" alt="" /></div> <div id="copyright" class="width_<?php echo $this->params->get('widthStyle'); ?>">© <?php echo $mainframe->getCfg('sitename') ;?>. <?php echo JText::_('Powered by');?> <a href="http://www.joomla.org/">Joomla!</a><br /><?php echo JText::_('Valid') ?> <a href="http://validator.w3.org/check/referer">XHTML</a> <?php echo JText::_('and') ?> <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a></div> <div id="copyleft">Free template 'Feel Free' by [ Anch ] <a href="http://support.gorsk.net">Gorsk.net Studio</a>. Please, don't remove this hidden copyleft!</div> </body> </html>