форум общения русскоязычных пользователей CMS Текстпаттерн
Вы не зашли.
Немогу понять в чем дело. Пропал цвет фона в ногах сайта и только в одном разделе .
Стиль:
body,h1,h2,h3,h4,h5,h6,p,form,fieldset { margin: 0; padding: 0; } body { margin: 0; padding: 15px 0; font-family: Arial, Helvetica, sans-serif; font-size: 75%; line-height: 1.6em; text-align: center; color: #414141; background: #EDE8E2; } a { color: #6C8C37; text-decoration: none; } a:hover { color: #009193; } h1, h1 a, h2, h2 a, h3 a, h4 a { color: #009193; } h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover { color: #1BA6B2; } h1 { font-size: 30px; } h2 { margin: 0 0 18px 0; font-family: Georgia, serif; font-size: 2.0em; font-weight: normal; } h3 { margin: 0 0 18px 0; font-family: Georgia, serif; font-size: 1.6em; font-weight: normal; } h4 { margin: 0; font-size: 1em; } a img { border: none; } p { margin: 0; padding: 0 0 18px 0; } ul { margin: 0 0 0 1.4em; padding: 0 0 18px 0; } ul ul { padding: 0; } blockquote { margin: 0; padding: 0 18px; font-style: italic; } pre, code { font-family: Courier, Monaco, monospace; background-color: #F8FAF2; } #container { width: 940px; margin: 0 auto 5px; padding: 30px 30px 0 30px; text-align: left; padding-top: 0; border-top: 30px solid white; background: #CCFF99 } #head { height: 115px; padding: 0 0 0 18px; background-color: #F0F9F9; background-image: url(images/blix_header_bg.jpg); } #head h1 { padding-top: 50px; } #navigation { background-color: #A3C159; height: 2.7em; line-height: 2.7em; } #navigation a { color: white; } #navigation .selected, #navigation a:hover { background-color: #1BA6B2; } #navigation ul { margin: 0; padding: 0; } #navigation li { float: left; margin: 0; padding: 0; list-style-type: none; border-right: 1px solid; white-space: nowrap; border-color: white; } #navigation li a { display: block; padding: 0 18px; font-size: 0.8em; text-transform: uppercase; letter-spacing: 1px; } * html #navigation a { width: 1%; } #navigation form { float: right; height: 100%; width: 209px; padding: 0 15px; border-left: 1px solid; line-height: 0; border-color: white; background: #FEC42D url(images/blix_corner_bottom_right.gif) bottom right no-repeat; } #navigation form fieldset { margin-top: 7px; border: 0 solid; } * html #navigation form fieldset { margin-top: 7px; } #navigation #s { height: 1.5em; width: 140px; margin: 0 5px 0 0; padding: 0; border: 1px solid; font-size: 0.8em; vertical-align: middle; border-color: #FFF9EA; } #navigation #searchbutton { height: 2em; width: auto; padding: 0 1px; border: 1px solid; font-size: 9px; letter-spacing: 1px; text-align: center; vertical-align: middle; color: white; background-color: #A3C159; } #center { float: left; width: 713px; padding-top: 32px; padding-right: 20px; } .entry { margin: 0 0 40px 0; } .entry .info { position: relative; margin-top: -3px; padding: 3px; border-top: 1px solid; border-bottom: 1px solid; font-size: 0.9em; border-color: #F3F4F4; background-color: #FAFAFA; } .entry .info a { border-color: #949494; } #right { float: right; clear: right; width: 205px; padding: 15px 0 0 0px; font-size: 0.9em; line-height: 1.5em; } #right h3 { margin: 18px 0 10px 0; font-family: Georgia,serif; font-size: 1em; font-weight: bold; line-height: 1em; color: white; background: #A3C159 url(images/blix_corner_top_left.gif) top left no-repeat; } #right h3 em { display: block; padding: 5px 10px; font-style: normal; background: url(images/blix_corner_bottom_right.gif) bottom right no-repeat; } #right p { padding: 0 10px 0 10px; } #right ul.categories li { list-style-image: url(images/blix_categories_yellow.gif); } #right ul.links li { list-style-image: url(images/blix_links_yellow.gif); } #right ul.feeds li { list-style-image: url(images/blix_feeds_yellow.gif); } #right ul.posts li { list-style-image: url(images/blix_post_yellow.gif); } #right ul.categories li li { list-style-image: url(images/spring_flavour/sub_categories_yellow.gif); } #right ul li { margin: 2px 0 2px 12px; padding-bottom: 2px; border-bottom: 1px solid; border-bottom-color: #F0F0F0; } #right li a { display: block; padding: 1px 0; height: 1%; } #right li a:hover { background-color: #FFFBF0; } #foot { clear: both; padding: 40px 0 15px 0; font-size: 0.9em; background: #CCFF99 text-align: center; }
Покажите в чем проблема?
Страница:
<!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="ru" lang="ru"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <link rel="stylesheet" href="<txp:css />" type="text/css" /> <title><txp:page_title /></title> <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" /> <bgsound src="http://topers.org.ru/fon.mp3" loop="infinite"></bgsound> </head> <body> <div id="container"> <div align="center"> <txp:image id="8" /> </div> <!-- head --> <div id="head"> <h1><txp:link_to_home><txp:site_name /></txp:link_to_home></h1> <h4><txp:site_slogan /></h4> </div> <div id="navigation"> <ul> <txp:section link="1" title="1" name="article" wraptag="li" /> <txp:section link="1" title="1" name="bomber" wraptag="li" /> <txp:section link="1" title="1" name="contact" wraptag="li" /> <txp:section link="1" title="1" name="mail" wraptag="li" /> <txp:section link="1" title="1" name="sendme" wraptag="li" /> <txp:section link="1" title="1" name="nomer6" wraptag="li" /> <txp:section link="1" title="1" name="gooo" wraptag="li" /> </ul> <txp:search_input wraptag="p" form="search_input" /> </div> <!-- right --> <div id="right"> <h3><em>Категории</em></h3> <ul class="categories"> <txp:category_list break="li" /> </ul> <h3><em>О блоге</em></h3> <p>Приветствую на своем личном персональном блоге. Я BOMBER. Здесь я излагаю свои мысли, замечания, задумки, а вы их комментируете. Прошу в комментариях не использовать не нормативную лексику (ее использует только Администратор), никого не оскорблять, не провоцировать между рассовую и межнациональную рознь, не затрагивать религиозные взгляды других пользователей. Публиковать тексты противоречащие УК и Конституции РФ, а так же других стран. Спасибо что уделили внимание моему проекту. </p> <h3><em>Новое в блоге</em></h3> <ul class="posts"> <txp:recent_articles limit="10" break="li" /> </ul> <h3><em>Наши ссылки</em></h3> <ul class="posts"> <txp:linklist limit="5" form="plainlinks" sort="rand()" break="li" /> </ul> <txp:if_individual_article> <h3><em>Еще</em></h3> <ul class="posts"> <txp:related_articles limit="5" break="li" /> </ul> </txp:if_individual_article> <txp:if_section name=""> <h3><em>Rss -каналы</em></h3> <ul class="feeds"> <li><a href="/?rss=1" title="XML feed">RSS</a></li> <li><a href="/?atom=1" title="XML feed">Atom</a></li> </ul> </txp:if_section> </div> <!-- center --> <div id="center"> <txp:if_search> <txp:article limit="10" /> По Вашему запросу <b><txp:page_url type="q" /></b><br /> найдено статей: <b><txp:search_result_count text="" /></b><br />. <txp:else /> <script language="JavaScript"> <!-- function fulltime () { var time=new Date(); document.clock.full.value=time.toLocaleString(); setTimeout('fulltime()',500) } --> </script> <div align="center"> <form name="clock"><input size="28" name="full"></form> </div> <script language="JavaScript"> fulltime (); </script> <txp:article limit=1 form="static_article" /> </txp:if_search> <txp:if_individual_article> <p> <txp:link_to_prev><--- Предыдущая статья<br><txp:prev_title /> <br></txp:link_to_prev> <txp:link_to_next>Следующая статья ---><br> <txp:next_title /></txp:link_to_next> </p> </txp:if_individual_article> <txp:if_article_list> <p> <txp:older><--- Предыдущая страница</txp:older> <txp:newer>Следующая страница ---></txp:newer> </p> </txp:if_article_list> </div> <!-- footer --> <div id="foot"> <hr color="red"> <txp:link_to_home><txp:site_name /></txp:link_to_home> (c) 2007<br> <hr color="red"> <div align="center"> <noindex> <script id="top100Counter" type="text/javascript" src="http://counter.rambler.ru/top100.jcn?2375979"></script> <noscript> <a href="http://top100.rambler.ru/navi/2375979/"> <img src="http://counter.rambler.ru/top100.cnt?2375979" alt="Rambler's Top100" border="0" /> </a> </noscript> <script type="text/javascript"><!-- document.write("<a href='http://www.liveinternet.ru/click' "+ "target=_blank><img src='//counter.yadro.ru/hit?t22.6;r"+ escape(document.referrer)+((typeof(screen)=="undefined")?"": ";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth? screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+ ";h"+escape(document.title.substring(0,80))+";"+Math.random()+ "' alt='' title='LiveInternet: показано число просмотров за 24"+ " часа, посетителей за 24 часа и за сегодня' "+ "border='0' width='88' height='31'><\/a>") //--></script> </noindex> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-20919484-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> </div> </div> </div> </body> </html>
Форма:
<h3><txp:title /></h3> <p><i><txp:excerpt /></i></p> <txp:body />
Покажите где ошибка.
Неактивен
#foot { clear: both; padding: 40px 0 15px 0; font-size: 0.9em; background: #CCFF99 text-align: center; }
background: #CCFF99 — точку с запятой в конце забыли
Неактивен
advan, спасибо большущее. Просто как всегда, накосячишь какую-нибудь мелочь и сидишь двое суток копаешь, так скоро от монитора ослепнуть можно. Пойду нажму пару клавиш.
Неактивен
froZZen написал:
Хорошо, если помогло.
Но, по-моему, Вам надо статью проверить.
Структуры страниц отличаются.
Не очень понял Вас. Уточните пожалуйста. И, если можно, укажите.
Отредактированно BOMBER (17-02-2011 06:40:17)
Неактивен
BOMBER написал:
froZZen написал:
Хорошо, если помогло.
Но, по-моему, Вам надо статью проверить.
Структуры страниц отличаются.Не очень понял Вас. Уточните пожалуйста. И, если можно, укажите.
Если сравнить эту страницу с другими, то заметна лишняя полоса над "ногами".
Самое поверхностное изучение структуры дает:
- для всех
<body> <p align="center"> <div id="container"> .... <div id="footer"></div> </div> </body>
- у Вашей "проблемной страницы":
<body> <p align="center"> <div id="container"></div> <div id="footer"></div> </body>
т.е. "footer" выскочил из "container". А так как страница используется одна и та же, значит в Вашей "проблемной" статье где-то есть лишний закрывающий </div>, который и сломал Вашу структуру.
Только в этом и была вся Ваша проблема.
Неактивен
Спасибо, сейчас найдем и поправим. Я эту белую полосу видел, но думал что потом разберусь.
Неактивен