Почему `cursor: pointer` и`: Hover` свойство не применяется?CSS

Разбираемся в CSS
Ответить
Anonymous
 Почему `cursor: pointer` и`: Hover` свойство не применяется?

Сообщение Anonymous »

html и css code: < /p>

Код: Выделить всё

*{
margin: 0;
padding: 0;
font-family: "Spectral", "serif";
}

.main_box{
/* width: 100vh; */
background-image: url(photo.jpg);
background-size: cover;
height: 100vh;
}

.btn_one i{
position: absolute;
color: white;
font-size: 25px;
font-weight: 900;
left: 16px;
line-height: 60px;
cursor: pointer;
}

.btn_one i:hover {
font-size: 30px;
}

.sidebar_menu{
position: fixed;
/* left: -300px; */
height: 100vh;
width: 300px;
background-color: rgba(255, 255, 255, 0.1);
box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

.sidebar_menu .logo{
position: absolute;
line-height: 60px;
width: 100%;
box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);

a{
position: absolute;
color: white;
left: 50px;
text-decoration: none;
font-size: 20px;
font-weight: 500;
}
}

.sidebar_menu .btn_two i{
position: absolute;
color: grey;
font-size: 20px;
font-weight: 900;
line-height: 60px;
right: 20px;
/* opacity: 0;  */
cursor: pointer;
}

.sidebar_menu .btn_two i:hover{
font-size: 30px;
}

.sidebar_menu .menu{
position: absolute;
width: 100%;
top: 80px;

li{
margin-top: 6px;
padding: 10px 20px;

i, a{
color: white;
text-decoration: none;
font-size: 20px;
}

i{
padding-right: 8px;
}
}

li:hover{
box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

/* li a span::first_letter{
color: red;
} */
}

.sidebar_menu .social_media{
position: absolute;
left: 4em;
bottom: 50px;
font-size: 20px;
i{
opacity: 0.5;
color: white;
padding: 0 5px;
}
}

#check{
display:  none;
}< /code>






CSS Project
[*]










[i]


[/i]



[url=#]Apna College[/url]


[i][/i]


[list]

[i][/i]
[url=#]Gallery[/url]

[*]
[i][/i]
[url=#]Shortcuts[/url]

[*]
[i][/i]
[url=#]Exhibits[/url]

[*]
[i][/i]
[url=#]Events[/url]

[*]
[i][/i]
[url=#]Store[/url]

[*]
[i][/i]
[url=#]Contact[/url]

[*]
[i][/i]
[url=#]Feedback[/url]

[/list]

[list]
[url=#][i][/i][/url]
[url=#][i][/i][/url]
[url=#][i][/i][/url]
[url=#][i][/i][/url]
[/list]






Я пытаюсь установить свойство курсора на курсор: pointer и увеличить размер font с помощью: Hover на .btn_one и .btn_two . Свойства применяются на .BTN_TWO , но не на. Найдите соответствующее решение.
Может ли кто -нибудь объяснить причину этого?

Подробнее здесь: https://stackoverflow.com/questions/793 ... ng-applied
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «CSS»