Join Chris Converse for an in-depth discussion in this video Adding CSS media queries to your HTML email, part of Creating a Responsive HTML Email.
Now we're going to add some CSS into our HTML email.…So let's scroll up to the top.…Now, in the document we're all starting from, we…have the style element up in the heading area.…Let's hit a few returns. Let's first add our CSS3 @media queries.…So let's start with @media only screen and in parentheses…we're going to put max dash width colon 660 pixels,…beginning and ending bracket.…
That's going to be our medium screen, and then next lets add media.…Only screen and, and then we're going to…set max width of 510, inside our parentheses.…And then our beginning and ending bracket.…Now since we're not adding a min width, any rules that…we assign inside of 660 will also be triggered inside of 510.…And all of the elements and in line styles on the HTML…in general will be applied to all three of these as well.…
So for these media queries, we're going to be overriding only what needs…to be changed for medium screens at 660, and small screens at 510.…Now, the first rule we're going to create is…going to be inside of the max width of 660.…
This course was created and produced by Chris Converse. We are honored to host this content in our library.
- Creating the graphics
- Setting up the base layout structure
- Styling the table rows for the headline, banner, etc.
- Creating buttons
- Adding CSS media queries
- Styling the content
- Incorporating animation and web fonts
- Validating your code
- Testing in various email clients
Skill Level Beginner
Q: What are the sizes of the images used in this course?
Q: This course was updated on 11/26/2013. What changed?
A: We added two new movies to Chapter 5, "Adding HTML5 video into HTML email" and "Encoding and embedding base64 images."
Q: This course was updated on 12/03/2014. What changed?
A: We added one bonus movie, "Using high-definition graphics in your HTML email."