Videos
Check out our tutorial video series.
NBSP non-breaking space use in email and HTML padding. Add entities to your email to give consistent formatting.
All emails that you send out are formatted through HTML. This is why you should have a strong understanding of HTML formatting. This understanding will assist you to format all the emails that you send and make sure that the recipients will not go through a challenging time while reading them. When you take a look at the important HTML formatting elements present in an email, you will figure out how nbsp is playing a major role.
  is the HTML formatting tag, which refers to the non-breaking space. In other words,   will be able to separate two strings, but will not put them into separate lines. You will be able to keep the two strings within the same line in your email content. You will be able to use the nbsp; tags in the mails as much as you want so that you will be able to get the desired formatting. It is better if you can use this tag effectively while keeping the recipients and the devices that they use in mind.
However, there are some instances where you should not include   tags in the emails. For example, you shouldn't use   tag to create multiple spaces. That will make the email look unreadable, especially if the recipient is reading that on a smaller screen, such as a smartphone.
The process of creating spaces within HTML emails might look like a simple and straightforward thing to do. That's mainly due to the rich user interfaces that the email clients are offering. However, you should understand the different approaches that are available for you to add spaces to your HTML formatted email as well. That's because you will not be able to use nbsp and add the spaces in all instances. Here are some of the alternatives available to nbsp for your consideration.
Cellpadding is an attribute, which you can use in HTML in order to clearly specify the distance that you should keep in between two elements. You will be able to specify the size of the space in pixels. This is quite a popular approach available for you to create spaces within the emails. In fact, you can do that in all the support tables of email clients. However, you will not be able to override cellpadding in any situation. For example, you cannot get your CSS elements to override cellpadding.
Padding is an attribute that you can find in CSS, which you can override. You can use padding at the time of designing HTML emails as well. That's because you will be able to include media queries within the emails and make them look perfectly well, especially on mobile devices. We can highly recommend this method for anyone who is looking to add spaces within table cells.
Empty cells might look like a primitive method of adding spaces. However, you can still take a look at this method and proceed with it as well. This is where you will need to use the <td> HTML tags. These tags will help you to clearly define typical data cells. When you leave them empty, they will create invisible cells. You can use them to create spacing effectively.
Margin is an element in CSS, which you can use in a way similar to padding. However, the margin will not limit you to adding spaces within a cell. You can use this method to add spaces outside the cells of a table.
Go through these methods and find the best way to add spaces to your HTML formatted emails.
For more information reach out to our support team.
Check out our tutorial video series.
Email and SMS guides for automation and testing.
View github project code for multiple languages.
Latest posts from the MailSlurp team.
Test, build, and automate messaging with a free MailSlurp account.