How to Make a Website Responsive

When designing your website, it’s critical to consider how it will appear on a variety of devices, regardless of screen size and configuration. Responsive websites are designed to look good on a wide range of modern devices, including computers, phones, tablets, televisions, wearables, and even car screens. They are also easy to navigate and use. For a website to be responsive, you’ll need to make changes to its CSS and HTML code so that it can automatically resize its elements in response to specific conditions. This emindsca teaches you how to plan and implement a basic responsive web design from start to completion.

Method 1 Planning Responsive Design

1. Find out how your target audience interacts with your website. These days, mobile phones and tablets are used by the vast majority of people to access the internet and conduct online transactions. The ability to display properly no matter where a website is viewed is essential for it to be considered responsive. To save time and money, focus on the types of devices that your users prefer to use (if this information is available) and how they interact with your website if you are short on time and money. Find out, either through your analytics software or through some other form of research, what kinds of devices they use to view the website the most frequently, paying particular attention to mobile phone/tablet/computer brands and screen/resolution sizes, for example.

What are the most popular web browsers among your users? According to global statistics, Google Chrome is the most popular web browser on the planet, with Safari coming in a close second.

How your visitors interact with your website, such as how much time they spend on it, where they are viewing it, and which content is most popular, are all important metrics to track. This can assist you in determining which types of content are essential to include and which can be omitted from your document.

2. Create a variety of layouts to accommodate different devices. Use a combination of CSS and JavaScript to detect a user’s device and its capabilities (including whether it supports Java, Flash, and other technologies), and then display a customised version of your site to that user based on their device and capabilities. For determining the size/resolution of a device, CSS Media Queries are particularly useful.

3. Take into consideration the various types of interactions. Your website visitor could be interacting with your website using a variety of devices, including a mouse, a keyboard, a touchscreen, or even a screen-reader for visually impaired individuals. This means your website should respond to mouse clicks, keyboard keys (such as Tab, Enter, Return, and so on), and screen finger-touches (if applicable).

Except for a mouse, hover-over effects do not function with any other device. You could, instead of relying on these effects, ask the visitor to click on a button or icon to bring up whatever was previously displayed on a mouse hover.

4. Take into consideration the use of a Content Management System (CMS). Using a content management system (CMS) with a responsive theme pre-installed is a simple way to ensure that your site design is responsive. Using a content management system (CMS) such as Joomla, Drupal, or WordPress, you can ensure that your website looks great on all devices without having to code the responsive elements yourself. Check with your webhosting provider to see which content management systems (CMS) are included with your service.

5. To test your website, make use of online tools. In light of the growing popularity of responsive web design, there are a number of free tools available to help you test your website’s functionality. If you’ve already coded your website, you can use the following tools to see how it looks in different situations so you can determine where you need to make improvements to make it more responsive:

Google conducts a mobile-friendliness test: This tool will tell you whether your website is as functional on mobile devices as it is on computer screens..

resizeMyBrowser: This extension allows you to view your website in various resolutions.

It displays your site on different device screens and in different layouts, which is called a responsive design (sideways or right-side-up).

Method 2 Making the Page Layout Responsive

1. You might want to look into a free responsive style sheet framework. In web development, a framework is a pre-written set of HTML, CSS, and/or JavaScript that you can use as the skeleton for your website. Everything is already tested and optimised to work with all browsers, so all you’ll have to do is insert your content, add media and customise the colours and fonts on your site before it goes live. The following are examples of popular frameworks:

2. A meta tag can be used to specify the viewport. The Viewport is the most important aspect of coding a responsive website if you are not using a framework. If you aren’t using a framework, you should start with the Viewport. The viewport refers to the portion of a website that is visible to the user while browsing it. The most important step in ensuring that your site displays properly on any screen size is to scale the viewport size within the META tag. In order to accomplish this, include the following tag at the top of each page on the site:

<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>

3. Provide a measurement for the text size in relation to the viewport. Once your viewport has been defined, the text on your page will scale to fit the available space on the screen. Unless the font sizes are specified in relation to the viewport, however, the fonts may appear too large or too small when viewed in the browser. This can be accomplished by specifying the font size as a specific percentage of the viewport using the vw unit of measurement. This example instructs the H1 headers to display at a width of 10% of the viewport’s width, regardless of the size of the viewport:

<h1 style=”font-size:10vw”>eminda</h1>

4. Media queries can be used to display different styles for different screen sizes depending on the device being used. Media queries allow you to specify whether or not certain CSS elements should be displayed depending on the screen size. When writing your CSS file, make sure to include the specifics of your media query. If the user’s screen size is 480px or larger, the background colour of the body will change to red as shown in this example:

<h1 style=”font-size:10vw”>emindsca</h1>

@media screen and (min-width: 480px) {  

    body {    

        background-color: aqua;  



Method 3 Making Images Responsive

1. To scale images, make use of the CSS width property. To avoid the image being stretched to a specific number of pixels (for example, 500px), use a percentage (for example, 100 percent) to ensure that the image checks its parent image’s width before stretching. When the width of an image is set to 100 percent, the image is forced to scale up and down in response to the size of the viewer’s computer screen. To do this in-line, follow these steps:

<img src=”img.jpg” style=”width:100%;”>

2. The max-width property can be used to restrict the amount of scaling that can be done to the image’s actual size. If you use the width property in the previous step to scale an image to 100 percent, the image will grow or shrink to fit 100 percent of its container, regardless of the size of the container in question. If the image is too small, it will scale up to a larger size than its original size and appear of lower quality as a result of the scaling. To avoid this from happening, use the max-width property to set the image’s maximum scaling size to 100 percent before uploading it (its actual size). Here’s how it’s done:

<img src=”img.jpg” style=”max-width:100%;height:auto;”>

3. Display different images on different screen sizes by utilising the HTML picture element in your HTML code. Create custom-sized images that will display on a variety of screen sizes by specifying which photos to display in your HTML code if you want to display images on different-sized screens. Create the various-sized images, and then use the following code as an example of how to specify which image to use on 600px and 1500px wide screens:


  <source srcset=”img_small.jpg” media=”(max-width: 600px)”>

  <source srcset=”img_regular.jpg” media=”(max-width: 1500px)”>

  <source srcset=”img.jpg”>

  <img src=”img_small.jpg” alt=”Your alt text here”>


Creative Commons License

Visit for: |  Auto  |  Games  |  Health  |  How To  |  Latest Review  |  News  |  Sports   |  Tech  |  Outsourcing  |