How Do You Wrap Text Around A Table? - Litmus

  • Litmus
  • Features
  • Solutions
  • Pricing
  • Enterprise
  • Tools
  • Resources
  • Discussions
  • Snippets
  • Templates
  • Jobs
  • My Account
  • Sign In
  • Community Home
  • Discussions
  • Learning
  • Snippets
  • Templates
  • Jobs
  • Create a Discussion
Avatar of Veronica WilliamsVW 2 How do you wrap text around a table? Veronica Williams posted 2017-07-20 19:13:20

Hey Everyone!

When working with text wrapping, I can wrap text around an image with the best of them! However, I need to wrap text around an image with a caption below it and I feel like the only way to do this is to put the image and caption into a table. But, I don't know how to wrap text around a table.

Do you?

Thanks! VW

Highest Voted Oldest First Most Recent Avatar of Rémi ParmentierRP 3
  • Edit
  • Delete
  • Rémi Parmentier replied 2017-07-21 06:55:08

    Hi Veronica. This should be pretty similar using float positioning in CSS. This can be achieved in emails by using the align attribute with a value of left or right on a <table>. For example :

    <table border="0" cellpadding="0" cellspacing="0" role="presentation" align="left"> <tr> <td><img src="foo.jpg" alt="" width="200" height="100" /></td> </tr> <tr> <td>Description</td> </tr> </table> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nesciunt blanditiis consequuntur, quo totam, placeat id quibusdam assumenda vero deserunt aperiam voluptatibus fuga voluptatem, libero dignissimos esse, itaque reiciendis mollitia similique.</p> Reply to Rémi Parmentier Avatar of Veronica WilliamsVW 0
  • Edit
  • Delete
  • Veronica Williams replied 2017-07-21 11:41:11

    Hey Remi - Thanks so much!

    Avatar of daniel kipDK 0
  • Edit
  • Delete
  • daniel kip replied 2017-09-14 01:21:51

    Hi Remi! What is the role="presentation" for exactly? Thank you once again.

    Avatar of Nicholas RowanNR 0
  • Edit
  • Delete
  • Nicholas Rowan replied 2017-09-15 09:47:06

    Its for accessability

    Avatar of Steve BorisovSB 1
  • Edit
  • Delete
  • Steve Borisov replied 2017-09-20 07:33:12

    Hey! What's up, Veronica? :)

    Nice example by Rémi with accessibility reference. Can I just add a small fix to that since on the Win 10 Mail (Win 10), Outlook 2016 (Win 7), Outlook 2013 (Win 7) the copy is getting cut on the left side - https://litmus.com/pub/264ad4d/screenshots

    You just need style="mso-table-rspace: 8pt;" added to the left-aligned table.

    <table align="left" border="0" cellspacing="0" cellpadding="0" style="mso-table-rspace: 8pt;">

    Steve Email Dev MailBakery

    Reply to Steve Borisov Avatar of Veronica WilliamsVW 0
  • Edit
  • Delete
  • Veronica Williams replied 2017-09-20 11:42:51

    Hey Steve! That is some great mso styling! ;) Thanks! VW

    Test your email campaigns in 100+ email clients and devices. Never send another broken email again.

    Start your free 7 day trial ×

    Sign in to Community

    Are you new to Litmus Community?

    Create a Free Litmus Account

    Use your existing Litmus login to connect with the world’s most amazing email designers.

    Having trouble signing in? Try Forgot password

    Join the Litmus Community

    × ×

    Sign up to Community

    First name Last name Email Password Confirm password Litmus uses the information you provide us to bring you great content about email marketing trends, stats, events and relevant products and services. You may unsubscribe from these communications at any time. For more information, check out our Privacy Policy Already have a Litmus login? Sign in ×

    Get more out of your Litmus account

    Your free Community account includes access to the Litmus Community, as well as limited access to Litmus Builder. Check out the entire Litmus Email Creative Platform when you sign up for a free 7-day trial.

    • Email Previews

      Get 2,000 screenshots/month in popular email clients, including key international webmail clients, to ensure your emails look great everywhere.

    • Builder

      Quickly identify issues pre-send that could impact your deliverability—and get actionable advice for how to fix them.

    • Checklist

      Get screenshots in popular email clients to ensure your email looks great everywhere.

    • Code Editor Integrations

      Preview and troubleshoot your emails right where you build with seamless integrations between Litmus and any local code editor, like Dreamweaver or Sublime.

    • ESP Integrations

      Save time producing and troubleshooting your campaigns with seamless integrations between Litmus and your email service provider (ESP).

    • Spam Testing

      Quickly identify issues pre-send that could impact your deliverability—and get actionable advice for how to fix them.

    • Email Analytics

      Optimize your campaigns with subscriber-level insights to improve segmentation and targeting strategies.

    • Private Litmus Teams

      Get full team visibility. Manage Litmus access and monitor usage across private teams.

    No thanks, just sign me up without a trial ×

    Forgot password

    Enter your email address to reset your password

    Already have a Litmus login? Sign in

    Từ khóa » Html Wrap Text Around Image In Table