/    Sign up×
Community /Pin to ProfileBookmark

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?

to post a comment

14 Comments(s)

Copy linkTweet thisAlerts:
@NogDogJul 21.2021 — It's very, very difficult to debug without seeing the relevant code/mark-up.
Copy linkTweet thisAlerts:
@Mally101authorJul 21.2021 — @NogDog#1634476 Ok, I'll update it.
<i>
</i>&lt;!DOCTYPE html&gt;
&lt;html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:o="urn:schemas-microsoft-com:office:office"&gt;
&lt;head&gt;
&lt;meta charset="UTF-8"&gt;
&lt;meta name="viewport" content="width=device-width,initial-scale=1"&gt;
&lt;meta name="x-apple-disable-message-reformatting"&gt;
&lt;title&gt;Target Promo&lt;/title&gt;
&lt;!--[if mso]&gt;
&lt;noscript&gt;
&lt;xml&gt;
&lt;o:OfficeDocumentSettings&gt;
&lt;o:PixelsPerInch&gt;96&lt;/o:PixelsPerInch&gt;
&lt;/o:OfficeDocumentSettings&gt;
&lt;/xml&gt;
&lt;/noscript&gt;
&lt;![endif]--&gt;
&lt;style&gt;
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>
&lt;!-- DESKTOP MEDIA QUERY --&gt;
@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> &lt;!-- END --&gt;
<i> </i> <br/>
<i> </i>
&lt;!-- HANDHELD DEVICES MEDIA QUERY --&gt;
@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> &lt;!-- END --&gt;
<i> </i>
<i> </i>
<i> </i>&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;!-- START OF MAIN TABLE --&gt;
&lt;table width="100%" border="0"&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;!-- START 600PX TABLE --&gt;
&lt;table class="main-table" style="width:600;align:center;border:0;"&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;!-- START OF GREY TABLE --&gt;
&lt;table class="grey" style="padding:15px;10px;width=100%;height:auto;text-align:center;background-color:#d3d3d3;"&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;a style="padding:10px;text-decoration:none;"href="https://www.target.com/c/top-deals/-/N-4xw74?ref=tgt_email_HNA107091N&amp;emseq=923553565436514503&amp;elnk=||||||&amp;j=177215&amp;sfmc_sub=269912306&amp;l=48_HTML&amp;u=118740506&amp;mid=7284872&amp;jb=9237&amp;sfir=981956"&gt;Top Deals&lt;/a&gt;
&lt;a style="padding:10px;text-decoration:none;" href="https://www.target.com/finds?ref=tgt_email_HNA107091N&amp;emseq=923553565436514503&amp;elnk=||||||&amp;j=177215&amp;sfmc_sub=269912306&amp;l=48_HTML&amp;u=118740507&amp;mid=7284872&amp;jb=9237&amp;sfir=981956"&gt;Target Finds&lt;/a&gt;
&lt;a style="padding:10px;text-decoration:none;" href="https://www.target.com/circle/dashboard?ref=tgt_email_HNA107091N&amp;emseq=923553565436514503&amp;elnk=||||||&amp;j=177215&amp;sfmc_sub=269912306&amp;l=48_HTML&amp;u=118740509&amp;mid=7284872&amp;jb=9237&amp;sfir=981956"&gt;Target Circle&lt;/a&gt;
<br/>
<i> </i> &lt;/td&gt;
<i> </i> &lt;/tr&gt;
<i> </i> &lt;!-- END OF GREY TABLE --&gt;
<i> </i> &lt;/table&gt;
<i> </i>
<i> </i> &lt;!-- START OF YELLOW TABLE --&gt;
<i> </i>
<i> </i> &lt;table class="yellow"style="width=100%;height:auto;padding:10px 0;"&gt;
<i> </i> &lt;tr&gt;
<i> </i>
<i> </i> &lt;td style="padding:20px;60px;height:auto;width:100%;height:auto;text-align:center;background-color:#e8e46e;"&gt;
<i> </i>
<i> </i> &lt;p style="margin:0px;width:100%;height:auto;"&gt;&lt;strong&gt;Ready for summer?&lt;/strong&gt;&lt;/p&gt;
<i> </i> &lt;p style="margin:0px;"&gt;Explore the&lt;strong&gt; Hearth &amp; Hand with Magnolia&lt;/strong&gt;&lt;/p&gt;
<i> </i> &lt;p style="margin:0px;"&gt;summer collection featuring comfy outdoor tops and dresses.&lt;/p&gt;
<i> </i>
<i> </i>
<i> </i> &lt;/td&gt;
<i> </i> &lt;/tr&gt;
<i> </i> &lt;!-- END OF YELLOW TABLE --&gt;
<i> </i> &lt;/table&gt;
<i> </i>
<i> </i> &lt;!-- START OF 1ST PICTURE TABLE --&gt;
<i> </i> &lt;table class="picture" style="width:100%;height:auto;text-align:block;"&gt;
<i> </i> &lt;tr&gt;
<i> </i>
<i> </i> &lt;td&gt;
<i> </i>
<i> </i> &lt;img style="width:100%;height:auto;" src="https://target.scene7.com/is/image/Target/GUEST_471bb8ff-7937-4b41-b849-25bb5ae376c2?wid=488&amp;hei=488&amp;fmt=pjpeg" alt="Girl in Bob Marley Top"&gt;
<i> </i>
<i> </i>
<i> </i> &lt;/td&gt;
<i> </i> &lt;/tr&gt;
<i> </i>
<i> </i>
<i> </i> &lt;!-- END OF 1ST PICTURE TABLE --&gt;
<i> </i> &lt;/table&gt;
<i> </i>
<i> </i> &lt;!-- START RED BAR TABLE --&gt;
<i> </i> &lt;table class="red-bar" style="padding:20px;40px;background-color:#ff0000;"&gt;
<i> </i> &lt;tr&gt;
<i> </i> &lt;td&gt;
<i> </i> &lt;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&amp;parentcat=Promotions+%26+Coupons&amp;searchQuery=search+help&amp;ref=tgt_email_HNA107091N&amp;emseq=923553565436514503&amp;link=offerdetails&amp;elnk=traditional|email||||Footer|2020_Simplified_Footer_B&amp;j=177215&amp;sfmc_sub=269912306&amp;l=48_HTML&amp;u=118741299&amp;mid=7284872&amp;jb=9237&amp;sfir=993989"&gt;*See the full details of all deals.
<i> </i> Some restrictions apply.&lt;/a&gt;
<i> </i>
<i> </i> &lt;/td&gt;
<i> </i> &lt;td style="text-align:right;"&gt;
<i> </i> &lt;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&amp;parentcat=Promotions+%26+Coupons&amp;searchQuery=search+help&amp;ref=tgt_email_HNA107091N&amp;emseq=923553565436514503&amp;link=offerdetails&amp;elnk=traditional|email||||Footer|2020_Simplified_Footer_B&amp;j=177215&amp;sfmc_sub=269912306&amp;l=48_HTML&amp;u=118741618&amp;mid=7284872&amp;jb=9237&amp;sfir=993989"&gt;Offer Details&lt;/a&gt;
<i> </i> &lt;/td&gt;
<i> </i> &lt;/tr&gt;
<i> </i> &lt;!-- END RED BAR TABLE --&gt;
<i> </i> &lt;/table&gt;
<i> </i>
<i> </i> &lt;!-- START OF INFORMATION TABLE --&gt;
<i> </i> &lt;table class="information" style="width:100%;height:auto;text-align:block;margin:0;"&gt;
<i> </i> &lt;tr style="font-family:Montserrat,sans-serif;font-size:12px;"&gt;
<i> </i> &lt;td&gt;
<i> </i>
<i> </i> &lt;p style="margin:10px;font-weight:bold"&gt;Okay, so here’s the fine print:&lt;/p&gt;

