Nathan_G Posted March 11, 2021 Share Posted March 11, 2021 Site URL: https://www.on2design.co.uk Hello all, Im in desparate need of help, as this is driving me mad!! :( I am using the Avenue template and ! am trying to integrate a hamburger icon into my site to show on mobile and tablet (portrait and landscape view) as my navigation layout breaks in these views. I have am able to get a hamburger to work on mobile using this code: // create hamburger icon // #mobileMenuLink { position: relative; margin-bottom:0px; } #mobileMenuLink a { color: transparent; } #mobileNavWrapper.wrapper { margin-bottom:-50px; } #mobileMenuLink a:after { content: '☰'; color: black; width: 100%; text-align: center; text-size: 25px; position: absolute; top: 0; left: 0; } I have tried solutions on similar posts—but whatever i try, i cant get it to work for tablet views. I have tried placing the code within breakpoints (im not great at coding so, im just stabbing in the dark), the code below has the variable set near the top of the css file (variable: @tablet: ~"only screen and (min-width: 751px)";): css code@media @tablet { // Code here } Should this work, or Im i approaching the problem incorrectly? I have attached screenshots from my mobile that i want to mirror for the tablet. I appreciate any help given.https://www.on2design.co.uk Link to comment
tuanphan Posted March 21, 2021 Share Posted March 21, 2021 Hi. Have you solved this? Can you share the code for other members? 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.