### Basic Email Button Styling
Source: https://github.com/emailmonday/cerberus/blob/main/docs/content/components.md
A simplified example of an email button with basic styling and hover effects. This is useful for quick implementation.
```html
Button Text
```
--------------------------------
### Change Text and Background Colors for Dark Mode
Source: https://github.com/emailmonday/cerberus/blob/main/docs/content/dark-mode.md
This example demonstrates changing text color and table cell background color for dark mode using CSS utility classes within a media query.
```html
```
--------------------------------
### Less Than or Equal To Operator for Outlook Versions
Source: https://github.com/emailmonday/cerberus/blob/main/docs/content/outlook.md
Use the 'lte' operator to include content for Outlook versions less than or equal to a specified version. This example targets Outlook 2010 and below.
```html
Outlook 2010 and below
```
--------------------------------
### Less Than Operator for Outlook Versions
Source: https://github.com/emailmonday/cerberus/blob/main/docs/content/outlook.md
Use the 'lt' operator to include content for Outlook versions less than a specified version. This example targets versions below Outlook 2010.
```html
Everything below Outlook 2010
```
--------------------------------
### OR Operator for Specific Outlook Versions
Source: https://github.com/emailmonday/cerberus/blob/main/docs/content/outlook.md
Use the 'or' operator ('|') to target specific Outlook versions. This example targets Outlook 2007 and Outlook 2016 only.
```html
Outlook 2007 / 2016 only
```
--------------------------------
### Greater Than or Equal To Operator for Outlook Versions
Source: https://github.com/emailmonday/cerberus/blob/main/docs/content/outlook.md
Use the 'gte' operator to include content for Outlook versions greater than or equal to a specified version. This example targets Outlook 2010 and above.
```html
Outlook 2010 and above
```
--------------------------------
### NOT Operator for Excluding Outlook Versions
Source: https://github.com/emailmonday/cerberus/blob/main/docs/content/outlook.md
Use the 'not' operator ('!') to exclude specific Outlook versions. This example targets all versions except Outlook, which will ignore the content.
```html
All Outlooks will ignore this
```
--------------------------------
### Greater Than Operator for Outlook Versions
Source: https://github.com/emailmonday/cerberus/blob/main/docs/content/outlook.md
Use the 'gt' operator to include content for Outlook versions greater than a specified version. This example targets versions above Outlook 2010.
```html
Everything above Outlook 2010
```
--------------------------------
### Responsive and Static Images in HTML
Source: https://github.com/emailmonday/cerberus/blob/main/docs/content/components.md
Demonstrates how to code responsive and static images using the `
` tag. Responsive images scale down, while static images maintain their original size. Ensure to use absolute HTTPS paths for image sources.
```html
```
--------------------------------
### Responsive Stack Column Layout
Source: https://github.com/emailmonday/cerberus/blob/main/cerberus-hybrid.html
Utility classes to stack columns into full-width rows on smaller screens. `.stack-column-center` also centers the content within the stacked column.
```css
@media screen and (max-width: 480px) {
.stack-column, .stack-column-center {
display: block !important;
width: 100% !important;
max-width: 100% !important;
direction: ltr !important;
}
.stack-column-center {
text-align: center !important;
}
}
```
--------------------------------
### Email Client Style Resets and Fixes
Source: https://github.com/emailmonday/cerberus/blob/main/cerberus-hybrid.html
Applies essential resets and fixes for common email client rendering issues. Includes styles for viewport, text resizing, Outlook spacing, webkit padding, IE image rendering, link underlining, and Apple/Gmail specific behaviors.
```css
:root { color-scheme: light dark; supported-color-schemes: light dark; }
html, body { margin: 0 auto !important; padding: 0 !important; height: 100% !important; width: 100% !important; }
* { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
div[style*="margin: 16px 0"] { margin: 0 !important; }
#MessageViewBody, #MessageWebViewDiv{ width: 100% !important; }
table, td { mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; }
table { border-spacing: 0 !important; border-collapse: collapse !important; table-layout: fixed !important; margin: 0 auto !important; }
img { -ms-interpolation-mode:bicubic; }
a { text-decoration: none; }
a[x-apple-data-detectors], .unstyle-auto-detected-links a, .aBn { border-bottom: 0 !important; cursor: default !important; color: inherit !important; text-decoration: none !important; font-size: inherit !important; font-family: inherit !important; font-weight: inherit !important; line-height: inherit !important; }
.im { color: inherit !important; }
.a6S { display: none !important; opacity: 0.01 !important; }
img.g-img + div { display: none !important; }
```
--------------------------------
### Apply Dark Mode Styles with CSS Utility Classes
Source: https://github.com/emailmonday/cerberus/blob/main/docs/content/dark-mode.md
Use the `prefers-color-scheme: dark` media query to apply styles. Utility classes suffixed with `!important` override inline styles.
```html
Text that is black in light mode and white in dark mode.
```
--------------------------------
### Hybrid Email Design with Ghost Tables
Source: https://github.com/emailmonday/cerberus/blob/main/docs/content/hybrid-responsive.md
This HTML snippet demonstrates a hybrid email design technique using MSO conditional comments and inline styles to create two columns that stack on mobile and display side-by-side on desktop. It's useful for achieving responsive layouts in email clients that don't fully support media queries.
```html
|
```
--------------------------------
### Create Ghost Tables for Outlook Responsiveness
Source: https://github.com/emailmonday/cerberus/blob/main/docs/content/outlook.md
Implement 'ghost tables' using MSO conditional comments to ensure hybrid emails maintain a fixed width in Outlook, compensating for its lack of support for modern CSS properties like inline-block and max-width.
```html
Outlook can’t render the CSS in this DIV but other email clients can, so we wrap this in a ghost table that replicates the DIV’s desktop style. In this case, a container 340px wide.
```
--------------------------------
### Centering Utility Class
Source: https://github.com/emailmonday/cerberus/blob/main/cerberus-hybrid.html
A generic utility class for centering elements like images, buttons, and nested tables on narrow screens. Apply `.center-on-narrow` to the element.
```css
.center-on-narrow {
text-align: center !important;
display: block !important;
margin-left: auto !important;
margin-right: auto !important;
float: none !important;
}
table.center-on-narrow {
display: inline-block !important;
}
```
--------------------------------
### Create Email Button with HTML
Source: https://github.com/emailmonday/cerberus/blob/main/docs/content/components.md
Use this HTML structure to create a button that displays consistently across email clients. It includes styles for hover effects and dark mode.
```html
```
--------------------------------
### Set Color Scheme for Email Clients
Source: https://github.com/emailmonday/cerberus/blob/main/cerberus-fluid.html
Provides email clients with information about supported color schemes. This is a duplicate of the meta color-scheme tag.
```css
:root {
color-scheme: light dark;
supported-color-schemes: light dark;
}
```
--------------------------------
### HTML with VML for Background Images
Source: https://github.com/emailmonday/cerberus/blob/main/docs/content/components.md
This snippet demonstrates how to implement background images in HTML emails. It includes CSS for modern clients and VML for older versions of Outlook. Ensure background colors are set for accessibility when images are disabled.
```html
|
|
```
--------------------------------
### Button Hover Styles
Source: https://github.com/emailmonday/cerberus/blob/main/cerberus-hybrid.html
Provides smooth transition effects for button hover states. Use `.button-td-primary` and `.button-a-primary` classes for primary buttons.
```css
.button-td, .button-a { transition: all 100ms ease-in; }
.button-td-primary:hover, .button-a-primary:hover { background: #555555 !important; border-color: #555555 !important; }
```
--------------------------------
### Button Hover Styles
Source: https://github.com/emailmonday/cerberus/blob/main/cerberus-fluid.html
Provides smooth transition effects for button hover states, changing background and border colors.
```css
.button-td, .button-a {
transition: all 100ms ease-in;
}
.button-td-primary:hover, .button-a-primary:hover {
background: #555555 !important;
border-color: #555555 !important;
}
```
--------------------------------
### HTML Email Button Pattern
Source: https://github.com/emailmonday/cerberus/blob/main/docs/templates/index.html
A reusable HTML table structure for creating a button in an email. Includes inline styles for maximum compatibility and a hover/focus state with media query for dark mode support.
```html
```
```css
.ex-button:hover, .ex-button:focus { background: #555555 !important; } @media (prefers-color-scheme: dark) { .ex-button { background: #ffffff !important; color: #222222 !important; } .ex-button:hover { background: #cccccc !important; } }
```
--------------------------------
### Center Content on Narrow Screens
Source: https://github.com/emailmonday/cerberus/blob/main/cerberus-responsive.html
A utility class for centering elements like images, buttons, and nested tables on smaller screens. It ensures block display and auto margins.
```css
.center-on-narrow { text-align: center !important; display: block !important; margin-left: auto !important; margin-right: auto !important; float: none !important; }
table.center-on-narrow { display: inline-block !important; }
```
--------------------------------
### Normalize Body and HTML Styles
Source: https://github.com/emailmonday/cerberus/blob/main/cerberus-fluid.html
Removes default spacing and ensures full height and width for email clients. Beware: this can affect padding/margin and background colors in reply windows.
```css
html, body {
margin: 0 auto !important;
padding: 0 !important;
height: 100% !important;
width: 100% !important;
}
```
--------------------------------
### Fix Webkit Padding Issues and Table Layout
Source: https://github.com/emailmonday/cerberus/blob/main/cerberus-responsive.html
Applies consistent table layout and spacing, fixing padding issues in Webkit-based email clients. Ensures tables are centered.
```css
table { border-spacing: 0 !important; border-collapse: collapse !important; table-layout: fixed !important; margin: 0 auto !important; }
```
--------------------------------
### Setting Background Colors with Inline CSS
Source: https://github.com/emailmonday/cerberus/blob/main/docs/content/components.md
Applies a solid background color to a table using the `background-color` inline CSS property. This method offers more flexibility and is also well-supported.
```html
```
--------------------------------
### Responsive Viewport Adjustments for iOS
Source: https://github.com/emailmonday/cerberus/blob/main/cerberus-hybrid.html
Media queries to adjust the minimum width of the email container for different iPhone viewports. Ensures proper rendering on various iPhone models.
```css
@media only screen and (min-device-width: 320px) and (max-device-width: 374px) {
u ~ div .email-container { min-width: 320px !important; }
}
@media only screen and (min-device-width: 375px) and (max-device-width: 413px) {
u ~ div .email-container { min-width: 375px !important; }
}
@media only screen and (min-device-width: 414px) {
u ~ div .email-container { min-width: 414px !important; }
}
```
--------------------------------
### Swap Images for Dark Mode
Source: https://github.com/emailmonday/cerberus/blob/main/docs/content/dark-mode.md
Include separate image files for light and dark modes, then use CSS with `prefers-color-scheme` to display the appropriate image. Outlook requires conditional comments to hide the dark mode image.
```html
```
--------------------------------
### Improve Readability on Small Screens
Source: https://github.com/emailmonday/cerberus/blob/main/cerberus-responsive.html
Adjusts paragraph font size within the email container for better readability on small screens.
```css
.email-container p { font-size: 17px !important; }
```
--------------------------------
### Setting Background Colors with HTML Attributes
Source: https://github.com/emailmonday/cerberus/blob/main/docs/content/components.md
Applies a solid background color to a table using the `bgcolor` HTML attribute. This method is well-supported across email clients.
```html
```
--------------------------------
### HTML Lists with Inline Styles
Source: https://github.com/emailmonday/cerberus/blob/main/docs/content/components.md
Structure content using unordered (``) and ordered (``) lists. Apply inline styles to control padding, margins, and list-style-type for consistent presentation. Adjust `margin` on list items (`- `) to create vertical spacing.
```html
- Unordered list item
- Unordered list item
- Unordered list item
- Ordered list item
- Ordered list item
- Ordered list item
```
--------------------------------
### IE Image Rendering Mode
Source: https://github.com/emailmonday/cerberus/blob/main/cerberus-fluid.html
Sets a better rendering method for images when resizing in Internet Explorer.
```css
img {
-ms-interpolation-mode: bicubic;
}
```
--------------------------------
### HTML Table for Email Layout
Source: https://github.com/emailmonday/cerberus/blob/main/docs/content/components.md
Use tables for reliable HTML email layouts. Attributes like `role="presentation"` improve accessibility by skipping table tags for screen readers. Ensure `cellspacing`, `cellpadding`, and `border` are set to 0 to avoid unwanted spacing and borders.
```html
```
--------------------------------
### Web Font Implementation with Fallbacks
Source: https://github.com/emailmonday/cerberus/blob/main/docs/content/components.md
Includes a web font using Google Fonts and provides fallbacks for email clients that do not support web fonts, specifically addressing Windows Outlook compatibility using conditional comments.
```html
Text in Lobster in email clients that support web fonts.
```
--------------------------------
### Workaround for Triggered Links in Email Clients
Source: https://github.com/emailmonday/cerberus/blob/main/cerberus-responsive.html
A workaround for email clients that interfere with triggered links. This styles detected links to prevent unwanted behavior.
```css
a[x-apple-data-detectors],
/* iOS */
.unstyle-auto-detected-links a, .aBn { border-bottom: 0 !important; cursor: default !important; color: inherit !important; text-decoration: none !important; font-size: inherit !important; font-family: inherit !important; font-weight: inherit !important; line-height: inherit !important; }
```
--------------------------------
### Fix Webkit Padding and Table Layout
Source: https://github.com/emailmonday/cerberus/blob/main/cerberus-fluid.html
Applies standard table properties to fix webkit padding issues and ensure consistent table rendering.
```css
table {
border-spacing: 0 !important;
border-collapse: collapse !important;
table-layout: fixed !important;
margin: 0 auto !important;
}
```
--------------------------------
### HTML Headings with Inline Styles
Source: https://github.com/emailmonday/cerberus/blob/main/docs/content/components.md
Use semantic heading tags (``, ``, ``) for text hierarchy. Apply inline styles to control font size, margins, and padding, ensuring consistent appearance across email clients. Zero out default margins and padding as needed.
```html
Heading level 1
Heading level 2
Heading level 3
```
--------------------------------
### Responsive Email Container Widths
Source: https://github.com/emailmonday/cerberus/blob/main/cerberus-fluid.html
Adjusts the minimum width of the email container for different iPhone viewports to ensure proper display.
```css
@media only screen and (min-device-width: 320px) and (max-device-width: 374px) {
u ~ div .email-container {
min-width: 320px !important;
}
}
```
```css
@media only screen and (min-device-width: 375px) and (max-device-width: 413px) {
u ~ div .email-container {
min-width: 375px !important;
}
}
```
```css
@media only screen and (min-device-width: 414px) {
u ~ div .email-container {
min-width: 414px !important;
}
}
```
--------------------------------
### HTML Paragraphs with Inline Styles
Source: https://github.com/emailmonday/cerberus/blob/main/docs/content/components.md
Utilize paragraph tags (`
`) for body text. Apply inline styles to manage spacing and ensure consistent rendering. It's crucial to zero out default margins and padding that email clients might apply.
```html
Paragraph text
More paragraph text
```
--------------------------------
### Typography Adjustments for Small Screens
Source: https://github.com/emailmonday/cerberus/blob/main/cerberus-fluid.html
Adjusts paragraph font size on screens smaller than 600px to improve readability.
```css
@media screen and (max-width: 600px) {
.email-container p {
font-size: 17px !important;
}
}
```
--------------------------------
### Responsive Email Container and Stacked Columns
Source: https://github.com/emailmonday/cerberus/blob/main/cerberus-responsive.html
Adjusts the email container width to 100% on screens smaller than 600px. Also forces table cells into full-width rows and centers stacked columns.
```css
@media screen and (max-width: 600px) {
.email-container { width: 100% !important; margin: auto !important; }
/* Forces table cells into full-width rows. */
.stack-column, .stack-column-center {
display: block !important;
width: 100% !important;
max-width: 100% !important;
direction: ltr !important;
}
/* And center justify these ones. */
.stack-column-center {
text-align: center !important;
}
}
```
--------------------------------
### Dark Mode Styles
Source: https://github.com/emailmonday/cerberus/blob/main/cerberus-fluid.html
Defines styles for dark mode, including background colors, text colors, and button appearances, to ensure readability and aesthetics.
```css
@media (prefers-color-scheme: dark) {
.email-bg {
background: #111111 !important;
}
.darkmode-bg {
background: #222222 !important;
}
h1, h2, h3, p, li, .darkmode-text, .email-container a:not([class]) {
color: #F7F7F9 !important;
}
td.button-td-primary, td.button-td-primary a {
background: #ffffff !important;
border-color: #ffffff !important;
color: #222222 !important;
}
td.button-td-primary:hover, td.button-td-primary a:hover {
background: #cccccc !important;
border-color: #cccccc !important;
}
.footer td {
color: #aaaaaa !important;
}
.darkmode-fullbleed-bg {
background-color: #0F3016 !important;
}
}
```
--------------------------------
### Center Content on Android 4.4
Source: https://github.com/emailmonday/cerberus/blob/main/cerberus-fluid.html
Centers email content specifically for Android 4.4 by overriding default margins.
```css
div[style*="margin: 16px 0"] {
margin: 0 !important;
}
```
--------------------------------
### Handle Form Submissions with Dynamic Content
Source: https://github.com/emailmonday/cerberus/blob/main/docs/content/templates.md
This JavaScript code listens for clicks on elements with the class 'parcel-button'. If the 'data-url' attribute is present and the 'data' form element is empty, it fetches HTML content from the URL, encodes it, and submits the form. Otherwise, it submits the form directly. This is useful for forms that may need to dynamically load content before submission.
```javascript
(function () {
const forms = document.querySelectorAll('.parcel-button');
for (let i = 0; i < forms.length; i++) {
const form = forms[i];
form.addEventListener('click', function (event) {
const url = form.getAttribute('data-url');
// if we have a url to fetch html from
if (!form.elements.data.value && url) {
event.preventDefault();
// fetch the data, update the value to
fetch(url)
.then((response) => {
return response.text();
})
.then((html) => {
// set the value of the email content and resubmit the form
form.elements.data.setAttribute(
'value',
encodeURIComponent(JSON.stringify({ name: 'Email', html }))
);
form.submit();
});
}
else {
form.submit()
}
});
}
})();
```
--------------------------------
### Typography Adjustment for Readability
Source: https://github.com/emailmonday/cerberus/blob/main/cerberus-hybrid.html
Adjusts paragraph font size within the email container on small screens to enhance readability. Apply this within a responsive media query.
```css
.email-container p {
font-size: 17px !important;
}
```
--------------------------------
### Reset Default Bold Style for Table Headers
Source: https://github.com/emailmonday/cerberus/blob/main/cerberus-responsive.html
Replaces the default bold style for table header cells (th) with a normal font weight.
```css
th { font-weight: normal; }
```
--------------------------------
### Remove Email Client Margins and Padding
Source: https://github.com/emailmonday/cerberus/blob/main/cerberus-responsive.html
Resets margin and padding for HTML and body elements to ensure consistent layout across email clients. Beware: This may affect the compose window's padding and background color.
```css
html, body { margin: 0 auto !important; padding: 0 !important; height: 100% !important; width: 100% !important; }
```
--------------------------------
### Prevent Gmail Download Button
Source: https://github.com/emailmonday/cerberus/blob/main/cerberus-fluid.html
Prevents Gmail from displaying a download button on large, non-linked images by hiding them.
```css
.a6S {
display: none !important;
opacity: 0.01 !important;
}
```
--------------------------------
### Center Email Content on Android 4.4
Source: https://github.com/emailmonday/cerberus/blob/main/cerberus-responsive.html
Forces centering of email content on Android 4.4 by overriding default margin styles.
```css
div[style*="margin: 16px 0"] { margin: 0 !important; }
```
--------------------------------
### Force Viewport Width on Samsung Android
Source: https://github.com/emailmonday/cerberus/blob/main/cerberus-fluid.html
Ensures Samsung Android mail clients use the entire viewport width.
```css
#MessageViewBody, #MessageWebViewDiv {
width: 100% !important;
}
```
--------------------------------
### Prevent Gmail Download Button on Large Images
Source: https://github.com/emailmonday/cerberus/blob/main/cerberus-responsive.html
Hides the download button that Gmail may display on large, non-linked images. If this doesn't work, add the '.g-img' class to the image.
```css
.a6S { display: none !important; opacity: 0.01 !important; }
/* If the above doesn't work, add a .g-img class to any image in question. */
img.g-img + div { display: none !important; }
```
--------------------------------
### Unstyling Auto-Detected Links
Source: https://github.com/emailmonday/cerberus/blob/main/docs/content/components.md
Applies CSS to prevent email clients from auto-styling detected links (like addresses or dates) to match surrounding text. This requires the email client to support styles in the head.
```html
Our mailing address is 123 Fake St.
```
--------------------------------
### Target Specific Outlook Versions with MSO Tags
Source: https://github.com/emailmonday/cerberus/blob/main/docs/content/outlook.md
Utilize Microsoft Office version numbers within MSO conditional comments to precisely target specific versions of Outlook for custom code or styling. This is useful when certain Outlook versions exhibit unique rendering behaviors.
```html
```
```html
```
```html
```
```html
```
```html
```
```html
```
```html
```
--------------------------------
### HTML Spacer for Table Row Separation
Source: https://github.com/emailmonday/cerberus/blob/main/docs/content/components.md
Employ a spacer `` with a hidden `| ` to create vertical space between table rows when padding and margin are unreliable. Set `height` for the desired spacing, hide it from screen readers using `aria-hidden="true"`, and use ` ` to prevent collapse. Inline styles for `font-size` and `line-height` prevent unwanted inherited spacing.
```html
|
|
|
```
--------------------------------
### Add Outlook-Specific CSS Styles
Source: https://github.com/emailmonday/cerberus/blob/main/docs/content/outlook.md
Embed CSS rules within MSO conditional comments to apply styles exclusively to Outlook. This allows for fine-tuning email appearance in Word-based Outlook versions, leveraging its support for styles in the head.
```html
```
--------------------------------
### Hide Gmail Image Wrapper
Source: https://github.com/emailmonday/cerberus/blob/main/cerberus-fluid.html
Hides the extra div that Gmail sometimes adds after images, preventing layout issues.
```css
img.g-img + div {
display: none !important;
}
```
--------------------------------
### Remove Dark Mode Styles
Source: https://github.com/emailmonday/cerberus/blob/main/docs/content/dark-mode.md
To disable dark mode support, remove the CSS styles defined within the `@media (prefers-color-scheme: dark)` block in the ``.
```css
/* Dark Mode Styles : BEGIN */
@media (prefers-color-scheme: dark) {
...
}
/* Dark Mode Styles : END */
```
--------------------------------
### Remove Gmail iOS Right Gutter
Source: https://github.com/emailmonday/cerberus/blob/main/cerberus-responsive.html
Removes the right gutter in the Gmail iOS app. Create additional media queries for other viewport sizes if needed.
```css
/* iPhone 4, 4S, 5, 5S, 5C, and 5SE */
@media only screen and (min-device-width: 320px) and (max-device-width: 374px) {
u ~ div .email-container { min-width: 320px !important; }
}
/* iPhone 6, 6S, 7, 8, and X */
@media only screen and (min-device-width: 375px) and (max-device-width: 413px) {
u ~ div .email-container { min-width: 375px !important; }
}
/* iPhone 6+, 7+, and 8+ */
@media only screen and (min-device-width: 414px) {
u ~ div .email-container { min-width: 414px !important; }
}
```
--------------------------------
### Prevent Text Wrapping with Non-Breaking Space
Source: https://github.com/emailmonday/cerberus/blob/main/docs/content/components.md
Uses the non-breaking space entity ( ) to keep a group of words together on a single line, preventing awkward line breaks.
```html
I want these words to stay together and prevent widows.
```
--------------------------------
### Prevent Text Resizing
Source: https://github.com/emailmonday/cerberus/blob/main/cerberus-fluid.html
Stops email clients from resizing small text. Applies to all elements.
```css
* {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
}
```
--------------------------------
### Add Outlook-Specific HTML Content
Source: https://github.com/emailmonday/cerberus/blob/main/docs/content/outlook.md
Use MSO conditional comments to include HTML content that will only be rendered by Microsoft Office versions of Outlook. This is useful for adding elements that are not supported or render incorrectly in other email clients.
```html
```
--------------------------------
### Dark Mode Styles for Emails
Source: https://github.com/emailmonday/cerberus/blob/main/cerberus-responsive.html
Applies dark mode styles to email elements, including background colors, text colors, and button styles. Ensures links and footer text are readable in dark mode.
```css
@media (prefers-color-scheme: dark) {
.email-bg { background: #111111 !important; }
.darkmode-bg { background: #222222 !important; }
h1, h2, h3, p, li, .darkmode-text, .email-container a:not([class]) {
color: #F7F7F9 !important;
}
td.button-td-primary, td.button-td-primary a {
background: #ffffff !important;
border-color: #ffffff !important;
color: #222222 !important;
}
td.button-td-primary:hover, td.button-td-primary a:hover {
background: #cccccc !important;
border-color: #cccccc !important;
}
.footer td {
color: #aaaaaa !important;
}
.darkmode-fullbleed-bg {
background-color: #0F3016 !important;
}
}
```
--------------------------------
### Exclude Content from Outlook
Source: https://github.com/emailmonday/cerberus/blob/main/docs/content/outlook.md
Employ the '!mso' conditional comment to ensure that specific HTML content is ignored by all Microsoft Outlook versions. This is useful for content that is intended only for non-Outlook email clients.
```html
```
--------------------------------
### Disable Auto-Detected Links
Source: https://github.com/emailmonday/cerberus/blob/main/cerberus-fluid.html
A workaround for email clients that interfere with triggered links. This targets iOS and other clients to prevent unwanted link styling and behavior.
```css
a[x-apple-data-detectors],
.unstyle-auto-detected-links a,
.aBn {
border-bottom: 0 !important;
cursor: default !important;
color: inherit !important;
text-decoration: none !important;
font-size: inherit !important;
font-family: inherit !important;
font-weight: inherit !important;
line-height: inherit !important;
}
```
--------------------------------
### Remove Link Underlines
Source: https://github.com/emailmonday/cerberus/blob/main/cerberus-fluid.html
Prevents Windows 10 Mail from underlining links when inline CSS is used. Ensure link styles are applied inline.
```css
a {
text-decoration: none;
}
```
--------------------------------
### Remove Link Underlines in Windows 10 Mail
Source: https://github.com/emailmonday/cerberus/blob/main/cerberus-responsive.html
Prevents Windows 10 Mail from underlining links when inline CSS is used. Ensure link styles, including underlines, are applied inline.
```css
a { text-decoration: none; }
```
--------------------------------
### Preserve Gmail Text Color
Source: https://github.com/emailmonday/cerberus/blob/main/cerberus-fluid.html
Ensures Gmail does not change the text color in conversation threads.
```css
.im {
color: inherit !important;
}
```
--------------------------------
### Prevent Gmail Text Color Changes
Source: https://github.com/emailmonday/cerberus/blob/main/cerberus-responsive.html
Ensures Gmail does not change the text color in conversation threads by inheriting the color.
```css
.im { color: inherit !important; }
```
--------------------------------
### Remove Outlook Table Spacing
Source: https://github.com/emailmonday/cerberus/blob/main/cerberus-responsive.html
Prevents Outlook from adding extra spacing to tables by resetting table and td spacing properties.
```css
table, td { mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; }
```
--------------------------------
### Prevent Outlook Table Spacing
Source: https://github.com/emailmonday/cerberus/blob/main/cerberus-fluid.html
Stops Outlook from adding extra spacing to tables by resetting specific table and cell spacing properties.
```css
table, td {
mso-table-lspace: 0pt !important;
mso-table-rspace: 0pt !important;
}
```
=== COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.