SeanCrafted Posted May 23 Share Posted May 23 (edited) Hi, I have added custom CSS to my website for the hamburger and as you can see for desktop I have the width at 50% which is fine but for mobile it is also 50% which I don't want- can someone give a custom code so that on mobile the hamburger display on the whole screen (100%). Also please can you give me a code to reduce the size of the text in both the desktop and mobile hamburger? Thanks https://www.wildingsnorthumberland.co.uk/ CODE BELOW: .header .header-burger{display:flex} .header-nav, .header-actions {display:none} .header--menu-open .header-menu { opacity: 1; visibility: visible; width: 60%; margin-left: 50%; box-shadow: -5px 5px 15px #000} Edited May 23 by SeanCrafted Link to comment
SeanCrafted Posted May 23 Author Share Posted May 23 https://www.wildingsnorthumberland.co.uk/ Link to comment
SeanCrafted Posted May 24 Author Share Posted May 24 @tuanphan are you able to help please? Link to comment
SeanCrafted Posted May 24 Author Share Posted May 24 Want it to cover 100% or 75% of the screen on mobile and the text to be smaller Link to comment
Solution tuanphan Posted May 26 Solution Share Posted May 26 Don't remove any code in your current code. Add this to Design > Custom CSS @media screen and (max-width:767px) { .header--menu-open .header-menu { width: 100% !important; margin: 0 !important; } } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
SeanCrafted Posted May 26 Author Share Posted May 26 perfect that's worked thank you Do you have code to reduce text size in hamburger please for both desktop & moible? Link to comment
tuanphan Posted May 28 Share Posted May 28 On 5/26/2023 at 9:46 PM, SeanCrafted said: perfect that's worked thank you Do you have code to reduce text size in hamburger please for both desktop & moible? Add this under .header-menu * { font-size: 12px !important; } SeanCrafted 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment