Topics Covered in This HTML Email Tutorial:
Master advanced email styling techniques: Rounding Image Corners with Border Radius, Adding CSS Box Shadow, and Custom Web Fonts with Google Fonts integration
Enhancement Features Covered
Border Radius
Learn to round image corners using CSS border-radius property. This creates modern, polished designs that work in supported email clients.
Box Shadows
Add depth and visual interest with CSS drop shadows. Implement subtle shadows using horizontal offset, vertical offset, blur, and color parameters.
Google Fonts
Integrate custom web fonts from Google Fonts to enhance typography. Includes fallback strategies for unsupported email clients.
Exercise Preview

Exercise Overview
In this exercise, you'll implement sophisticated visual enhancements that push the boundaries of email design. You'll add rounded corners and drop shadows to three date listing images while integrating a custom Google Font. Here's the reality: these features won't display consistently across all email clients, but that's exactly the point. This approach leverages progressive enhancement—a strategic methodology where users with modern email clients enjoy an elevated visual experience, while those on legacy platforms still receive a professionally styled, fully functional email. This technique is essential for modern email marketing, allowing you to deliver cutting-edge design without sacrificing universal accessibility.
Exercise Requirements
Enhances visual appeal in supported email clients
Creates depth and modern design aesthetics
Improves brand consistency and readability
Ensures proper display across different email clients
Getting Started
Launch your code editor and prepare your workspace for this advanced styling exercise.
Close all currently open files to maintain focus and avoid confusion as we transition to new project files specifically prepared for progressive enhancement techniques.
Navigate to the Date Night Progressive Enhancement folder located in Desktop > Class Files > yourname-Responsive HTML Email Class. If your editor supports project folders, open this entire directory to streamline your workflow.
Open date-night-exclusive-picks.html from the Date Night Progressive Enhancement folder. This file serves as your canvas for implementing advanced CSS features that will gracefully degrade across different email environments.
File Setup Process
Open Code Editor
Launch your preferred code editor and close any previously open files to avoid confusion during the exercise.
Navigate to Exercise Folder
Access the Date Night Progressive Enhancement folder located in Desktop > Class Files > yourname-Responsive HTML Email Class.
Open Working File
Load date-night-exclusive-picks.html from the Date Night Progressive Enhancement folder to begin implementing enhancements.
Implementing Border-Radius on the Images
We'll begin by transforming the visual appeal of our design through rounded corners—a subtle yet powerful enhancement that softens the overall aesthetic. The CSS border-radius property enjoys broad support among modern email clients, while legacy systems will simply display standard rectangular corners. This exemplifies progressive enhancement in action.
First, we need to identify our CSS targeting strategy. Navigate to the Couple Fighting image (approximately line 140) and examine its structural markup. Notice how it's nested within a td element classed as deviceWidth:
<td class="deviceWidth" align="left" width="50%" valign="top" style="padding-right: 10px;"> <a href="https://www.example.com" target="_blank"><img class="resImage" src="http://www.nobledesktop.com/nl-date-night/img/couple-boxing@2x.jpg" width="290" ALT="Couple Fighting"></a> </td>Navigate to your CSS styles section at the document's head. Position your cursor below the existing img rule and add this targeted enhancement:
.deviceWidth img { border-radius: 20px 0; }This CSS shorthand creates an asymmetrical corner treatment, rounding only the top-left and bottom-right corners—a contemporary design choice that adds visual interest without overwhelming the layout.
Save your file and prepare for browser testing.
Preview date-night-exclusive-picks.html in your browser. Keep this tab open for iterative testing as we continue building upon this foundation.
Excellent! All three date listing images now feature elegant rounded corners with a 20-pixel radius applied to opposing corners, creating a dynamic visual rhythm that guides the eye through your content.
Test responsive behavior by adjusting your browser window width. Observe how the rounded corners maintain their proportional appeal across different viewport sizes—a crucial consideration for email design in 2026's multi-device landscape.
Target images within elements that have the deviceWidth class. This approach ensures consistent styling across the three date listing images while maintaining responsive design principles.
border-radius: 20px 0;Adding Box-Shadows
Now we'll introduce depth through carefully crafted drop shadows. This technique adds dimensional quality to your images, creating visual hierarchy and enhancing the perceived quality of your email design.
Return to your code editor and enhance your existing CSS rule by incorporating the box-shadow property as highlighted below:
.deviceWidth img { border-radius: 20px 0; box-shadow: 0 4px 8px #888888; }This shadow specification follows a precise four-parameter structure: horizontal offset (0px—no lateral shift), vertical offset (4px—subtle downward projection), blur radius (8px—soft edge diffusion), and shadow color (#888888—neutral gray for universal compatibility). This combination creates a natural, understated shadow that suggests the images are floating slightly above the email surface.
Save your modifications and refresh your browser. The transformation should be immediately apparent—each image now possesses subtle dimensional depth that elevates the overall design sophistication while maintaining professional restraint.
Box-Shadow Parameters
Horizontal Offset: 0px
No horizontal displacement of the shadow, keeping it directly behind the image for a natural drop shadow effect.
Vertical Offset: 4px
Moves shadow 4 pixels down, simulating light source from above and creating realistic depth perception.
Blur: 8px, Color: #888888
8-pixel blur creates soft edges while gray color provides subtle contrast without overwhelming the design.
Custom Web Fonts: Adding Google Fonts
Typography is the foundation of effective communication, and custom web fonts allow you to establish distinctive brand personality within your email campaigns. While font support varies significantly across email clients, Google Fonts provides the most reliable pathway for custom typography implementation. The key principle: always specify fallback fonts to ensure readability regardless of client limitations.
- Open a new browser tab and navigate to fonts.google.com—Google's comprehensive font library that has become the industry standard for web typography since its launch.
- Utilize the search functionality to locate our target typeface: enter Bree Serif in the search field.
- From the results grid, click directly on Bree Serif to access its detailed specimen page.
- Select + Select this style adjacent to the Regular 400 weight. This weight provides optimal balance between readability and character while maintaining broad compatibility.
- Google will display a sidebar panel. Click the Embed tab at the panel's top-right to access implementation code.
Copy the provided link element for the Google-hosted stylesheet:
<link href="https://fonts.googleapis.com/css2?family=bree+serif&display=swap" rel="stylesheet">The display=swap parameter ensures text remains visible during font load, preventing invisible text periods that could harm user experience.
Return to your code editor and integrate this link within your document head, positioning it strategically between the title and style tags (approximately line 6):
<title>Date Night Exclusive Picks</title> <link href="https://fonts.googleapis.com/css2?family=bree+serif&display=swap" rel="stylesheet"> <style>Now modify your h1 and h2 font-family declarations (around lines 22 and 29) to prioritize your custom font while maintaining fallback support:
h1 { color: #69655c; font-family: 'Bree Serif', sans-serif;Code Omitted To Save Space
} h2 { color: #696969; font-family: 'Bree Serif', sans-serif;Code Omitted To Save Space
}This font stack ensures that supporting email clients will display Bree Serif, while others gracefully fall back to their default sans-serif font—maintaining readability across all platforms.
Save your file and refresh date-night-exclusive-picks.html in your browser. Your headings and subheadings should now display the distinctive Bree Serif typeface, adding personality and brand differentiation to your email design.
Google Fonts Integration Process
Access Google Fonts
Navigate to fonts.Google.com and search for 'Bree Serif' to find the desired font family for the email design.
Select Font Weight
Choose 'Select this style' for Regular 400 weight and click the Embed tab to access the stylesheet link.
Embed Stylesheet
Copy the Google-hosted stylesheet link and paste it in the HTML head section, below the title tag and above the style tag.
Update Font-Family
Add 'Bree Serif' as the first choice in the font-family property for h1 and h2 elements, before the sans-serif fallback.
Web Fonts in Outlook
Microsoft Outlook presents unique challenges for email designers, particularly regarding font rendering. Legacy Windows versions of Outlook (2007, 2010, and 2013) ignore custom web fonts entirely, defaulting to Times New Roman regardless of your carefully crafted font stack—even when sans-serif fallbacks are specified.
For this particular email template, Times New Roman provides acceptable readability and maintains professional appearance. However, when your design requires sans-serif fonts for brand consistency or aesthetic reasons, you'll need to implement conditional styles specifically targeting desktop Outlook versions.
Here's the industry-standard solution—add this conditional code block at the top of your style section:
<!—[if mso ]>
<style type="text/css">
h1, h2 {
font-family: sans-serif;
}
</style>
<![endif]—>
This Microsoft Office-specific conditional comment ensures Outlook users receive appropriate sans-serif rendering while other email clients continue displaying your custom Google Font. This technique represents professional email development practices essential for comprehensive client support in 2026's diverse email ecosystem.
Windows versions of Outlook (2007, 2010, and 2013) do not support custom web fonts and will default to Times New Roman, even with sans-serif fallbacks defined in the font stack.
Custom Web Fonts in Email