cjgetty Posted November 25, 2020 Share Posted November 25, 2020 Site URL: https://camerongetty.com Hi, I just changed the MENU text on the Wells template's mobile view to a hamburger icon, but for some reason, the icon doesn't line up nicely on the right side of the viewport like the MENU text does. Any fixes? Here's the added custom CSS: #mobileMenuLink a:before { content: ""; background-image: url(https://static1.squarespace.com/static/5faf83293c1c873f9e16be1a/t/5fbda7bf2dd96f5918a94f27/1606264767069/icons8-menu-48.png); background-repeat: no-repeat; background-size: contain; background-position: center center; width: 18px; height: 18px; display: inline-block; visibility: visible; } #mobileMenuLink a { visibility: hidden; } Paging @tuanphan Thanks! Link to comment
Beyondspace Posted November 25, 2020 Share Posted November 25, 2020 3 hours ago, cjgetty said: Site URL: https://camerongetty.com Hi, I just changed the MENU text on the Wells template's mobile view to a hamburger icon, but for some reason, the icon doesn't line up nicely on the right side of the viewport like the MENU text does. Any fixes? Here's the added custom CSS: #mobileMenuLink a:before { content: ""; background-image: url(https://static1.squarespace.com/static/5faf83293c1c873f9e16be1a/t/5fbda7bf2dd96f5918a94f27/1606264767069/icons8-menu-48.png); background-repeat: no-repeat; background-size: contain; background-position: center center; width: 18px; height: 18px; display: inline-block; visibility: visible; } #mobileMenuLink a { visibility: hidden; } Paging @tuanphan Thanks! You can move the icon down a bit #mobileMenuLink a:before { content: ""; background-image: url(https://static1.squarespace.com/static/5faf832…/t/5fbda7b…/1606264767069/icons8-menu-48.png); background-repeat: no-repeat; background-size: contain; background-position: center center; width: auto; height: 18px; display: block; visibility: visible; top: 5px; position: relative; } BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
cjgetty Posted November 25, 2020 Author Share Posted November 25, 2020 16 hours ago, bangank36 said: You can move the icon down a bit #mobileMenuLink a:before { content: ""; background-image: url(https://static1.squarespace.com/static/5faf832…/t/5fbda7b…/1606264767069/icons8-menu-48.png); background-repeat: no-repeat; background-size: contain; background-position: center center; width: auto; height: 18px; display: block; visibility: visible; top: 5px; position: relative; } That fixed the top padding issue but it’s still not fully justified to the right. Any solution? If not, do you know how to change the MENU text? I could use a hamburger menu Unicode icon... Link to comment
tuanphan Posted December 3, 2020 Share Posted December 3, 2020 change :before to :after 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.