Reactive design for WordPress sites is no longer optional, but required. At least, this is because Google’s update algorithm has an adverse impact on sites that are not fully optimized for mobile devices. Google’s algorithm update makes sense. According to comScore, mobile has become the main digital platform, and its total activities on smartphones and tablets account for 60% of the digital media time in the United States. You can use CSS 3 to reverse update your site. Different from other methods (such as the guide bar), CSS 3 is not so complex, and it is much easier to learn and implement. However, the guide bar also has CSS, so it is a style language that beginners and experts can learn and modify. The
In this post, we will learn about the steps required to turn a website into a reactive website using CSS 3. Reactive vs mobile affinity the terms \
Male reactive websites can comfortably view content on a small screen. On the contrary, mobile friendly websites can hardly meet the requirements of viewing on the mobile screen. It also means they don’t respond. For example, a site may be considered mobile friendly when it does not have to scroll left and right to see all the content, but it also means that the entire page and content will shrink. If you do not pick up the touch screen to make the page and content larger, the content cannot be read. The website has mobile affinity and does not have to have user affinity. Reactive or non mobile friendly sites will display standard desktop sites on all mobile devices. The
On a small screen, everything on the page does not fit on the screen, so you must scroll left and right to read everything on the page. This type of site is difficult to use on mobile devices. Mobile incompatible website incompatible users. Ideally, the site should not only be mobile friendly, but also reactive. Fortunately, CSS 3 contains @media rules, which contain fully responsive topics and tools to help create site content@ What are media rules? To use CSS to make a WordPress site reactive, you must use the @media rule. In addition to surrounding other styles, this attribute is used almost the same way as when specifying a normal style with braces, as shown in the following example: The
The loading summary jennimckinnon\/bac72ae5044333fd4fa3e uses this structure. The included elements are the rule @media set by @media. You can define the type of media to display, such as phones and tablets, printers, or screen readers. After you select a media type, you can use an expression to set its value from a sizing perspective. This CSS rule allows you to instruct browsers to display specific content based on the devices used to view the site. That is, you can create a desktop or full version of the site, including the small phone screen that visitors using the device can see and other styles that can be seen on the tablet. The
Reactive sites are compatible with all major browsers and can be easily viewed by everyone. In fact, all major browsers can display @media rules for a long time. The following is an analysis of the first version of each browser that supports this feature: Chrome – 21.0 Sapa
When creating re – 4.0 fire fox-3.5 edge -12.0 Internet Explorer – 9.0 opera -9.0 reactive websites, CSS can do too many things. Start by selecting the media type to create reactive websites. Other screens define the first thing to do: style to ensure safe storage in case an error occurs and the original version needs to be restored. Start by backing up the CSS file. Open the file, enter @media, and then add a media type next to it. The
If you decide not to add anything, all screen types or specific sizes described in the next step will be set to default values. All use all. Other options available for media types include: Screen – all screens are available from mobile phones and tablets to laptops and desktops. Print – for printers. You can use these types of media to create versions of pages for printing. Speech – this media type is used for screen readers to analyze pages and read out text aloud for the blind. You cannot enter the media type before you enter it. In order not to display any screen style, please enter the media, or only enter the media in the custom input style display. If you use one of these, it is no longer optional, so you must also add a media type. The
With all this in mind, you can enter something similar to the following: Load summary jennimckinnon\/629f0269ca342277592e set the style according to the screen size, and then you can more specifically define and define the screen size required for the input style after application. Enter after the media type, and then enter an expression. If multiple expressions are used, they must be separated by and. In this case, to add media functions such as scaling, use an expression and enter between parentheses. After adding the expression, enter braces and add CSS to specify the design style for the defined media type. The
This is how everyone looks when they are together. Load summary jennimckinnon\/a02057198ddd6df27935 in this example, the max width of 1024 pixels is used. That is, set the maximum width to the iPad screen size. This is also a way to define a specific screen size using expressions. Why do you want to do this exactly? You can control how site design and content is viewed on various mobile devices by using one of the following expressions: Max width – displays the maximum size of the media type screen width allowed by the style set in the @media rule. If it is large, the style is not displayed. Min width – opposite to the above. Sets the minimum size of the media type screen width. If smaller, the style is not displayed. Max height – this sets the maximum height that a media type screen can have to display the included styles. Min height – sets the minimum height of the screen. If the screen is greater than or equal to the entered amount, the device will display the attached style. In general, the width is usually set. If there is no specific style that requires height, the height can be omitted. All devices must scroll up and down to see everything on the page, which is why they are not usually used. The
If you know the width of different screen sizes of mobile devices, you can easily specify the style of themes and content to better display on the specific device you select. The following is a quick reference to the screen widths of the most commonly used devices. IPhone – 640px iPad – 1024 pixels refined – 1366px Android phone – 640px, 720px, 854px, 960px are the most common sizes
whole Very large Android phones – 1024px or 1066px smaller windows phones – 480px larger windows phones – 768px small and older phones – 320px netbooks and small desktops – 128px ultrabook\/ laptops – 1366px desktops and TVs – 1920 PX screen media types use these screen widths to display websites handsomely on all devices . The
There are other repositories of expression and media functions available. For example, you can define the resolution, color ratio, and color index for a media type. The following are examples shown to provide better ideas on how to use these media features. In this example, to display the style of the content, ensure that the minimum aspect ratio of the screen size to the device is 16:9, and the width is greater than 1920 pixels, during the loading of jorgejennimckinnon\/bcb5d71eb7e0e0e0e285bde0. In short, the code is suitable for displaying TV and large desktop screen, and is suitable for displaying HD video. For a complete list of all available projects, see the W3Schools and Mozilla developer websites. After the reactivity test operation of the site is completed, it is important to test the generated projects to ensure that they actually work under multiple screen sizes or all screen sizes. With these devices, you can start and test easily, but without all the devices, it can be difficult. Fortunately, there are many ways to test styles and sites to determine if they are appropriate. You can use the window Resizer Chrome browser extension, the responsive resize or resizeme Safari extension, and the fire Resizer or window Resizer of fireredox. Add a zoom extension or attachment to the browser to easily test the responsiveness of the website. There are also many online mobile device simulators available for free. Because you can switch the reactive pixel sample screen to the desired size, I think this website is the most favorite website to confirm the responsiveness of the website. At least in terms of responsiveness, this is actually a one-stop shop for testing sites. The site will display the URL entered at the top of the page using the framework, so if some sites are coded to disable framework loading, it may be important that they do not display at all. Are you interested in responsepx? View iPad in detail this website is suitable for testing the website on the latest Apple devices including iPad and iPhone. Just enter the URL of the site to complete the preparation. If the site is coded not to be displayed in the frame, the site will not be displayed at all. Are you interested in iPad peek? Detailed mobile phone simulator this is an excellent tool for testing the size of old and small mobile phones. In the drop-down box of the menu, you can easily view how the site is displayed on the selected device. In addition, if your phone specification looks strange, it can help you determine what needs to be changed. The good news is that all sites should be able to load using this tool. Are you interested in mobile phone simulator? The website can load websites of specific sizes, from the desktop to tablet computers such as kindle fire, Samsung Galaxy Tab and Google nexus7, various mobile phone types and TVs. In addition, you can use other options, such as custom size, refresh, sideways viewing the sample window area on tablets and smartphones for horizontal viewing, custom links to share results, and so on. This indicates your site because it is incompatible with a site that has frame view disabled