{"id":6187,"date":"2023-03-04T09:19:00","date_gmt":"2023-03-04T08:19:00","guid":{"rendered":"https:\/\/webserve.hu\/?p=6187"},"modified":"2024-11-22T21:22:15","modified_gmt":"2024-11-22T20:22:15","slug":"responsive-mobilebarat-website","status":"publish","type":"post","link":"https:\/\/webserve.hu\/en\/reszponziv-mobilbarat-weboldal\/","title":{"rendered":"Responsive Mobile Friendly Website \/ Responsive Web Design- Typography, PX, EM, REM, %, VW, VH"},"content":{"rendered":"<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading has-text-align-center\" id=\"0-reszponz%C3%ADv-mobilbar%C3%A1t-weboldal-reszponz%C3%ADv-mobilbar%C3%A1t-web-design-k%C3%A9sz%C3%ADt%C3%A9s-\"><a href=\"https:\/\/webserve.hu\/en\/blog\/responsive-mobilebarat-website\/\">Responsive Mobile Friendly Website \/<br>Responsive Mobile Friendly Web Design<\/a><\/h2>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading has-text-align-center\" id=\"1-mi-a-k%C3%BCl%C3%B6nbs%C3%A9g-a-pixel-px-em-rem-vw-%C3%A9s-vh-k%C3%B6z%C3%B6tt-viewport-\"><a href=\"https:\/\/webserve.hu\/en\/practical-tips\/\" target=\"_blank\" rel=\"noreferrer noopener\">What is the difference between (Pixel) PX, EM, REM, %, VW and VH?<\/a> - <a href=\"https:\/\/webizpro.com\" target=\"_blank\" rel=\"noreferrer noopener\">Viewport<\/a>...<\/h3>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"2-mi-a-c%C3%A9lja-ennek-az-%C3%ADr%C3%A1snak-%C3%A9s-mi%C3%A9rt-fontos-a-reszponz%C3%ADv-weboldal\">What is the purpose of this writing? And why is a responsive website important?<\/h2>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I myself used to struggle with responsiveness, mobile presence (even today I still often have some trouble ;), what units to use and what they mean... <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The following document contains the most important information in one place. Which may help you to understand or clarify the units of responsiveness typography and visual layout associated with web pages, their naming, meaning and function.<\/p>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img fetchpriority=\"high\" decoding=\"async\" width=\"800\" height=\"1200\" src=\"https:\/\/webserve.hu\/wp-content\/uploads\/online-university-12.jpg\" alt=\"Responsive Mobile Friendly Website \/ Responsive Web Design- Typography, PX, EM, REM, %, VW, VH \" class=\"wp-image-11170\" style=\"width:550px\" srcset=\"https:\/\/webserve.hu\/wp-content\/uploads\/online-university-12.jpg 800w, https:\/\/webserve.hu\/wp-content\/uploads\/online-university-12-8x12.jpg 8w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"3-st%C3%ADlus-be%C3%A1ll%C3%ADt%C3%A1sok-css-ben-vagy-wordpress-weboldal-k%C3%A9sz%C3%ADt%C3%A9s-eset%C3%A9ben-p%C3%A9ld%C3%A1ul-elementor-vagy-b%C3%A1rmely-oldalszerkeszt%C5%91-eset%C3%A9n\">Style settings in CSS or <a href=\"https:\/\/webserve.hu\/en\/find-an-appointment-website-cesites-car-maintenance\/\" target=\"_blank\" rel=\"noreferrer noopener\">WordPress Website Creation<\/a> case. For example: for Elementor or any page builder<\/h2>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Our example of the <a href=\"https:\/\/webserve.hu\/en\/how-to-build-wordpress-website-in-5-easy-steps\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">WordPress Website Creation<\/a> shows the differences, but they are perfectly true for all kinds of Web development and Web design solutions related to websites. We use the same logic and naming conventions for HTML and CSS. In this respect, we are talking about knowledge that is also applicable to universal look and style.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The theme above <a href=\"https:\/\/webserve.hu\/en\/\" target=\"_blank\" rel=\"noreferrer noopener\">WordPress<\/a> and <a href=\"https:\/\/webserve.hu\/en\/\" target=\"_blank\" rel=\"noreferrer noopener\">Elementor<\/a>, is presented along the example of one of the most popular website builders. It looks very similar to the also popular <a href=\"https:\/\/webserve.hu\/en\/\" target=\"_blank\" rel=\"noreferrer noopener\">Divi website builder<\/a> also for.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"4-px-em-rem-vw-vh\">PX, EM, REM, %, VW, VH<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/webserve.hu\/en\/free-webdesign-webdesigner-course-part-1\/\" target=\"_blank\" rel=\"noreferrer noopener\">Website creation<\/a> you may notice that some elements have sizing options that allow the use\/selection of PX, EM, REM, %, VW or VH. Proper use of the above is one of the basic principles of responsive websites. But what do these options actually mean, and when should you use one instead of the other?<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img decoding=\"async\" width=\"640\" height=\"427\" src=\"https:\/\/webserve.hu\/wp-content\/uploads\/typography-1069409_1280.jpg\" alt=\"\" class=\"wp-image-12043\" srcset=\"https:\/\/webserve.hu\/wp-content\/uploads\/typography-1069409_1280.jpg 640w, https:\/\/webserve.hu\/wp-content\/uploads\/typography-1069409_1280-610x407.jpg 610w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><figcaption class=\"wp-element-caption\">https:\/\/webserve.hu\/blog\/reszponziv-mobilbarat-weboldal - Typography (PX, EM, REM, %) - Website builder, responsive website builder and Blog<\/figcaption><\/figure>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"5-ehhez-kezdj%C3%BCk-az-alapokkal-css-st%C3%ADlusok-st%C3%ADlus-be%C3%A1ll%C3%ADt%C3%A1sok-marg%C3%B3k-t%C3%ADpogr%C3%A1fia-%C3%A9s-egyebek\">For this <a href=\"https:\/\/webserve.hu\/en\/free-webdesign-webdesigner-course-part-1\/\" target=\"_blank\" rel=\"noreferrer noopener\">let's start with the basics<\/a> - <a href=\"https:\/\/webserve.hu\/en\/free-webdesign-webdesigner-course-part-4\/\" target=\"_blank\" rel=\"noreferrer noopener\">CSS<\/a>, Styles, Style settings, Margins typography and more<\/h2>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">In CSS, you can specify the size or length of elements using different units of measurement. Some of the units of measurement available in Elementor options include PX, EM, REM, %, VW and VH, although there are many others available in CSS. Not all Elementor options offer all of these units. For example, the <a href=\"https:\/\/webserve.hu\/en\/\" target=\"_blank\" rel=\"noreferrer noopener\">Divi or the Elementor<\/a> shows only the options that make the most sense to apply to the item.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The most important aspect of understanding the different units is that some units, such as PX, are absolute units, while others are relative units.<\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"6-abszol%C3%BAt-egys%C3%A9gek\">Absolute units<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-webserve-weboldal-k-sz-t-s-weboldal-karbantart-s-zemeltet-s-landing-page wp-block-embed-webserve-weboldal-k-sz-t-s-weboldal-karbantart-s-zemeltet-s-landing-page\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"JFpe84exe0\"><a href=\"https:\/\/webserve.hu\/en\/free-webdesign-webdesigner-course-part-3\/\">Free WebDesign Course \/ WebDesigner Course (Part 3)<\/a><\/blockquote><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;Ingyenes WebDesign tanfolyam \/ WebDesigner tanfolyam (3. r\u00e9sz)&#8221; &#8212; WebServe - Weboldal K\u00e9sz\u00edt\u00e9s Weboldal Karbantart\u00e1s \u00dczemeltet\u00e9s Landing Page\" src=\"https:\/\/webserve.hu\/ingyenes-webdesign-webdesigner-tanfolyam-3-resz\/embed\/#?secret=mL0YtCMrNA#?secret=JFpe84exe0\" data-secret=\"JFpe84exe0\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><figcaption class=\"wp-element-caption\"><a href=\"https:\/\/webserve.hu\/en\/free-webdesign-webdesigner-course-part-3\/\">Free WebDesign \/ WebDesigner Course (Part 3)<\/a><\/figcaption><\/figure>\n\n\n\n<div style=\"height:70px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"7-px-pixel-dpi-fix-egys%C3%A9g\">PX = Pixel, DPI, Fixed unit<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Pixels (px) are an absolute unit, although they are relative to the DPI and resolution of the display device. On the device itself, however, the PX unit is fixed and does not change based on any other element. Using PX can be problematic for responsive websites, but it is useful for maintaining consistent scaling of some elements. If you have elements that should not be resized, then using PX is a good choice.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<div style=\"height:70px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"8-relat%C3%ADv-egys%C3%A9gek-em-rem-vw-vh\">Relative units (EM, REM, %, VW VH)<\/h3>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"9-em-\">EM: <\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Relative to the parent element<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"10-rem-\">REM: <\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Relative to the root element (HTML tag).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"11-\">%: <\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Relative to the parent element<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"12-vw-\">VW: <\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">In relation to the width of the viewport.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"13-vh-\">VH: <\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Relative to the height of the viewport.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Unlike pixel, PX, relative units such as %, EM and REM are better suited to responsive design and also help meet accessibility standards. Relative units scale better across devices because they can scale up and down according to the size of another element.<\/p>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-webserve-weboldal-k-sz-t-s-weboldal-karbantart-s-zemeltet-s-landing-page wp-block-embed-webserve-weboldal-k-sz-t-s-weboldal-karbantart-s-zemeltet-s-landing-page\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"4Yl9wZsXKS\"><a href=\"https:\/\/webserve.hu\/en\/seo-guide-seo-foundations-search-optimisation-part-1\/\">SEO Guide, SEO Advice Part 1<\/a><\/blockquote><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;SEO \u00datmutat\u00f3, SEO Tan\u00e1csok 1. r\u00e9sz&#8221; &#8212; WebServe - Weboldal K\u00e9sz\u00edt\u00e9s Weboldal Karbantart\u00e1s \u00dczemeltet\u00e9s Landing Page\" src=\"https:\/\/webserve.hu\/seo-utmutato-seo-alapok-keresooptimalizalas-1-resz\/embed\/#?secret=pqDg7LzIuL#?secret=4Yl9wZsXKS\" data-secret=\"4Yl9wZsXKS\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><figcaption class=\"wp-element-caption\"><a href=\"https:\/\/webserve.hu\/en\/seo-guide-seo-foundations-search-optimisation-part-1\/\">SEO Guide, SEO Advice Part 1<\/a><\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"14-n%C3%A9zz%C3%BCnk-egy-egyszer%C5%B1-p%C3%A9ld%C3%A1t\">Let's look at a simple example.<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The default font size in most browsers is 16px. Relative units calculate the size from this base. If you change this base by adjusting the base size of the HTML tag using CSS, this will be the basis for calculating the relative units for the rest of the page. Similarly, if the user sets the font size, this will be the basis for calculating the relative units.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So what do these units mean when it comes to the default 16px?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The number you enter will multiply this number by the default size.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1em = 16px (1 * 16)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2em = 32px (2 * 16)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">0.5em = 8px (0.5 * 16)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1rem = 16px<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2rem = 32px<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">0.5rem = 8px<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">100% = 16px<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">200% = 32px<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">50% = 8px<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">OK, but what if you or the user changes the default size? Since these are relative units, the final size values will be based on the new default size. Although the default is 16px, if you or the user change it to 12px, the calculated sizes would be as follows:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1em = 12px (1 * 12)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2em = 24px (2 * 12)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">0.5em = 6px (0.5 * 12)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1rem = 12px<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2rem = 24px<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">0.5rem = 6px<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">100% = 12px<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">200% = 24px<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">50% = 6px<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This gives the user the freedom to set the browser's default font size, while maintaining the relative proportions of each element you specify.<\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img decoding=\"async\" width=\"400\" height=\"400\" src=\"https:\/\/webserve.hu\/wp-content\/uploads\/portrait-square-02.jpg\" alt=\"Responsive Mobile Friendly Website \/ Responsive Web Design- Typography, PX, EM, REM, %, VW, VH\" class=\"wp-image-11163\" srcset=\"https:\/\/webserve.hu\/wp-content\/uploads\/portrait-square-02.jpg 400w, https:\/\/webserve.hu\/wp-content\/uploads\/portrait-square-02-12x12.jpg 12w\" sizes=\"(max-width: 400px) 100vw, 400px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"15-mi-a-k%C3%BCl%C3%B6nbs%C3%A9g-az-em-%C3%A9s-a-rem-k%C3%B6z%C3%B6tt\">What is the difference between EM and REM?<\/h2>\n\n\n\n<div style=\"height:70px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><em>Looking at the diagram above, EM and REM look exactly the same. So how do they differ?<\/em><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Put simply, they differ according to heredity. As mentioned, REM is based on the root element (HTML). All child elements that use REM use the HTML root size as the calculation point, regardless of whether or not a different size is specified in the parent element.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>h1 {\n  font-size: 60px;\n}\n\np {\n  font-size: 25px;\n  line-height: 50px;\n}\n\n*Source: https:\/\/www.w3schools.com\/css\/css_units.asp<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">EM is based on the font size of the parent element. If a parent element has a different size than the root element, the EM is calculated based on the parent element, not the root element. This means that embedded elements that use EM for sizing may sometimes have a size that was not expected. On the other hand, it provides finer control when the size of a particular area of the page is to be specified.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;head&gt;\n&lt;style&gt;\nh1 {\n  font-size: 4rem;\n}\n\np {\n  font-size: 2em;\n  line-height: 2rem;\n}\n&lt;\/style&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n\n&lt;h1&gt;This heading 1&lt;\/h1&gt;\n&lt;h2&gt;This heading 2&lt;\/h2&gt;\n&lt;p&gt;This is a paragraph&lt;\/p&gt;\n&lt;p&gt;Another paragraph&lt;\/p&gt;\n\n&lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">What about %, VW and VH values? What are they about?<br>While PX, EM and REM are mainly used for font sizing, %, VW and VH are mostly used for margins, padding, spacing and width\/height.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.w3schools.com\/cssref\/css_pxtoemconversion.asp\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">(For those interested, here is a Pixel \/ EM converting prpgram)<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Again, the VH is the \"viewport height\", i.e. the height of the screen that can be displayed. 100VH is 100% of the viewport height, i.e. the total height of the screen. And of course, VW is \"viewport width\", which is the visible width of the screen. The 100VW would be 100% of the viewport width, i.e. the total width of the screen. The % reflects the percentage of the size of the parent element, regardless of the size of the viewport.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<script async=\"\" src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-1418042796433862\" crossorigin=\"anonymous\"><\/script>\n<ins class=\"adsbygoogle\" style=\"display:block; text-align:center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-1418042796433862\" data-ad-slot=\"1951595472\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><em>Let's look at some examples of where Elementor gives %, VW and VH options.<\/em><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Column Widths: for example, when editing the layout of an Elementor column, you may notice that there is only one width scaling unit available - %. Column widths only work well and responsively when using percentages, so no other options are given.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Indentation or Padding: the padding of the section can be specified in PX, EM or %. As with margins, it is often preferable to use EM or % so that padding remains relative as the page size increases.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Font size: when you edit the typography of an element, such as a headline, you will see four options to choose from: PX, EM, REM and VH.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Have you ever created a large header, admired how good it looks on desktop, then realised it's too big on mobile (I have, more than once :).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2000\" height=\"1080\" src=\"https:\/\/webserve.hu\/wp-content\/uploads\/online-university-2.jpg\" alt=\"Responsive Mobile Friendly Website \/ Responsive Web Design- Typography, PX, EM, REM, %, VW, VH\" class=\"wp-image-11144\" srcset=\"https:\/\/webserve.hu\/wp-content\/uploads\/online-university-2.jpg 2000w, https:\/\/webserve.hu\/wp-content\/uploads\/online-university-2-1536x829.jpg 1536w, https:\/\/webserve.hu\/wp-content\/uploads\/online-university-2-18x10.jpg 18w, https:\/\/webserve.hu\/wp-content\/uploads\/online-university-2-1080x583.jpg 1080w\" sizes=\"(max-width: 2000px) 100vw, 2000px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The key to this elegant solution is to use EM, REM or VW instead of PX. Which one you choose depends on your specific situation. I usually choose EM because I want the size to be relative to the parent of the title bar. However, if you want the size to be relative to the size of the root (HTML), then you should choose REM instead. Or you can set it to be relative to the width of the viewport (VW) if that works better for you.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Note that you can also set the font size PX values per device by using the Device icons to set the desktop, tablet and mobile sizes. However, this will still limit responsiveness and accessibility, so keep this in mind if you choose PX.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">More information about VW and VH<br>Viewport units are a percentage of the current viewport (current browser size) of the browser. Although similar to % units, there is a difference. Viewport units are calculated as a percentage of the browser's current viewport size. Percentage units, on the other hand, are calculated as a percentage of the parent element, which may be different from the viewport size.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Take an example of a 480px x 800px mobile screen viewport.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1 VW = 1% of the viewport width (or 4.8px).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">50 VW = 50% of the viewport width (or 240px)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1 VH = 1% of the viewport height (or 8px)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">50 VH = 50% of the viewport height (or 400px)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the size of the viewport changes, the size of the element changes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When should one unit be used over another?<br>Ultimately, there is no perfect answer to this question. In general, it is often best to choose one of the relative units instead of PX, so that the <a href=\"https:\/\/webserve.hu\/en\/how-to-build-wordpress-website-in-5-easy-steps\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">website<\/a>has the best chance of displaying a beautifully responsive design. However, choose PX if you want to ensure that the size of an element never changes at any breakpoint and remains the same, regardless of whether the user has chosen a different default size. PX units provide a consistent result even if this is not ideal.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"320\" height=\"536\" src=\"https:\/\/webserve.hu\/wp-content\/uploads\/320xServiceRentScreenshot-2022-08-21-at-09-39-21-Home-Engagement-Service-in-Central-Europe1.png.webp\" alt=\"Responsive Mobile Friendly Website \/ Responsive Web Design- Typography, PX, EM, REM, %, VW, VH WebServe Website Creation WordPress Maintenance\" class=\"wp-image-11243\" srcset=\"https:\/\/webserve.hu\/wp-content\/uploads\/320xServiceRentScreenshot-2022-08-21-at-09-39-21-Home-Engagement-Service-in-Central-Europe1.png.webp 320w, https:\/\/webserve.hu\/wp-content\/uploads\/320xServiceRentScreenshot-2022-08-21-at-09-39-21-Home-Engagement-Service-in-Central-Europe1.png-7x12.webp 7w\" sizes=\"(max-width: 320px) 100vw, 320px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">EM is relative to the font size of the parent element, so if you want to scale the element based on the size of the parent element, use EM.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The REM is relative to the root (HTML) font size, so if you want to scale the element based on the root size, regardless of the size of the parent, use REM. If you used EM and are experiencing scaling problems due to many nested elements, REM is probably a better choice.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">VW is useful for creating full width (100%) elements that fill the entire width of the viewport. Of course, you can use any percentage of the viewport width for other purposes, for example 50% for half the width, etc.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The VH is useful for creating full-height elements (100%) that fill the entire height of the viewport. Of course, you can use any percentage of the viewport height for other purposes, e.g. 50% for half the height, etc.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The % is similar to VW and VH, but not the length relative to the width or height of the viewport. Instead, it is a percentage of the width or height of the parent element. Percentage units are often useful for setting the width of margins, for example.<\/p>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<script async=\"\" src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-1418042796433862\" crossorigin=\"anonymous\"><\/script>\n<!-- v\u00edzszintes Google Adsense banner -->\n<ins class=\"adsbygoogle\" style=\"display:inline-block;width:728px;height:90px\" data-ad-client=\"ca-pub-1418042796433862\" data-ad-slot=\"3069036680\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"16-m%C3%A9rt%C3%A9kegys%C3%A9gek-r%C3%B6vid%C3%ADt%C3%A9sek-jelent%C3%A9sek-magyar%C3%A1zatok\">Units of measurement, abbreviations, meanings, explanations<\/h2>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<div style=\"height:70px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.w3schools.com\/cssref\/css_units.asp\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"654\" src=\"https:\/\/webserve.hu\/wp-content\/uploads\/2022\/08\/Webes-rogzites_14-8-2022_202515_www.w3schools.com-1-1024x654.jpeg\" alt=\"Responsive web design units, unitokem rem vs px ; elementor px em rem ; px em rem vw ; elementor use ; elementor px em rem vw ;rem vs vh ; px vh ; css vw ; px vh vw elementor ; em rem px vw vh ; em rem css ; pixel image creation ; em rem px vw vh ;vh vs vw ; px vh vw elementor ; rem vs pixels ; 24px to rem ; em rem vh vw in css ; em webdesign ; px rem em vh vw ;vw em ; px to vw ; rem css ; rem vs em vs vh ; vh px em ; vh vs vw ; vh vs px ; vw elementor ; vw em ; vw rem ; vw to px ;rem vs pixels ; vw to px ; webdesign elementor ; webdesigner elementor ; web design elementor ; vw vs rem rem vs pxcss vwelementor px vh vwelementor courseresponsive web developmentresponsive websitemobile friendly website creationmobile friendly website creationmobile friendly website designwebsite designresponsive website creationresponsive website creation\" class=\"wp-image-6199\" srcset=\"https:\/\/webserve.hu\/wp-content\/uploads\/2022\/08\/Webes-rogzites_14-8-2022_202515_www.w3schools.com-1-1024x654.jpeg 1024w, https:\/\/webserve.hu\/wp-content\/uploads\/2022\/08\/Webes-rogzites_14-8-2022_202515_www.w3schools.com-1-300x192.jpeg 300w, https:\/\/webserve.hu\/wp-content\/uploads\/2022\/08\/Webes-rogzites_14-8-2022_202515_www.w3schools.com-1-768x491.jpeg 768w, https:\/\/webserve.hu\/wp-content\/uploads\/2022\/08\/Webes-rogzites_14-8-2022_202515_www.w3schools.com-1.jpeg 1044w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Responsive web design units (EM, REM, VW, VH, %) <br>*Format:w3schools.com ; elementor.com<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"font-size:8px\">em rem vs px ; elementor px em rem ; px em rem vw ; elementor use ; elementor px em rem vw ; rem vs vh ; px vh ; css vw ; px vh vw elementor ; em rem px vw vh ; em rem css ; making a pixel image ; em rem px vw vh ; vh vs vw ; px vh vw elementor ; rem vs pixels ; 24px to rem ; em rem vh vw in css ; em webdesign ; px rem em vh vw ; vw em ; px to vw ; <a href=\"https:\/\/webserve.hu\/en\/our-service-tatas\/\">rem css ; rem vs em vs vh ; vh px em ; vh vs vw ; vh vs px ; vw elementor ; vw em ; vw rem ; vw to px ; rem vs pixels ; vw to px ; web design elementor ; web designer elementor ; web design elementor ; vw vs rem ; px em vw rem vs px ; px vs em vs rem vs vh ; responsive design ; responsive design ; responsive design ; responsive web design ;css vw ; css px em rem vh vw ; rem elementor ; rem web design ; css rem vw ; em rem vw vh ; responsive website design<\/a> ; responsive website development ; elementor px vh vw ; elementor web design ; elementor course ; elementor course ; responsive web design ; elementor web development ; elementor course ; elementor course ; elementor course ; elementor course ; elementor course ; elementor course ; elementor course ; elementor course ; elementor course ; elementor course ; elementor course ; elementor course ; elementor course ; elementor course ; elementor course ; elementor course ; elementor course ; responsive website ; mobile-friendly website design ; mobile-friendly website design ; website design ; responsive website design ; responsive website ; rem vs pixels em rem px vw vh ; elementor px em rem vw ; em rem px vw vh ; rem vs pixels; em rem vs px; vh vs vw ; em rem css ; css vw; css vh ;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"font-size:8px\"><\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"17-tipp-az-em-%C3%A9s-rem-egys%C3%A9gek-praktikusak-a-t%C3%B6k%C3%A9letesen-sk%C3%A1l%C3%A1zhat%C3%B3-reszponz%C3%ADv-elrendez%C3%A9s-l%C3%A9trehoz%C3%A1s%C3%A1ban\">Tip: Em and rem units are handy for creating a perfectly scalable, responsive layout!<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"18-viewport-a-b%C3%B6ng%C3%A9sz%C5%91ablak-m%C3%A9rete-ha-a-n%C3%A9zetablak-50-cm-sz%C3%A9les-akkor-1vw-05-cm\">*Viewport = browser window size. If the viewport is 50 cm wide, then 1vw = 0.5 cm.<\/h5>","protected":false},"excerpt":{"rendered":"<p>Responsive Website \/ Responsive WebDesign - What does it mean? - Typography (PX, EM, REM, %, VW, VH)<\/p>\n<p>em rem vs px ; elementor px em rem ; px em rem vw ; elementor use ; elementor px em rem vw ; rem vs vh ; px vh ; css vw ; px vh vw elementor ; em rem px vw vh ; em rem css ; pixel image creation ; em rem px vw vh ; vh vs vw ; px vh vw elementor ; rem vs pixels ; 24px to rem ; em rem vh vw in css ; em webdesign ; px rem em vh vw ; vw em ; px to vw ; rem css ; rem vs em vs vh ; vh px em ; vh vs vw ; vh vs px ; vw elementor ; vw em ; vw rem ; vw to px ; rem vs pixels ; vw to px ; webdesign elementor ; webdesigner elementor; web design elementor ; vw vs rem ; px em vw rem vs px ; px vs em vs rem vs vh ; responsive design ; responsive design ; responsive web design ;css vw ; css px em rem vh vw ; rem elementor ; rem web design ; css rem vw ; em rem vw vh ; responsive website design ; responsive website development ; elementor px vh vw ; responsive web development ; responsive website ; responsive web design ; responsive website ; elementor course ; responsive web development ; responsive web design ; Responsive web design ; responsive web design ; responsive web design ; responsive website ; mobile friendly website design ; mobile friendly website design ; website design ; responsive website design ; responsive website ; responsive website design ; responsive website ; rem vs pixels em rem px vw vh ; elementor px em rem vw ; em rem px vw vh ; rem vs pixels; <\/p>","protected":false},"author":1,"featured_media":12043,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[10,1,27,36,257],"tags":[34,288,289,290,17,38],"class_list":["post-6187","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-website-keszites-website-keszites-weboldal-honlap","category-blog","category-ugyfelszerzes","category-webdesign-tanfolyam","category-wordpress","tag-otletek","tag-reszponziv-web-design","tag-web-design","tag-webdesign","tag-website-honlap-weboldal-keszites","tag-wordpress-weboldal-keszites"],"_links":{"self":[{"href":"https:\/\/webserve.hu\/en\/wp-json\/wp\/v2\/posts\/6187","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webserve.hu\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webserve.hu\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webserve.hu\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webserve.hu\/en\/wp-json\/wp\/v2\/comments?post=6187"}],"version-history":[{"count":0,"href":"https:\/\/webserve.hu\/en\/wp-json\/wp\/v2\/posts\/6187\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webserve.hu\/en\/wp-json\/wp\/v2\/media\/12043"}],"wp:attachment":[{"href":"https:\/\/webserve.hu\/en\/wp-json\/wp\/v2\/media?parent=6187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webserve.hu\/en\/wp-json\/wp\/v2\/categories?post=6187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webserve.hu\/en\/wp-json\/wp\/v2\/tags?post=6187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}