Tagged: x
-
AuthorPosts
-
November 10, 2016 at 10:44 am #1251921
dladvocatParticipantHi!
I need to change style from only one navbar button. I was search the button id and is menu-item-53
Later, I put in the CSS:li#menu-item-53 {
color: red;
}for example to try and view the changes but not work…
I need to modify width (to 14em) and align to right (the other are aligns at right).How can I do this?
Thanks!
November 10, 2016 at 12:10 pm #1252051
JoaoModeratorHi There.
Please try:
.x-navbar .desktop .x-nav > li.menu-item-53 > a { color: red; }Hope it helps
Joao
November 10, 2016 at 1:28 pm #1252154
dladvocatParticipantNo. Not run…
I have all this code on the CSS Customizer:
#menu2header{
width: !00%;
text-align:right;
background-color: #2f6396;
font-size: 12px;
margin-bottom: -1.5em;
color:#fff;
text-shadow: 1px 1px #393939;
}#campFormulari{
height: 2em;
margin-top: 0.7em;
font-size:10px;
}.accesmoodle {
font-size:12px;
}.x-navbar {
background-color: #393939;
border: 0px;
}.x-navbar .desktop .x-nav {
float:left;
}.x-navbar .desktop .x-nav > li > a:hover, .x-navbar .desktop .x-nav > .x-active > a, .x-navbar .desktop .x-nav > .current-menu-item > a{
box-shadow: none;
}.x-navbar .desktop .x-nav>li>a {
border-right: 1px solid #595959;
}.desktop .menu-item, .desktop .menu-item > a {
width:10em;
text-align:center;
}//** Menu Item 53 **//
/* Move last menu item to the right and change color */
.x-navbar .desktop .x-nav > li.menu-item-53 > a {color: red;
}
November 10, 2016 at 1:57 pm #1252211
JoaoModeratorThanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
November 10, 2016 at 2:31 pm #1252243
dladvocatParticipantThis reply has been marked as private.November 10, 2016 at 3:57 pm #1252343
JoaoModeratorHi There,
Please use the following code:
.x-navbar .desktop .x-nav > li.menu-item-53 > a > span { color: red; }Hope it helps
Joao
November 10, 2016 at 5:24 pm #1252405
dladvocatParticipantThis reply has been marked as private.November 11, 2016 at 12:02 am #1252850
LelyModeratorHi There,
Thank you for the credentials.
Please update this part://** OBTENIR MÉS INFORMACIÓ **// /* Move last menu item to the right and change background-color */ .x-navbar .desktop .x-nav > li.menu-item-53 > a > span { color: red; }To this:
/** OBTENIR MÉS INFORMACIÓ **/ /* Move last menu item to the right and change background-color */ .x-navbar .desktop .x-nav > li.menu-item-53 > a > span { color: red; }The double slash on the first line of comment is a syntax error in CSS. That’s why it is not working.
Hope this helps.
November 14, 2016 at 5:02 am #1256199
dladvocatParticipantYes… Double slash was the problem.
Thanks!
November 14, 2016 at 5:20 am #1256211
ThaiModeratorIf you need anything else please let us know.
November 15, 2016 at 10:30 am #1258132
dladvocatParticipantNow works, but how can I do to align only one button from my Navbar to left?
November 15, 2016 at 11:39 am #1258236
JadeModeratorHI there,
Please use this code:
.x-navbar .desktop .x-nav> li#menu-item-53 { position: absolute; right: 0; } .x-navbar .desktop .x-nav { position: relative; width: 100%; } .x-navbar .desktop .x-nav> li#menu-item-53 a { border-right: 0; }Hope this helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1251921 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
