Table of Contents
Responsive design vs adaptive design
Content Flow
Relative units
Breakpoint
Maximum and minimum values ​​
Nested Objects
Mobile first or desktop first
Web Fonts vs System Fonts
Bitmap vs Vector
Home Web Front-end HTML Tutorial 9 basic principles of responsive WEB design_html/css_WEB-ITnose

9 basic principles of responsive WEB design_html/css_WEB-ITnose

Jun 24, 2016 am 11:53 AM

Responsive Web design is a good solution to solve the problem of multiple types of screens, but from a printing perspective, it has many difficulties. There are no fixed page sizes, no millimeters or inches, no physical limitations that can feel overwhelming. With the increasing number of gadgets available for building websites, the limitation of pixel design to desktop and mobile devices has become a thing of the past. So, now let’s explain how to apply the basic principles of responsive web design to achieve, rather than resist, a smooth web experience. For the sake of simplicity, we will focus on layout (of course, responsive design is much more than that, if you want to learn more, you can go here: bradfrost.com).

Responsive design vs adaptive design

Looks like the same but is not. These two design methods complement each other, so there is no right or wrong. The specific situation depends on the content.

Content Flow

As screen sizes get smaller, content takes up more and more vertical space, i.e. , the content will extend downward, which is called content flow. If you're used to designing with pixels and points, you may find this a bit difficult to master. But it doesn’t matter, it’s easy to understand once you get used to it.

Relative units

Your design object may be a desktop desktop, a mobile screen or anything in between Screen type. Pixel densities will also differ from each other, so we need to use units that are flexible and adaptable to various situations. Well in this case, relative units like percentages come in handy. When using percentages, when we say a width of 50%, it means that the width occupies half of the screen size (or viewport, which refers to the size of the open browser window).

Breakpoint

Breakpoint allows the page layout to be deformed at a preset point, that is, display 3 on the desktop columns, only 1 column is displayed on mobile devices. Most CSS properties can be transformed between breakpoints. Where breakpoints are placed usually depends on the content. For example, if a sentence needs to break into a new line, you may need to add a breakpoint. But you need to be careful when using breakpoints. If you can't figure out the logical relationship between the contents, it's easy to make a mess.

Maximum and minimum values ​​

Sometimes content taking up the entire screen width (like on mobile devices) is a good thing, but if the same The content is also full on the TV screen, which seems unreasonable. That's why there are max/min values. For example, if the width is 100% and the maximum width is 1000px, then the content will fill the screen with no more than 1000px width.

Nested Objects

Remember the relative position? If a large number of factors are closely related to each other, it will be difficult to control. Therefore, placing elements into containers makes them more understandable and concise. In this case, static units such as pixels need to be used. Static units are useful for things like logos and buttons that don't need to be extended.

Mobile first or desktop first

Strictly speaking, whether the project starts from small screen to large screen (mobile first), or starts from large screen There is not much difference between starting with a small screen and transitioning to a small screen (desktop first). However, starting on mobile can give you some additional constraints that can help with your decision-making. Usually people will start from both aspects at the same time, so you still have to see which method is best for you.

Web Fonts vs System Fonts

Want your website to have a cool Futura or Didot effect? Then use web fonts. Although web fonts look cool, you have to remember that these fonts require users to download them, and the more fonts there are, the longer it will take for users to load the page. On the other hand, system fonts load much faster (provided the user has them locally), but are too common.

Bitmap vs Vector

Does your icon have a lot of detail and a lot of flashy effects applied? If so, then use bitmaps. If not, consider using vector graphics. If it's a bitmap, use jpg, png or gif. For vector graphics, it’s best to use SVG or icon fonts. Each has its pros and cons. But you should always keep the icon size in mind - images that have not been optimized cannot be uploaded to the Internet. Vector images, on the other hand, are usually smaller, but some older browsers may not support vector images. Also, if the icon has a lot of curves, it may be larger than the bitmap, so choose wisely.

If there is anything missing, please leave a comment!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Is HTML easy to learn for beginners? Is HTML easy to learn for beginners? Apr 07, 2025 am 12:11 AM

HTML is suitable for beginners because it is simple and easy to learn and can quickly see results. 1) The learning curve of HTML is smooth and easy to get started. 2) Just master the basic tags to start creating web pages. 3) High flexibility and can be used in combination with CSS and JavaScript. 4) Rich learning resources and modern tools support the learning process.

The Roles of HTML, CSS, and JavaScript: Core Responsibilities The Roles of HTML, CSS, and JavaScript: Core Responsibilities Apr 08, 2025 pm 07:05 PM

HTML defines the web structure, CSS is responsible for style and layout, and JavaScript gives dynamic interaction. The three perform their duties in web development and jointly build a colorful website.

Understanding HTML, CSS, and JavaScript: A Beginner's Guide Understanding HTML, CSS, and JavaScript: A Beginner's Guide Apr 12, 2025 am 12:02 AM

WebdevelopmentreliesonHTML,CSS,andJavaScript:1)HTMLstructurescontent,2)CSSstylesit,and3)JavaScriptaddsinteractivity,formingthebasisofmodernwebexperiences.

Gitee Pages static website deployment failed: How to troubleshoot and resolve single file 404 errors? Gitee Pages static website deployment failed: How to troubleshoot and resolve single file 404 errors? Apr 04, 2025 pm 11:54 PM

GiteePages static website deployment failed: 404 error troubleshooting and resolution when using Gitee...

What is an example of a starting tag in HTML? What is an example of a starting tag in HTML? Apr 06, 2025 am 12:04 AM

AnexampleofastartingtaginHTMLis,whichbeginsaparagraph.StartingtagsareessentialinHTMLastheyinitiateelements,definetheirtypes,andarecrucialforstructuringwebpagesandconstructingtheDOM.

How to use CSS3 and JavaScript to achieve the effect of scattering and enlarging the surrounding pictures after clicking? How to use CSS3 and JavaScript to achieve the effect of scattering and enlarging the surrounding pictures after clicking? Apr 05, 2025 am 06:15 AM

To achieve the effect of scattering and enlarging the surrounding images after clicking on the image, many web designs need to achieve an interactive effect: click on a certain image to make the surrounding...

HTML, CSS, and JavaScript: Essential Tools for Web Developers HTML, CSS, and JavaScript: Essential Tools for Web Developers Apr 09, 2025 am 12:12 AM

HTML, CSS and JavaScript are the three pillars of web development. 1. HTML defines the web page structure and uses tags such as, etc. 2. CSS controls the web page style, using selectors and attributes such as color, font-size, etc. 3. JavaScript realizes dynamic effects and interaction, through event monitoring and DOM operations.

How to implement adaptive layout of Y-axis position in web annotation? How to implement adaptive layout of Y-axis position in web annotation? Apr 04, 2025 pm 11:30 PM

The Y-axis position adaptive algorithm for web annotation function This article will explore how to implement annotation functions similar to Word documents, especially how to deal with the interval between annotations...

See all articles