Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9193305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:07:50+00:00 2026-06-17T21:07:50+00:00

I am coding HTML newsletter, I have to code one file that once sent

  • 0

I am coding HTML newsletter, I have to code one file that once sent it detects device if it’s smartphone or PC. If PC it shows 600px width and for smartphones it shows 300px width.

So how should I set the width property so that it looks as per the width mentioned above.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T21:07:51+00:00Added an answer on June 17, 2026 at 9:07 pm

    You are looking for CSS Media Queries, here is a basic solution that may suit your needs:

    /* ALL (Fallback), this will be used by browsers that don't support CSS Media Queries  */ 
    #container{width:300px;}
    
    /* Screen more than 600px in width */
    @media only screen and (min-width: 600px){
        #container{width:600px;}
    }
    
    /* Screen less than 600px in width */
    @media only screen and (max-width: 599px) {
        #container{width:300px;}
    }
    

    More examples here: https://github.com/dhgamache/Skeleton/blob/master/stylesheets/skeleton.css#L79

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a coding standard for HTML? Please suggest links that have the coding
I have some HTML errors in my output source code, coming from one of
I'm coding some ActionScript 3 app that needs to request some HTML page and
Recently when coding and HTML email, I noticed that Yahoo! started hijacking certain links
I have the following html coding <select> <option id=koloman selected>Koloman</option> <option id=display selected>Display</option> </select>
I am currently coding a HTML website into wordpress. The problem that i'm having
Ok, so let's say I am coding HTML/CSS template and I see that I
I have a html coding like this: <form> <table class="tabelWhiteJenisPembayaran"> <tbody> <tr> <td><input type="text"
This is the code i used to in coding HTML: <button id=imageshow style=display:none>Button1</button>&nbsp;&nbsp;&nbsp; <button
I'm just starting with coding (HTML and CSS) and I have to create an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.