@Dryzhkov

Как отменить свойство text-decoration, у элемента before, если оно применяется только к li?

<ul class="listone">
		<li>Put on this page information about your product</li>
		<li>A detailed description of your product</li>
		<li>Tell us about the advantages and merits</li>
		<li>Associate the page with the payment system</li>
	</ul>
HTML

CSS
.listone{
	font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
	color: #273d46;
	line-height: 36px;
	font-size: 20px;
	line-height: 36px;
}

.listone li:nth-child(1){text-decoration: line-through;}
.listone li:nth-child(2){font-weight: bold;}
.listone li:nth-child(3){font-style: italic;}
.listone li:nth-child(4){text-transform: uppercase;}

.listone li:before{
	display: inline-block;
	content: "✔";
	width: 25px;
	height: 19px;
	color:#80b7b3;
	padding: 0 10px 0 0;
}


Первый li убрать получилось свойством display, но с остальными не работает
  • Вопрос задан
  • 147 просмотров
Решения вопроса 1
@Lord_Dantes
Протестил ваш код в кодпене, у ::before нету text-decoration
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы