Tagged: x
-
AuthorPosts
-
August 6, 2016 at 9:36 am #1120204
mahmoud237ParticipantI made a logo in the middle using this code you provide in another thread … it’s working perfectly
@media (min-width: 980px) { .x-logobar { display: none !important; visibility: hidden !important; } .x-navbar .desktop .x-nav > li.logo-menu-item > a { text-indent: -99999px; text-align: left; width: 306px; height: 62px; background: url(your-logo) no-repeat center center; background-size: contain; } }1-but now I want to add margins around the logo to make pages near the edges .
For more clarification I want to change it from “1” to “2” see it on attachment.
2- I want to remove the line effect that appears while hovering on navbar pages and replace it with bold effect only.
Thanks
August 6, 2016 at 9:37 am #1120207
mahmoud237ParticipantThis reply has been marked as private.August 6, 2016 at 12:36 pm #1120311
ThaiModeratorHi There,
Please add the following CSS under Customizer > Custom > Global CSS:
.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; } li#menu-item-6686 { margin: 0 200px; }Hope it helps 🙂
August 6, 2016 at 12:43 pm #1120317
mahmoud237ParticipantThanks so much that worked … But I need also to add a bold effect while hover on navbar pages … How can I do that ?
August 6, 2016 at 1:19 pm #1120339
mahmoud237ParticipantWell I mange to do it by adding this code
.x-navbar a:hover { font-weight: bold !important; font-size: 18px !important; }but I want it to still have this bold and font-size effect while I am still on this page not only on hover
Thanks
August 7, 2016 at 2:56 am #1120701
RadModeratorHi there,
You can change it into this,
.x-navbar a, .x-navbar a:hover { font-weight: bold !important; font-size: 18px !important; }Or if you wish to apply it when it’s active.
.x-navbar a:hover, .x-navbar .current-menu-item > a{ font-weight: bold !important; font-size: 18px !important; }Hope this helps.
August 7, 2016 at 7:16 am #1120841
mahmoud237ParticipantThanks a lot … That’s works
August 7, 2016 at 9:41 am #1120931
ThaiModeratorYou’re most welcome 🙂
If you need anything else please let us know.
August 8, 2016 at 9:43 pm #1123134
mahmoud237ParticipantHi I foind some bugs … I hope you can help me on it.
1- found a bug on this codeli#menu-item-6686 { margin: 0 200px; }it worked perfectly on a large screen but while shrinkage the width of the screen .. the navbar drops in a second line like the attached photo (1) … I want it to still in one line and be responsive to the screen width.
2- I want to make a blue line beneath the navbar .. just like the attached photo (2).
3- How can I add a top margin for this centered logo … see the attached photo (3) ?
August 9, 2016 at 2:06 am #1123307
LelyModeratorHello There,
1.) I can see that you have fixed this already by adjusting the value per screen size using media query. Please confirm.
2.) Option 1
.x-navbar { border-bottom: 1px solid rgb(2,173,213); }Option 2
.x-navbar { box-shadow: 0px 2px 1px rgb(2,173,213); }3.)
li#menu-item-6686 a { margin-top: 10px; /*Adjust this accordingly*/ }Hope this helps.
August 9, 2016 at 8:12 am #1123637
mahmoud237Participant1- Yes I managed to solve issue (1)
2- it worked but if there is a way to make the line to be bolder in the centre and gradually become thinner on his way to edges that will be better.
3- Worked Perfectly,
Thank You for your help
August 9, 2016 at 10:08 am #1123823
RupokMemberHi there,
Thanks for updating. #2 would need some complex coding but that will be outside of our support scope.
Cheers!
August 9, 2016 at 10:21 am #1123838
mahmoud237ParticipantThanks for your help anyway … You guys are amazing 🙂
August 9, 2016 at 10:52 am #1123908
Prasant RaiModeratorYou are most welcome. Feel free to ask us again. Have a great day! 🙂
August 9, 2016 at 11:40 am #1124003
mahmoud237ParticipantHey, I got the line with the effect I want … How can I insert it just below the navbar …
See the line on attachment.Thanks
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1120204 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
