Border on top and bottom but not on side of text - HTML
SOLVE
Hello,
I am attempting to HTML a way to get a border to appear over a narrow section of text, a date to be precise, but not stretch across the length of the email. From looking at the editor, it would appear that I've achieved this:
However, when sending myself a preview, it appears thus:
Note the additional, undesired borders on either side.
The HTML looks like this (i added padding to the text module so that the border doesn't run into the blue image above):
Here to learn more about HubSpot and share my HubSpot Knowledge. I'm the founder of Webalite a Gold HubSpot Partner Agency based in Wellington, New Zealand and the founder of Portal-iQ the world's first automated HubSpot Portal Audit that helps you work smarter with HubSpot.
Border on top and bottom but not on side of text - HTML
SOLVE
Another clever idea, thank you! I did try this - seemed like the Outlook 2016 desktop wanted to make it a 1px black border the whole way around no matter what.
What ultimately solved the problem: -Combining most of the the p and span HTML into just the P part -Using margin HTML in the DIV and sort of squeezing from either side.
Border on top and bottom but not on side of text - HTML
SOLVE
Another clever idea, thank you! I did try this - seemed like the Outlook 2016 desktop wanted to make it a 1px black border the whole way around no matter what.
What ultimately solved the problem: -Combining most of the the p and span HTML into just the P part -Using margin HTML in the DIV and sort of squeezing from either side.
Here to learn more about HubSpot and share my HubSpot Knowledge. I'm the founder of Webalite a Gold HubSpot Partner Agency based in Wellington, New Zealand and the founder of Portal-iQ the world's first automated HubSpot Portal Audit that helps you work smarter with HubSpot.
Border on top and bottom but not on side of text - HTML
SOLVE
Thank you for your response. To add some color to this, the side borders seem to only apply in the Outlook desktop app. The original code seems to be working in Gmail, Ios (per the Inbox Preview), and others, but not in the Outlook desktop app. Works on the Outlook website, desktop and mobile, and the mobile app, but not the desktiop app.
Appreciate your additional code. Tried it, but it didn't fix the issue, neither did adding "border collapse" as recommended by a search.
A minority of our subscribers seem to use this format, but alas our work accounts are set to it.