Styling Content: Free HTML Email Tutorial
Master Professional HTML Email Design and Styling
Tutorial Learning Objectives
Email-Friendly CSS
Learn CSS techniques that work consistently across all major email clients. Understand the limitations and best practices for email styling.
Embedded to Inline Workflow
Master the workflow of writing embedded CSS styles and converting them to inline styles for optimal email compatibility.
Visual Enhancement
Add professional styling including background colors, typography, spacing, and image optimization for email newsletters.
We'll begin by adding a background color to the event content area. Locate the event table row around line 27 and add the following bgcolor property (shown in bold):
<!—start event listing—>
<table width="644" cellpadding="0" cellspacing="0" border="1">
<tr bgcolor="#4d4d4d">
<td align="right" valign="top" width="130">
NOTE: While background colors can be applied using CSS, HTML email best practices in 2026 still favor HTML attributes like bgcolor for maximum consistency across email clients. This approach ensures your background colors display correctly even in clients with limited CSS support.
Quick Setup Process
Clean Your Workspace
Close any open files and navigate to Class Files > yourname-HTML Email Class on your Desktop. Delete any existing Jive Factory folder.
Prepare Project Files
Duplicate the 'Jive Factory Ready for Styling' folder and rename it to 'Jive Factory' to begin working with the template.
Add Background Styling
Locate the event table row around line 27 and add bgcolor='#4d4d4d' property for initial styling foundation.
Styles must be inlined for Gmail compatibility, but embedded styles make development easier. Write embedded styles first, then use free online tools to convert them to inline styles during the preflight process.
Embedded vs Inline CSS for Email
Typography Enhancement Techniques
Color Coding System
Use the .intro class with #fcb802 gold color to highlight introductory phrases like 'Local Showcase:' for better visual hierarchy.
Emphasis Styling
Apply .tickets class with bold font-weight to make pricing information stand out and catch reader attention.
Images display inline by default and align to the text baseline, creating unwanted gaps. Set images to display: block to eliminate vertical alignment issues and remove spacing gaps.
Font Size Hierarchy
Image Integration Process
Insert Image Element
Add the img tag with src='images/autumn-experiment.jpg' and specify width='480' height='284' for consistent display across email clients.
Apply Bottom Margin
Use .event img selector to add margin-bottom: 10px for proper spacing between the image and following content.
Borders with border='1' help visualize table structure during development. Use Find and Replace to change all instances to border='0' for clean production appearance.
HTML vs CSS Background Methods
| Feature | HTML Attribute | CSS Property |
|---|---|---|
| Email Compatibility | Excellent | Good |
| Syntax | bgcolor='#000000' | background-color: #000000 |
| Recommended for Email | Yes | Sometimes |
Event Addition Checklist
Maintains consistent layout and styling across all events
Update from content-events.html for accurate event details
Ensure content matches the new event specifics
Include visual element with src='images/small-prune.jpg'
Maintain consistent visual hierarchy and emphasis
Use #616161 to create visual separation between events
Key Takeaways
