LeauxFi Posted March 9, 2022 Posted March 9, 2022 Site URL: https://www.thetenmg.com/ I didn't even make any changes, but seemingly overnight the menu isn't vertically centered anymore. I don't know what happened or how. I haven't made any coding changes in over a week. Please help! thetenmg.com
LeauxFi Posted March 9, 2022 Author Posted March 9, 2022 I also tried this: .header-title-nav-wrapper { display: flex; justify-content: center; align-items: center; } But it did nothing. I also tried margin-top: -15px; which forced it to center by removing the top portion... however, it only effected the left side and logo, but left the social icons off center. AND it shrunk the overall size of the header which I didn't like. Is there something I missed? How do I force it to center everything in the header? @tuanphan any ideas friend?
Solution tuanphan Posted March 13, 2022 Solution Posted March 13, 2022 On 3/10/2022 at 6:22 AM, LeauxFi said: I also tried this: .header-title-nav-wrapper { display: flex; justify-content: center; align-items: center; } But it did nothing. I also tried margin-top: -15px; which forced it to center by removing the top portion... however, it only effected the left side and logo, but left the social icons off center. AND it shrunk the overall size of the header which I didn't like. Is there something I missed? How do I force it to center everything in the header? @tuanphan any ideas friend? Try adding to Design > Custom CSS a.header-skip-link.sqs-button-element--primary { display: none !important; } LeauxFi 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
LeauxFi Posted March 17, 2022 Author Posted March 17, 2022 (edited) On 3/13/2022 at 7:27 AM, tuanphan said: Try adding to Design > Custom CSS a.header-skip-link.sqs-button-element--primary { display: none !important; } this worked perfectly. thank you! but arghhhh i thought i could figure this out with my novice skills. then you drop code i don't even understand how to read. "a".header? skip-link? what is this code instructing the site to do? is the cause of the problem some invisible button element that threw the alignment out of wack all the sudden? i just want to understand what happened IF possible edit: and now that ive gone back, i see it threw the banners i had on my website off alignment. however, i can tell it UNDID the need for me to have custom css to center them correctly. so your code seems to have fixed my banner alignment issues totally. what happened here? Edited March 17, 2022 by LeauxFi
tuanphan Posted March 19, 2022 Posted March 19, 2022 I think this code is not good...Do you need another code? a.header-skip-link.sqs-button-element--primary { display: none !important; } Quote it appears to be an assistive technology element. When display : none is used it removes it from being analyzed by the assistive device. Looks bad on screen but if we remove it we cut off folks that use assistive devices! Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
LeauxFi Posted March 22, 2022 Author Posted March 22, 2022 On 3/19/2022 at 3:20 AM, tuanphan said: I think this code is not good...Do you need another code? a.header-skip-link.sqs-button-element--primary { display: none !important; } i dont think so, its worked out fine for me. I had to go back and adjust some of the other css i had but it all worked out in the end.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment