moonlitdesign Posted March 25 Share Posted March 25 (edited) Hi there, im looking to add a circle border around the burger menu icon but having difficulty. the code im trying is: /* burger */ .burger-inner>div { width: 50% !important; } .burger-inner>div { left: unset !important; right: 0 !important; } .burger {border:1px solid #1d1d1d; border-radius:50%; } www.moonlitdesign.uk/home-old Edited March 25 by moonlitdesign Link to comment
moonlitdesign Posted March 26 Author Share Posted March 26 i've managed to get a circle border, but the close icon is in the wrong place. it needs nudging into the center of the circle / left. updated code: /* burger */ .burger-inner>div { width: 50% !important; } .burger-inner>div { left: 0 !important; right: 0 !important; } .burger-box {border:1px solid #1d1d1d; border-radius:50%; } Link to comment
tuanphan Posted March 29 Share Posted March 29 Use this CSS code to move X to center body.header--menu-open div.burger-inner>div { position: relative; left: -5px !important; } 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!) Link to comment
moonlitdesign Posted March 29 Author Share Posted March 29 9 hours ago, tuanphan said: Use this CSS code to move X to center body.header--menu-open div.burger-inner>div { position: relative; left: -5px !important; } Hey @tuanphan , thank you so much!!!! i just had to edit the code slightly to this instead: //close icon// body.header--menu-open div.burger-inner>div { left: -6px !important; } ////// the position relative was making the icon not look like a cross for some weird reason haha so i just took it out. all the best 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