&lt;p style="margin:10px;"&gt;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.&lt;/p&gt;

&lt;p style="margin:10px;"&gt;¹Target Circle™: Restrictions apply. See Target.com/circle for program rules.Target.com/circle for details.&lt;/p&gt;

&lt;p style="margin:10px;"&gt;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.&lt;/p&gt;

&lt;p style="margin:10px;"&gt;Community Support: Earn votes to help direct where Target gives in your community. See Target.com/circle for details.&lt;/p&gt;

&lt;p style="margin:10px;"&gt;²RedCard™: Some restrictions apply. See program rules in store or on Target.com/RedCard for details.&lt;/p&gt;

&lt;p style="margin:10px;"&gt;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.&lt;/p&gt;

&lt;p style="margin:10px;"&gt;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 ›&lt;/p&gt;

&lt;p style="margin:10px;"&gt;For messages containing gift card offers: Gift card on select items with purchase. Terms and conditions apply to gift cards. Offer details ›&lt;/p&gt;

&lt;p style="margin:10px;"&gt;©2021 Target.com. Target and the Bullseye Design are registered trademarks of Target Brands, Inc.&lt;/p&gt;
<br/>

<i> </i> &lt;/p&gt;
<i> </i>
<i> </i> &lt;/td&gt;
<i> </i> &lt;/tr&gt;
<i> </i> &lt;!-- END OF INFORMATION TABLE --&gt;
<i> </i> &lt;/table&gt;
<i> </i>
<i> </i> &lt;!-- START OF FOOTER TABLE --&gt;
<i> </i> &lt;table class="footer" style="padding:10px;60px;height:auto;width:100%;height:auto;background-color:#a52a2a"&gt;
<i> </i> &lt;tr&gt;
<i> </i> &lt;td&gt;
<i> </i> &lt;img src="" alt="Target_Logo"&gt;
<i> </i>
<i> </i> &lt;/td&gt;
<i> </i>
<i> </i> &lt;/tr&gt;
<i> </i>
<i> </i> &lt;!-- END OF FOOTER TABLE --&gt;
<i> </i> &lt;/table&gt;
<i> </i>
<i> </i> &lt;!-- END 600PX TABLE --&gt;
<i> </i> &lt;/table&gt;
<i> </i>

