Responsive Web Design
Devices are getting smaller every day. Responsive web design is important because it automatically adjusts for different screen sizes and viewports, improving user experience.
There are three main points of Responsive Web Design:
· Flexible, grid-based layout: The items become flexible when adding grids in HTML file. The columns are adjusted automatically to fit the size of the screen or browser window.
· Flexible images and media: The purpose of using flexible images is to use the same content, only bigger or smaller depending on the screen size. The width of a container div should be expressed as a percentage.
#container {
Width:90%;
}
· Media queries: If we only change the container's width, our code will start to break down once we view it on the smaller screens. Media queries allow us to write CSS that targets specific media sizes doing an if statement in CSS.
@media screen and (min-width: 1024px) {
#content{
width:50%;
}
}
Sidebars are usually tricky when it comes to mobile or smaller screens. Eliminating sidebars is an excellent way to prevent confusion and breakdowns. Long-scrolling pages are also a good option for mobile-friendly design.
Since we're designing for smaller screens, there should be limitations in design elements. There should be only essential elements such as navigation or search box.
Like Dieter Rams said;
"Good design is as little design as possible."
The best advantage of responsive design is; if everything makes sense on a mobile screen, such as graphics, written content, and navigation, then it'll make sense on larger devices.
Image reference:
https://mediaqueri.es/












