Archived topic
new.darmowaenergia.com.pl - CSS for a extra menu button
6 replies · Started by Robert on August 25, 2020
Hi
how are You?
I addes a yellow button into the menu on:
new.darmowaenergia.com.pl/
How could I change the TXT on it from white to: 181F2A ?
I used this CSS code:
.main-navigation:not(.slideout-navigation) .main-nav li.studio-button a {
background-color: rgba(253,230,38,1.0);
color: #000000;
border: 0;
line-height: 40px;
padding: 0px 20px;
border-radius: 2px;
margin-left: 20px;
margin-top: 32px;
transition: all 0.5s ease 0s;
}
.main-navigation:not(.slideout-navigation) .main-nav li.studio-button a:hover {
background-color: rgba(52,28,8,0.9);
color: #181F2A;
transition: all 0.5s ease 0s;
background-color: rgba(250,250,280,1.0);
}
Thx
Robert
Hi there,
you will need to set you color properties with !important
e.g in your first CSS rule:
color:#000000 !important;
And in your hover CSS rule:
color: #181F2A !important;
Ok - thx!
Robert
stupid thing:
If Im logen in my WP dashbord I see the txt button in the menu "WYSLIJ ZAPYTANIE" dark on the yelow background but if I log auot from WP: the "WYSLIJ ZAPYTANIE" is still white
Do You have any Ideas?
Thx
Robert
Try clearing your browser cache.
sorry - You right!
Thx
Robert
You're welcome