<i> </i> &lt;/td&gt;
<i> </i> &lt;/tr&gt;
<i> </i>&lt;!-- END OF MAIN TABLE --&gt;
&lt;/table&gt;
&lt;/body&gt;
&lt;/html&gt;
Copy linkTweet thisAlerts:
@SempervivumJul 21.2021 — Abusing tables for layout purpose is outdated, make yourself familiar with flex layout instead:

https://css-tricks.com/snippets/css/a-guide-to-flexbox/

It will enable you to simplify your HTML a lot and reduce the amount of media queries.
Copy linkTweet thisAlerts:
@daveyerwinJul 21.2021 — @Mally101#1634467

could you give us a link to the "codepen"
Copy linkTweet thisAlerts:
@cootheadJul 21.2021 — Hi there Mally101,

does this help...

[b]Full Page View[/b]

https://codepen.io/coothead/full/oNWGgJY

[b]EditorView[/b]

https://codepen.io/coothead/pen/oNWGgJY

[i]coothead[/i]
Copy linkTweet thisAlerts:
@Mally101authorJul 21.2021 — @coothead#1634496 Thanks for your help. This is actaullt for a HTML email project.
Copy linkTweet thisAlerts:
@Mally101authorJul 21.2021 — @Sempervivum#1634480 Hey, I didn't specify but this is for HTML Emails.
Copy linkTweet thisAlerts:
@Mally101authorJul 21.2021 — @DaveyErwin#1634491 This project is for HTML Emails. https://codepen.io/mallewis1/pen/KKmdOBY?editors=1000
Copy linkTweet thisAlerts:
@daveyerwinJul 21.2021 — @Mally101#1634467 said ...

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 could not duplicate your results

on codepen, on mydesktop and at unitedriverside.com/mally

they are all responsive and all the same ?
Copy linkTweet thisAlerts:
@cootheadJul 21.2021 — Hi there Mally101

> This is actually for an HTML email project.

That is not really a good idea as HTML emails,

unfortunately ,tend to rely on 20th rather

than 21st century methodology.

This is how your code appears on [b]Gmail[/b] for

instance...

![](https://www.coothead.co.uk/images/Gmail.jpg)

A better way to interact with your users would be

to just provide brief information with links to your

relevant pages in the email.

[i]coothead[/i]
Copy linkTweet thisAlerts:
@Mally101authorJul 21.2021 — @coothead#1634507 Thank you.
Copy linkTweet thisAlerts:
@cootheadJul 21.2021 — > @Mally101#1634513
>
> Thank you


No problem, you're very welcome.:)

[i]coothead[/i]
Copy linkTweet thisAlerts:
@cbdoilskincareJul 23.2021 — CodePen is a social development environment for front-end designers and developers. Build and deploy a website, show off your work, build test cases to learn and debug, and find inspiration.

Here you can know that how to [buy gabapentin online USA](https://cbdoilskincare.us/buy-gabapentin-online-usa/). This medication is used to treat nerve pain. This type of nerve pain is called neuropathic pain. Gabapentin can be used as an anti-seizure medication to prevent and control seizures. It can also be used off-label to treat restless leg syndrome and social anxiety disorder. Moreover, it can also be used off-label to treat alcohol use disorder and alcohol withdrawal and here are some other off-label uses.
Copy linkTweet thisAlerts:
@Abraham_IsJul 26.2021 — @DaveyErwin#1634506

Hey, first of all, your website should be responsive if its not opening in the firefox screen according to the screen size than you may follow these guidelines

From the Firefox menu: Select Responsive Design Mode from the Web Developer submenu in the Firefox Menu (or Tools menu if you display the menu bar or are on macOS).

From the Developer Tools toolbox: Press the Responsive Design Mode button in the Toolbox's toolbar

From the keyboard: Press Ctrl + Shift + M (or Cmd + Opt + M on macOS).
×

Success!

Help @Mally101 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...