fowl Posted February 10, 2012 Report Share Posted February 10, 2012 Почему-то не исчезает квадратный маркер и их получается : и квадрат и ?Почему??.customtype-recent-posts li { list-style-type: none; }.customtype-recent-posts li:before { content: "?"; } Quote Link to comment Share on other sites More sharing options...
0 DStereo Posted February 10, 2012 Report Share Posted February 10, 2012 Почему-то не исчезает квадратный маркер и их получается : и квадрат и ?Почему??.customtype-recent-posts li { list-style-type: none; }.customtype-recent-posts li:before { content: "?"; }Попробуйте так:.customtype-recent-posts li { list-style: none;} Quote Link to comment Share on other sites More sharing options...
0 fowl Posted February 10, 2012 Author Report Share Posted February 10, 2012 не помогло Quote Link to comment Share on other sites More sharing options...
0 DStereo Posted February 10, 2012 Report Share Posted February 10, 2012 Дайте больше кода, возможно у вас где-то стили пересекаются и у вас просто не срабатывает list-style: none из-за специфичности. Quote Link to comment Share on other sites More sharing options...
0 fowl Posted February 10, 2012 Author Report Share Posted February 10, 2012 (edited) Вот вызов<div class="widget cuty_rp" id="enh-rp-2"><h3 class="widget-title">Последние вопросы</h3><ul class="customtype-recent-posts"><li><a href="http://regotvet.ru/question/likvidatsiya-ip-i-vzyiskanie-dolga">Ликвидация ИП и взыскание долга</a></li><li><a href="http://regotvet.ru/question/smena-yur-adresa-ooo-na-adres-propiski-direktora">Смена юр. адреса ООО на адрес прописки директора</a></li></ul></div>а вот ссылки на файлы css (просто не знаю какой конкретно кусок нужен)http://regotvet.ru/wp-content/themes/newspaper_v1.0/style.csshttp://regotvet.ru/wp-content/themes/newspaper_v1.0/styles/default.css http://regotvet.ru/wp-content/themes/newspaper_v1.0/custom.css Edited February 11, 2012 by fowl Quote Link to comment Share on other sites More sharing options...
0 DStereo Posted February 10, 2012 Report Share Posted February 10, 2012 (edited) Вся проблема заключается вот здесь:.widget ul li { background: url(images/dot.png) no-repeat 0 18px; ....}Добавляется картинка в виде квадратика. Так что отмените фон..customtype-recent-posts ul li { background:none;} Edited February 10, 2012 by DStereo Quote Link to comment Share on other sites More sharing options...
0 fowl Posted February 11, 2012 Author Report Share Posted February 11, 2012 Код теперь вот такой - все-равно не помогает!!.customtype-recent-posts{background: #daefd6;}.customtype-recent-posts ul li { background:none;}.customtype-recent-posts li { list-style-type: none; }.customtype-recent-posts li:before { content: "?"; }Выходит вот что Quote Link to comment Share on other sites More sharing options...
0 DStereo Posted February 11, 2012 Report Share Posted February 11, 2012 Странно, потому что то, что я вижу, так это то, что файл custom.css в котором вы определили свои стили подключается позже чем style.css в котором объявлен селектор .widget ul li, соответственно ваше правило должно идти по коду позже, а получается наоборот и из-за этого срабатывает правило специфичности. В общем сделайте так:.customtype-recent-posts ul li{ background:none !important;} Quote Link to comment Share on other sites More sharing options...
0 fowl Posted February 11, 2012 Author Report Share Posted February 11, 2012 Если сделаю так, то точки исчезают, но текст идет с новой строки.customtype-recent-posts{background: #daefd6;}.customtype-recent-posts ul li{ background:none !important;}.customtype-recent-posts li { list-style-type: none; background:none !important; }.customtype-recent-posts li:before { content: "?"; } Quote Link to comment Share on other sites More sharing options...
0 Arinden Posted February 11, 2012 Report Share Posted February 11, 2012 (edited) .customtype-recent-posts li:before { content: "? "; float: left;} Edited February 11, 2012 by Arinden Quote Link to comment Share on other sites More sharing options...
Question
fowl
Почему-то не исчезает квадратный маркер и их получается : и квадрат и ?
Почему??
.customtype-recent-posts li {
list-style-type: none;
}
.customtype-recent-posts li:before {
content: "?";
}
Link to comment
Share on other sites
9 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.