Make your website responsive?

How can you make an existing website made up of HTML, CSS, and JS responsive? So that it adapts to every device and looks good everywhere? And what pixel size should you use? There are different screen and mobile phone sizes.

(1 votes)
Loading...

Similar Posts

Subscribe
Notify of
5 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
BeamerBen
1 year ago

This is difficult to answer on a flat-rate basis, but later making responsive is not always easy.

The simplest option would probably be to make the side adaptive via CSS Media Queries later.

The difference; with a responsive design, it’s about building up its page so that it adapts dynamically to the screen. With adaptive, you will first specify fixed sizes that match the layout.

You can then focus on making the setup usable on mobile & smaller devices instead of changing the structure of the page, which is definitely more difficult – but should also remain in the back of the head.

With JavaScript, only testing helps how the page behaves with touch input. And hopefully, you have separated HTML, JS and CSS in a sensible way so that you only have to adjust the CSS code.

Sensual boundaries from when to change the layout, in pixels, are about 1024px, and so around the 600px. Definitely important to try to open your page only on half screen. Otherwise, in all good browsers you will find developer tools that show you the page in the format of known devices. In reality, pixels are no longer necessarily fixed pixels on the device, but this is another topic.

Look at these pages:

https://www.w3schools.com/css/css_rwd_mediaqueries.asp

https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Responsive_Design

medmonk
1 year ago

To make and implement a website responsive, several components should be taken into account. This includes the design of a layout as well as the choice of technologies as well as the techniques used in the actual development. There are different ways, sometimes with and without Media Queries as well as the choice between an adaptive or fluid layout.

And what pixel size do you take?

In responsive implementation, no fixed values such as pixels are used, but rather flexible units such as percent, EM and REM are used. Especially since pixels alone would be problematic with regard to the different pixel density. In addition to the choice of the “right” unit, it always depends on the individual side structure and the different elements, how to format, position and align them so that they are truly responsive.

You should therefore use Flexbox and CSS Grid, among other things, to know how to arrange modern layouts with elements. Get to know different layout types in which you familiarize yourself with adaptive and fluid solution approaches and understand their differences. Join CSS Media Queries and Container Queries. These are basically the main best parts to implement a page responsive.

In CSS there are now variables and functions such as clamp() and calc(), which can also be helpful depending on the application. To develop a page or app responsive, frameworks and grids such as Bootstrap, Foundation, Skeleton, etc. can also take a lot of work. As a laie or Beginners will be able to achieve a useful result more quickly. However, I would advise you to deal with the subject fundamentally.

LG medmonk

lucieartes
1 year ago

Create HTML/CSS from scratch or from scratch.

It’s hard to say without seeing the side.

guterfrager5
1 year ago
Reply to  lucieartes

well, you can generally say that you should not use absolute units for all percentages. So, for example, not 700px for a wrapper (if you still do this in a responsive design) but 80% or the font size is not 16px but 1em (or smaller, x-small, large, x-large etc.)

verreisterNutzer
1 year ago

Just use Bootstrap. But then you have to rebuild everything.