Giter VIP home page Giter VIP logo

email-box-shadow-alternative's Introduction

Email-Box-Shadow-Alternative

A straightforward and seemingly cross-browser solution to add a psuedo box-shadow to HTML Emails. Getting email templates working stylistically cross-device/browser can be a challenge, so this is a solution to one type of common CSS3 style that won't work on most clients. https://codepen.io/brennanrome/pen/QqQqqa

Instructions

  1. Create the desired box-shadow in photoshop including transparency and save it as a png.
  2. Upload your file to your hosting and include the path as the background in the table cell.
  3. Set the height to match your png height to avoid vertical repeating tiles.
  4. Set the bgcolor to match the background color that the shadow is to fade into.

<td bgcolor="#363639" height="8" background="header-shadow.png"></td>

Additional Requirements

  • The will need to have no margin, padding, or border between the two elements that you want to connect.
  • The box-shadow will tile horizontally by default, but can be constrained if desired.

Compatability

Tested in Litmus and working on

  • G Suite (Chrome, Explorer, Firefox)
  • Gmail (Chrome, Explorer, Firefox)
  • Inbox by Gmail (Chrome, Explorer, Firefox)
  • Apple Mail 10, 9
  • Outlook (OSX)
  • Thunderbird 52 (Windows 7)
  • Android 4.4
  • Gmail App (Android 6)
  • iPad (Retina), iPad Mini (iOS 10.3.2)
  • iPhone iOS 7, 8, 9
  • AOL Mail

Not working on

  • Outlook (Windows 7)
  • Windows 10 Mail

Feel free to add additional compatability notes, or make suggestions to improve usability or compatability!

email-box-shadow-alternative's People

Contributors

bbutler522 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.