Menu
Hello everyone! My codepen project is responsive on the codepen platform and I also uploaded the code to VS CODE but when I opened it in firefox, it’s not responsive. Do you know why this is happening?
<i>
</i><!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="x-apple-disable-message-reformatting">
<title>Target Promo</title>
<!--[if mso]>
<noscript>
<xml>
<o:OfficeDocumentSettings>
<o:PixelsPerInch>96</o:PixelsPerInch>
</o:OfficeDocumentSettings>
</xml>
</noscript>
<![endif]-->
<style>
table, td, div, h1, p {font-family: Arial, sans-serif;}
table, td {border:0px solid#000000!important;width:600px;height:auto;center;}
<br/>
<i> </i>
<!-- DESKTOP MEDIA QUERY -->
@media screen and (max-width: 800px) {
.main-table {
flex: 100% !important;
max-width: 100% !important;
}
}
@media screen and (max-width: 800px) {
.grey {
flex: 100% !important;
max-width: 100% !important;
}
}
@media screen and (max-width: 800px) {
.yellow{
flex: 50% !important;
max-width: 50% !important;
}
}
@media screen and (max-width: 800px) {
.red-bar {
flex: 100% !important;
max-width: 100% !important;
}
}
<br/>
<i> </i> <!-- END -->
<i> </i> <br/>
<i> </i>
<!-- HANDHELD DEVICES MEDIA QUERY -->
@media screen and (max-width: 600px) {
.main-table {
flex: 100% !important;
max-width: 100% !important;
}
}
<br/>
@media screen and (max-width: 600px) {
.grey {
flex: 50% !important;
max-width: 50% !important;
<br/>
}
} <br/>
@media screen and (max-width: 600px) {
.yellow{
flex: 50% !important;
max-width: 50% !important;
}
}
<br/>
<i> </i> @media screen and (max-width: 600px) {
.picture{
flex: 50% !important;
max-width: 50% !important;
<br/>
}
}
<br/>
<i> </i> @media screen and (max-width: 600px) {
.red-bar{
flex: 50% !important;
max-width: 50% !important;
padding: 5px !important;
}
}
<br/>
<i> </i>
<i> </i> @media screen and (max-width: 600px) {
.information {
flex: 50% !important;
max-width: 50% !important;
}
}
@media screen and (max-width: 600px) {
.footer {
flex: 50% !important;
max-width: 50% !important;
}
}
<br/>
<i> </i> <!-- END -->
<i> </i>
<i> </i>
<i> </i></style>
</head>
<body>
<!-- START OF MAIN TABLE -->
<table width="100%" border="0">
<tr>
<td>
<!-- START 600PX TABLE -->
<table class="main-table" style="width:600;align:center;border:0;">
<tr>
<td>
<!-- START OF GREY TABLE -->
<table class="grey" style="padding:15px;10px;width=100%;height:auto;text-align:center;background-color:#d3d3d3;">
<tr>
<td>
<a style="padding:10px;text-decoration:none;"href="https://www.target.com/c/top-deals/-/N-4xw74?ref=tgt_email_HNA107091N&emseq=923553565436514503&elnk=||||||&j=177215&sfmc_sub=269912306&l=48_HTML&u=118740506&mid=7284872&jb=9237&sfir=981956">Top Deals</a>
<a style="padding:10px;text-decoration:none;" href="https://www.target.com/finds?ref=tgt_email_HNA107091N&emseq=923553565436514503&elnk=||||||&j=177215&sfmc_sub=269912306&l=48_HTML&u=118740507&mid=7284872&jb=9237&sfir=981956">Target Finds</a>
<a style="padding:10px;text-decoration:none;" href="https://www.target.com/circle/dashboard?ref=tgt_email_HNA107091N&emseq=923553565436514503&elnk=||||||&j=177215&sfmc_sub=269912306&l=48_HTML&u=118740509&mid=7284872&jb=9237&sfir=981956">Target Circle</a>
<br/>
<i> </i> </td>
<i> </i> </tr>
<i> </i> <!-- END OF GREY TABLE -->
<i> </i> </table>
<i> </i>
<i> </i> <!-- START OF YELLOW TABLE -->
<i> </i>
<i> </i> <table class="yellow"style="width=100%;height:auto;padding:10px 0;">
<i> </i> <tr>
<i> </i>
<i> </i> <td style="padding:20px;60px;height:auto;width:100%;height:auto;text-align:center;background-color:#e8e46e;">
<i> </i>
<i> </i> <p style="margin:0px;width:100%;height:auto;"><strong>Ready for summer?</strong></p>
<i> </i> <p style="margin:0px;">Explore the<strong> Hearth & Hand with Magnolia</strong></p>
<i> </i> <p style="margin:0px;">summer collection featuring comfy outdoor tops and dresses.</p>
<i> </i>
<i> </i>
<i> </i> </td>
<i> </i> </tr>
<i> </i> <!-- END OF YELLOW TABLE -->
<i> </i> </table>
<i> </i>
<i> </i> <!-- START OF 1ST PICTURE TABLE -->
<i> </i> <table class="picture" style="width:100%;height:auto;text-align:block;">
<i> </i> <tr>
<i> </i>
<i> </i> <td>
<i> </i>
<i> </i> <img style="width:100%;height:auto;" src="https://target.scene7.com/is/image/Target/GUEST_471bb8ff-7937-4b41-b849-25bb5ae376c2?wid=488&hei=488&fmt=pjpeg" alt="Girl in Bob Marley Top">
<i> </i>
<i> </i>
<i> </i> </td>
<i> </i> </tr>
<i> </i>
<i> </i>
<i> </i> <!-- END OF 1ST PICTURE TABLE -->
<i> </i> </table>
<i> </i>
<i> </i> <!-- START RED BAR TABLE -->
<i> </i> <table class="red-bar" style="padding:20px;40px;background-color:#ff0000;">
<i> </i> <tr>
<i> </i> <td>
<i> </i> <a style="text-decoration:none;color:#ffffff;font-family:Montserrat,sans-serif;font-size:12px;"href="https://help.target.com/help/subcategoryarticle?childcat=Current+promotions&parentcat=Promotions+%26+Coupons&searchQuery=search+help&ref=tgt_email_HNA107091N&emseq=923553565436514503&link=offerdetails&elnk=traditional|email||||Footer|2020_Simplified_Footer_B&j=177215&sfmc_sub=269912306&l=48_HTML&u=118741299&mid=7284872&jb=9237&sfir=993989">*See the full details of all deals.
<i> </i> Some restrictions apply.</a>
<i> </i>
<i> </i> </td>
<i> </i> <td style="text-align:right;">
<i> </i> <a style="border-style:solid;padding:10px;5px;text-decoration:none;color:#ffffff;font-family:Montserrat,sans-serif;font-size:12px;" href="https://help.target.com/help/subcategoryarticle?childcat=Current+promotions&parentcat=Promotions+%26+Coupons&searchQuery=search+help&ref=tgt_email_HNA107091N&emseq=923553565436514503&link=offerdetails&elnk=traditional|email||||Footer|2020_Simplified_Footer_B&j=177215&sfmc_sub=269912306&l=48_HTML&u=118741618&mid=7284872&jb=9237&sfir=993989">Offer Details</a>
<i> </i> </td>
<i> </i> </tr>
<i> </i> <!-- END RED BAR TABLE -->
<i> </i> </table>
<i> </i>
<i> </i> <!-- START OF INFORMATION TABLE -->
<i> </i> <table class="information" style="width:100%;height:auto;text-align:block;margin:0;">
<i> </i> <tr style="font-family:Montserrat,sans-serif;font-size:12px;">
<i> </i> <td>
<i> </i>
<i> </i> <p style="margin:10px;font-weight:bold">Okay, so here’s the fine print:</p>
<p style="margin:10px;">Promotions valid Sunday–Saturday unless otherwise stated. Pricing, promotions, and availability may vary by location and online. Descriptive, typographic and photographic errors are subject to correction and Target shall have no liability for such errors.</p>
<p style="margin:10px;">¹Target Circle™: Restrictions apply. See Target.com/circle for program rules.Target.com/circle for details.</p>
<p style="margin:10px;">1% Earnings: Terms and restrictions apply to the 1% reward. Target Circle Earnings rewards will expire if you have not earned or redeemed any Target Circle Earnings rewards for one year. See Target.com/circle for details.</p>
<p style="margin:10px;">Community Support: Earn votes to help direct where Target gives in your community. See Target.com/circle for details.</p>
<p style="margin:10px;">²RedCard™: Some restrictions apply. See program rules in store or on Target.com/RedCard for details.</p>
<p style="margin:10px;">RedCard™: Target Debit Card, Target Credit Card, and Target™ MasterCard©. Subject to application approval (Target MasterCard not available to new applicants). The RedCard credit cards (Target Credit Card and Target MasterCard) are issued by TD Bank USA, N.A. The RedCard debit card is issued by Target Corporation. MasterCard is a registered trademark of MasterCard International, Inc. Pat 7,562,048 and 8,117,118.</p>
<p style="margin:10px;">For messages containing promotional codes: Discount applied at checkout with valid promotion code. Discount not applicable to gift wrap, tax or shipping and handling charges. May not be applied to previous orders. Exclusions may apply. Offer details ›</p>
<p style="margin:10px;">For messages containing gift card offers: Gift card on select items with purchase. Terms and conditions apply to gift cards. Offer details ›</p>
<p style="margin:10px;">©2021 Target.com. Target and the Bullseye Design are registered trademarks of Target Brands, Inc.</p>
<br/>
<i> </i> </p>
<i> </i>
<i> </i> </td>
<i> </i> </tr>
<i> </i> <!-- END OF INFORMATION TABLE -->
<i> </i> </table>
<i> </i>
<i> </i> <!-- START OF FOOTER TABLE -->
<i> </i> <table class="footer" style="padding:10px;60px;height:auto;width:100%;height:auto;background-color:#a52a2a">
<i> </i> <tr>
<i> </i> <td>
<i> </i> <img src="" alt="Target_Logo">
<i> </i>
<i> </i> </td>
<i> </i>
<i> </i> </tr>
<i> </i>
<i> </i> <!-- END OF FOOTER TABLE -->
<i> </i> </table>
<i> </i>
<i> </i> <!-- END 600PX TABLE -->
<i> </i> </table>
<i> </i>
<i> </i> </td>
<i> </i> </tr>
<i> </i><!-- END OF MAIN TABLE -->
</table>
</body>
</html>
> This is actually for an HTML email project.
>@Mally101#1634513
>
> Thank you
0.1.9 — BETA 4.20