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 8900033
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:00:21+00:00 2026-06-15T01:00:21+00:00

We currently have a website that isn’t fluid/flexible (as in it doesn’t change its

  • 0

We currently have a website that isn’t fluid/flexible (as in it doesn’t change its layout depending on the viewport size).

When it’s displayed on the desktop, it fills the entire screen (and is center aligned). However, trouble arises when we view it on other screen sizes like on iPhone or an iPad. The website layout looks alright, only that it doesn’t fill the entire screen or somehow gets cut off on the side.

I tried using <meta name="viewport" content="width=[value]">, but it only works for one device at time (iPhone or iPad, but not both at the same time).

Is there one code to scale the website to fit in whichever viewport is being used?

  • 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-15T01:00:23+00:00Added an answer on June 15, 2026 at 1:00 am

    When is comes to responsive design there are many creative ways to approach the issue at hand.

    You could try using percentages to make your Design more responsive. Using percentages is a safe bet for maximizing on the users viewport.

    eg.

    html, body { 
    height: 100%; 
    width: 100%; 
    margin: 0; 
    }
    

    From there you can play with your site containers and go more specific.

    Also some JavaScript in your head section of the HTML can help you detect screen sizes and adjust different CSS rules accordingly:

    <!-- hide script from old browsers
    //<![CDATA[
    
    var windowWidth=screen.availWidth;
    var windowHeight=screen.availHeight
    
    function sniffer() {
    var el=document.getElementById("body"); 
    if(screen.width<=600) {
                   el.style.width='100%';
                   el.style.height= windowHeight;
                   el.style.margin="auto";               
     } 
    }
    onload=sniffer;
    //]]>
    // end hiding script from old browsers -->
    

    The JavaScript above is checking if the user’s screen is smaller or equal to 600px; if so, it adjusts the width, height, margin rules for the body element.

    Hope this helps!

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

Sidebar

Related Questions

I currently have a website that I am trying to optimize in terms of
We currently have a tool on our website that is created by JavaScript. The
I have a website that I'm making that needs a background resizer. Currently, I
I have a (currently very simple) website that is utilising Facebook's Website with Facebook
I currently have a news website setup in PHP/MYSQL that's a bit old and
I am currently working on a website that will have a high volume of
I'm working on a website that hosts music, pictures, and videos. I currently have
I currently have a website (ASP.NET 3.5, IIS 7.0) that allows users to upload
I currently have a Rails website that has some Prototype scripting in it. My
I have a busy photo website that is currently making a new page request

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.