{"id":5240,"date":"2023-07-31T12:38:09","date_gmt":"2023-07-31T12:38:09","guid":{"rendered":"https:\/\/tasarlab.com\/responsive-front-end-gelistirmede-modern-yontemler-1\/"},"modified":"2024-09-18T09:53:23","modified_gmt":"2024-09-18T09:53:23","slug":"modern-methods-in-responsive-front-end-development-1","status":"publish","type":"post","link":"https:\/\/tasarlab.com\/en\/modern-methods-in-responsive-front-end-development-1\/","title":{"rendered":"Modern Methods in Responsive Front-end Development \u2013 1"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">Before diving into the details, let\u2019s introduce the concept of \u201cresponsive design.\u201d Responsive design is a technique that ensures your website or web application is displayed correctly on devices with different screen sizes and resolutions, such as computers, tablets, and phones. It allows the page to maintain proper display and usability when accessed from different screen resolutions. This ensures that your website or web application can be easily viewed on devices of various screen sizes, with content presented in an organized manner. With this brief introduction, we can now focus on responsive front-end development.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Whether you are creating a website or a web application, many modern front-end development techniques can help solve potential problems before they arise without requiring extra effort. Below are some solutions for common issues often encountered in time-sensitive projects by those new to front-end development or those curious about the field.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">1 \u2013 Defining Responsive Font Size:<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">There are some CSS properties where you must define new values for desktop and mobile. However, using \u201cclamp,\u201d we can set the font size for both mobile and desktop in a single line without needing a separate definition for mobile. Let\u2019s explore how to use \u201cclamp\u201d to determine the font size:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Let\u2019s say we have a very large heading, for example, font size 140px.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">If we use a fixed font size like 140px, the text will overflow as the browser width decreases and does not fit within its container. To solve this issue, we need the clamp property.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The clamp function works like this:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">font-size: clamp(minimum value, preferred value, maximum value)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">One of the best uses for this scenario would be:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u201cFont-size: clamp(75px, 10vw, 140px;) \u201c<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/p>\n<p><span style=\"font-weight: 400;\">We have defined the minimum and maximum values. In the preferred section, we used a unit in vw (viewport width). 1vw equals 1% of the viewport width. This way, we defined a font size proportional to the page width, eliminating the need for additional definitions for mobile and desktop.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Font-size: clamp(75px, 10vw, 140px;)\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">When we define it in this way:<\/span><\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/08\/responsive-front-end-gelistirmede-modern-yontemler-1-image-2.gif\" \/><\/p>\n<p>\u00a0<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"html\"><!doctype html>\r\n<html lang=\"en\">\r\n <head>\r\n   <meta charset=\"utf-8\">\r\n   <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\r\n <\/head>\r\n <body>\r\n <h1 class=\"sabit\">Fixed Font Size Heading<\/h1>\r\n <h1 class=\"clamp\">Responsize Font Size Clamp<\/h1>\r\n <\/body>\r\n\r\n\r\n <style>\r\n   .fixed {\r\n     font-size:140px;\r\n     color:rgb(8, 58, 143);\r\n   }\r\n   .clamp {\r\n     font-size: clamp(75px, 10vw, 140px);\r\n   }\r\n <\/style>\r\n<\/html><\/pre>\n<p><span style=\"font-weight: 400;\">When the screen width is 2000px, the font size would be 10vw = 200px, but since our maximum value is set to 140px, it will stay at 140px. On mobile devices, such as those with a width of 400px, 10vw would equal 40px, but since the minimum value is set to 75px, it will remain at 75px.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">2) Setting Responsive Margin, Padding, and Gap Values:<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">The method we described above for font size is also applicable to the following properties:<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">gap: clamp(5px, 5vw, 50px);\u00a0\r\n\r\npadding: clamp(5px, 2vw, 30px);\r\n\r\nmargin: clamp(5px, 2vw, 30px);\r\n\r\nfont-size: clamp(75px, 10vw, 140px);<\/pre>\n<p><span style=\"font-weight: 400;\">This way, we write less and cleaner code for commonly used CSS properties like gap, padding, margin, and font size.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">3) Adding Images Responsively<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">We can add images to our project in a responsive manner, adapting to different screen sizes, using several methods:<\/span><\/p>\n<ol>\n<li><strong>First Method: Using the <picture> tag allows for multiple image files as needed.<\/strong><b><\/b><\/li>\n<\/ol>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"><picture>\r\n  <source media=\"(min-width:700px)\" srcset=\"tabletimage.jpg\">\r\n  <source media=\"(min-width:465px)\" srcset=\"desktopimage.jpg\">\r\n  <img src=\"mobileimage.jpg\"  style=\"width:auto;\">\r\n<\/picture><\/pre>\n<p><span style=\"font-weight: 400;\">The media query here works similarly to a CSS media query.<\/span><\/p>\n<p>How It Works:<span style=\"font-weight: 400;\"> If the condition given in the media attribute of the source tags defined within the picture element is met, the corresponding image will be displayed. If the condition is not met, the image specified in the img tag will be shown instead.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">This lets you define different resolutions for different breakpoints within the picture element.<\/span><\/p>\n<ol start=\"2\">\n<li><strong> Second Method: Use CSS media queries to hide the image on specific screens with \u201cdisplay: none;\u201d For example:<\/strong><\/li>\n<\/ol>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"><style>\r\n@media only screen and (max-width: 600px) {\r\n.desktopImage{\r\ndisplay:none;}\r\n}\r\n@media only screen and (min-width: 600px) {\r\n.mobileImage{\r\ndisplay:none;}\r\n}\r\n<\/style>\r\n<\/pre>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"><img class=\u201dmobileImage\u201d src=\u201dmobileimage.jpg>\r\n\r\n<img class=\u201ddesktopImage src=\u201ddesktopimage.jpg><\/pre>\n<p><span style=\"font-weight: 400;\">Or, if you are using the Bootstrap framework, you can do it without extra CSS:<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"><img class=\u201dd-block d-lg-none\u201d src=\u201dmobilresim.jpg>\r\n\r\n<img class=\u201dd-none d-lg-block\u201d src=\u201ddesktopresim.jpg><\/pre>\n<p><span style=\"font-weight: 400;\">You can also use the class method to avoid using JavaScript for videos. For example:<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"><video class=\u201dd-none d-lg-block\u201d controls>\r\n  <source src=\"dekstopvideo.mp4\" type=\"video\/mp4\">\r\n<\/video>\r\n<video class=\u201dd-block d-lg-none\u201d controls>\r\n  <source src=\"mobilevideo.mp4\" type=\"video\/mp4\">\r\n<\/video><\/pre>\n<p><span style=\"font-weight: 400;\">This way, we have hidden the relevant objects at the defined breakpoints.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">4. Aspect Ratio, Proportions, Equality, and Alignment in Multiple Images<\/span><\/h2>\n<h3><span style=\"font-weight: 400;\">What is the Aspect Ratio?<\/span><b><\/b><\/h3>\n<h3><b><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3300 size-full\" src=\"\/wp-content\/uploads\/2023\/07\/aspects-scaled-1.jpg\" alt=\"\" width=\"2560\" height=\"1301\" srcset=\"https:\/\/tasarlab.com\/wp-content\/uploads\/2023\/07\/aspects-scaled-1.jpg 2560w, https:\/\/tasarlab.com\/wp-content\/uploads\/2023\/07\/aspects-scaled-1-300x152.jpg 300w, https:\/\/tasarlab.com\/wp-content\/uploads\/2023\/07\/aspects-scaled-1-1024x520.jpg 1024w, https:\/\/tasarlab.com\/wp-content\/uploads\/2023\/07\/aspects-scaled-1-768x390.jpg 768w, https:\/\/tasarlab.com\/wp-content\/uploads\/2023\/07\/aspects-scaled-1-1536x781.jpg 1536w, https:\/\/tasarlab.com\/wp-content\/uploads\/2023\/07\/aspects-scaled-1-2048x1041.jpg 2048w\" sizes=\"auto, (max-width: 2560px) 100vw, 2560px\" \/><\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Aspect ratio refers to the width-to-height ratio of an image and is often encountered when working with visuals.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">For example, in a 16:9 aspect ratio, the width should be 16 units while the height should be nine.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">A 4:4 ratio would be square because the width and height are four units.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Here\u2019s how to use aspect ratio in CSS:<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"><style>\r\n\r\naspect-ratio:16\/2;\r\n\r\n<\/style><\/pre>\n<p><span style=\"font-weight: 400;\">You can directly reference the image\u2019s resolution. For example, if an image has a resolution of 800\u00d7600 pixels, you can use \u201caspect-ratio:800\/600;\u201d.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Let\u2019s use the aspect ratio as an example.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">One of the challenges when defining a multi-card structure is ensuring that all elements have the same scale because the images often have different resolutions, causing elements to appear differently.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In our example below, we have images of different sizes, but we want all of them to appear in the exact dimensions. How can we solve this problem?<\/span><\/p>\n<p><strong>Fig. 1\u00a0<\/strong><\/p>\n<p><span style=\"font-weight: 400;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3302 size-full\" src=\"\/wp-content\/uploads\/2023\/07\/Ekran-goruntusu-2022-11-13-233056.png\" alt=\"\" width=\"960\" height=\"505\" srcset=\"https:\/\/tasarlab.com\/wp-content\/uploads\/2023\/07\/Ekran-goruntusu-2022-11-13-233056.png 960w, https:\/\/tasarlab.com\/wp-content\/uploads\/2023\/07\/Ekran-goruntusu-2022-11-13-233056-300x158.png 300w, https:\/\/tasarlab.com\/wp-content\/uploads\/2023\/07\/Ekran-goruntusu-2022-11-13-233056-768x404.png 768w\" sizes=\"auto, (max-width: 960px) 100vw, 960px\" \/><\/span><\/p>\n<p><span style=\"font-weight: 400;\">Let\u2019s define the aspect ratio in the class.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u201cAspect-ratio: 2\/2;\u201d makes the width-to-height ratios of the img elements equal, as shown in Figure 2. However, since the images have different resolutions, their heights do not appear equal. (Due to the HTML structure, the img heights should be equal, but they don\u2019t look like they are.)<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><strong>Fig. 2<\/strong><br \/>\n<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3304 size-full\" src=\"\/wp-content\/uploads\/2023\/07\/aspect2.png\" alt=\"\" width=\"953\" height=\"494\" srcset=\"https:\/\/tasarlab.com\/wp-content\/uploads\/2023\/07\/aspect2.png 953w, https:\/\/tasarlab.com\/wp-content\/uploads\/2023\/07\/aspect2-300x156.png 300w, https:\/\/tasarlab.com\/wp-content\/uploads\/2023\/07\/aspect2-768x398.png 768w\" sizes=\"auto, (max-width: 953px) 100vw, 953px\" \/><\/span><\/p>\n<p><span style=\"font-weight: 400;\">We have completed the first step. If we want it to look even more consistent, we move on to the second step.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">When we apply \u201cobject-fit: cover;\u201d to the relevant images, the result is as follows:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Regardless of the image resolution, this method ensures that the web page design is not disrupted, and users uploading images are not required to adhere to a specific resolution or proportion, which is advantageous. However, the downside of an object-fit cover is that it maintains the image\u2019s aspect ratio while cropping it. For example, in an image with a resolution of 350\u00d7150 titled \u201cCard Title 7,\u201d we can\u2019t see about 40% of the area on the left and right sides.<\/span><\/p>\n<p><strong>Fig. 3<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3304 size-full\" src=\"\/wp-content\/uploads\/2023\/07\/aspect2.png\" alt=\"\" width=\"953\" height=\"494\" srcset=\"https:\/\/tasarlab.com\/wp-content\/uploads\/2023\/07\/aspect2.png 953w, https:\/\/tasarlab.com\/wp-content\/uploads\/2023\/07\/aspect2-300x156.png 300w, https:\/\/tasarlab.com\/wp-content\/uploads\/2023\/07\/aspect2-768x398.png 768w\" sizes=\"auto, (max-width: 953px) 100vw, 953px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">You can also apply this technique to Slider or Carousel components, which will help solve the aspect ratio issue.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">To access the code for the card example provided above, you can visit the <a href=\"https:\/\/codepen.io\/sawacrow\/full\/zYWvzQR\">Codepen link<\/a>.<\/span><\/p>\n<h3><b>5. Low-Resolution Image Issue<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Let\u2019s consider a banner image that covers 100% of the page\u2019s width with a resolution of 1000\u00d7500 pixels. If the monitor resolution is 2000px, the image may appear stretched or pixelated because it needs to scale up beyond its original resolution to fit the screen width.<\/span><\/p>\n<p><b>Fig. 4<\/b><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3306 size-full\" src=\"\/wp-content\/uploads\/2023\/07\/tasarl.png\" alt=\"\" width=\"1124\" height=\"1021\" srcset=\"https:\/\/tasarlab.com\/wp-content\/uploads\/2023\/07\/tasarl.png 1124w, https:\/\/tasarlab.com\/wp-content\/uploads\/2023\/07\/tasarl-300x273.png 300w, https:\/\/tasarlab.com\/wp-content\/uploads\/2023\/07\/tasarl-1024x930.png 1024w, https:\/\/tasarlab.com\/wp-content\/uploads\/2023\/07\/tasarl-768x698.png 768w\" sizes=\"auto, (max-width: 1124px) 100vw, 1124px\" \/>Photo<span style=\"font-weight: 400;\">: Pixabay: https:\/\/www.pexels.com\/tr-tr\/fotograf\/mavi-dizustu-bilgisayar-265631\/<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In Figure 4, the keyboard image below will look pixelated and poorly quality because we set the width to 100%. The solution to this issue is to use max-width: max-content. (Figure 4 is the keyboard image above.) <\/span><span style=\"font-weight: 400;\">Since the image\u2019s width is set to 1000px and its height to 500px, the maximum width becomes the image\u2019s actual width.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In other words, if the image width is 1000px:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The actual rule applied by max-width: max-content is equivalent to 1000px.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">This ensures that the image remains sharp and clear and does not exceed its original resolution.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Before diving into the details, let\u2019s introduce the concept of \u201cresponsive design.\u201d Responsive design is a technique that ensures your website or web application is displayed correctly on devices with different screen sizes and resolutions, such as computers, tablets, and phones. It allows the page to maintain proper display and usability when accessed from different [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":3914,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[79,80],"tags":[81,82,83,84,85,86,87,88],"class_list":["post-5240","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-front-end","category-ui-ux","tag-aspect-ratio-en","tag-clamp-en","tag-css-en","tag-html-en","tag-mobil-en","tag-picture-en","tag-responsive-en","tag-scss-en"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Modern Methods in Responsive Front-end Development \u2013 1 - Tasarlab<\/title>\n<meta name=\"description\" content=\"Uncover essential methods for responsive front-end development. Learn how to build websites that look great on any device with the latest techniques.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/tasarlab.com\/en\/modern-methods-in-responsive-front-end-development-1\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Modern Methods in Responsive Front-end Development \u2013 1 - Tasarlab\" \/>\n<meta property=\"og:description\" content=\"Uncover essential methods for responsive front-end development. Learn how to build websites that look great on any device with the latest techniques.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/tasarlab.com\/en\/modern-methods-in-responsive-front-end-development-1\/\" \/>\n<meta property=\"og:site_name\" content=\"Tasarlab\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/tasarlab\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-31T12:38:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-18T09:53:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/tasarlab.com\/wp-content\/uploads\/2023\/07\/responsive-front-end-gelistirmede-modern-yontemler-1-image.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t<meta property=\"og:image:height\" content=\"270\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Burak \u00d6zk\u0131ran\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@tasarlabcom\" \/>\n<meta name=\"twitter:site\" content=\"@tasarlabcom\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Burak \u00d6zk\u0131ran\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/tasarlab.com\/en\/modern-methods-in-responsive-front-end-development-1\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/tasarlab.com\/en\/modern-methods-in-responsive-front-end-development-1\/\"},\"author\":{\"name\":\"Burak \u00d6zk\u0131ran\",\"@id\":\"https:\/\/tasarlab.com\/en\/#\/schema\/person\/4f34d3e378ac2e1722778d3f54a398fb\"},\"headline\":\"Modern Methods in Responsive Front-end Development \u2013 1\",\"datePublished\":\"2023-07-31T12:38:09+00:00\",\"dateModified\":\"2024-09-18T09:53:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/tasarlab.com\/en\/modern-methods-in-responsive-front-end-development-1\/\"},\"wordCount\":1134,\"publisher\":{\"@id\":\"https:\/\/tasarlab.com\/en\/#organization\"},\"image\":{\"@id\":\"https:\/\/tasarlab.com\/en\/modern-methods-in-responsive-front-end-development-1\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/tasarlab.com\/wp-content\/uploads\/2023\/07\/responsive-front-end-gelistirmede-modern-yontemler-1-image.jpg\",\"keywords\":[\"aspect-ratio\",\"clamp\",\"css\",\"html\",\"mobil\",\"picture\",\"responsive\",\"scss\"],\"articleSection\":[\"Front-end\",\"UI \/ UX\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/tasarlab.com\/en\/modern-methods-in-responsive-front-end-development-1\/\",\"url\":\"https:\/\/tasarlab.com\/en\/modern-methods-in-responsive-front-end-development-1\/\",\"name\":\"Modern Methods in Responsive Front-end Development \u2013 1 - Tasarlab\",\"isPartOf\":{\"@id\":\"https:\/\/tasarlab.com\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/tasarlab.com\/en\/modern-methods-in-responsive-front-end-development-1\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/tasarlab.com\/en\/modern-methods-in-responsive-front-end-development-1\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/tasarlab.com\/wp-content\/uploads\/2023\/07\/responsive-front-end-gelistirmede-modern-yontemler-1-image.jpg\",\"datePublished\":\"2023-07-31T12:38:09+00:00\",\"dateModified\":\"2024-09-18T09:53:23+00:00\",\"description\":\"Uncover essential methods for responsive front-end development. Learn how to build websites that look great on any device with the latest techniques.\",\"breadcrumb\":{\"@id\":\"https:\/\/tasarlab.com\/en\/modern-methods-in-responsive-front-end-development-1\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/tasarlab.com\/en\/modern-methods-in-responsive-front-end-development-1\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/tasarlab.com\/en\/modern-methods-in-responsive-front-end-development-1\/#primaryimage\",\"url\":\"https:\/\/tasarlab.com\/wp-content\/uploads\/2023\/07\/responsive-front-end-gelistirmede-modern-yontemler-1-image.jpg\",\"contentUrl\":\"https:\/\/tasarlab.com\/wp-content\/uploads\/2023\/07\/responsive-front-end-gelistirmede-modern-yontemler-1-image.jpg\",\"width\":350,\"height\":270},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/tasarlab.com\/en\/modern-methods-in-responsive-front-end-development-1\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Anasayfa\",\"item\":\"https:\/\/tasarlab.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Modern Methods in Responsive Front-end Development \u2013 1\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/tasarlab.com\/en\/#website\",\"url\":\"https:\/\/tasarlab.com\/en\/\",\"name\":\"Tasarlab\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/tasarlab.com\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/tasarlab.com\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/tasarlab.com\/en\/#organization\",\"name\":\"Tasarlab\",\"url\":\"https:\/\/tasarlab.com\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/tasarlab.com\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/tasarlab.com\/wp-content\/uploads\/tasarlab-og-image.png\",\"contentUrl\":\"https:\/\/tasarlab.com\/wp-content\/uploads\/tasarlab-og-image.png\",\"width\":1200,\"height\":630,\"caption\":\"Tasarlab\"},\"image\":{\"@id\":\"https:\/\/tasarlab.com\/en\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/tasarlab\/\",\"https:\/\/x.com\/tasarlabcom\",\"https:\/\/tr.linkedin.com\/company\/tasarlab\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/tasarlab.com\/en\/#\/schema\/person\/4f34d3e378ac2e1722778d3f54a398fb\",\"name\":\"Burak \u00d6zk\u0131ran\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/a29c1f7ff77fdf7ea98e42f7cd066236f31a7b423d7d96b9516607384c8cabe0?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a29c1f7ff77fdf7ea98e42f7cd066236f31a7b423d7d96b9516607384c8cabe0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a29c1f7ff77fdf7ea98e42f7cd066236f31a7b423d7d96b9516607384c8cabe0?s=96&d=mm&r=g\",\"caption\":\"Burak \u00d6zk\u0131ran\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Modern Methods in Responsive Front-end Development \u2013 1 - Tasarlab","description":"Uncover essential methods for responsive front-end development. Learn how to build websites that look great on any device with the latest techniques.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/tasarlab.com\/en\/modern-methods-in-responsive-front-end-development-1\/","og_locale":"en_US","og_type":"article","og_title":"Modern Methods in Responsive Front-end Development \u2013 1 - Tasarlab","og_description":"Uncover essential methods for responsive front-end development. Learn how to build websites that look great on any device with the latest techniques.","og_url":"https:\/\/tasarlab.com\/en\/modern-methods-in-responsive-front-end-development-1\/","og_site_name":"Tasarlab","article_publisher":"https:\/\/www.facebook.com\/tasarlab\/","article_published_time":"2023-07-31T12:38:09+00:00","article_modified_time":"2024-09-18T09:53:23+00:00","og_image":[{"width":350,"height":270,"url":"https:\/\/tasarlab.com\/wp-content\/uploads\/2023\/07\/responsive-front-end-gelistirmede-modern-yontemler-1-image.jpg","type":"image\/jpeg"}],"author":"Burak \u00d6zk\u0131ran","twitter_card":"summary_large_image","twitter_creator":"@tasarlabcom","twitter_site":"@tasarlabcom","twitter_misc":{"Written by":"Burak \u00d6zk\u0131ran","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/tasarlab.com\/en\/modern-methods-in-responsive-front-end-development-1\/#article","isPartOf":{"@id":"https:\/\/tasarlab.com\/en\/modern-methods-in-responsive-front-end-development-1\/"},"author":{"name":"Burak \u00d6zk\u0131ran","@id":"https:\/\/tasarlab.com\/en\/#\/schema\/person\/4f34d3e378ac2e1722778d3f54a398fb"},"headline":"Modern Methods in Responsive Front-end Development \u2013 1","datePublished":"2023-07-31T12:38:09+00:00","dateModified":"2024-09-18T09:53:23+00:00","mainEntityOfPage":{"@id":"https:\/\/tasarlab.com\/en\/modern-methods-in-responsive-front-end-development-1\/"},"wordCount":1134,"publisher":{"@id":"https:\/\/tasarlab.com\/en\/#organization"},"image":{"@id":"https:\/\/tasarlab.com\/en\/modern-methods-in-responsive-front-end-development-1\/#primaryimage"},"thumbnailUrl":"https:\/\/tasarlab.com\/wp-content\/uploads\/2023\/07\/responsive-front-end-gelistirmede-modern-yontemler-1-image.jpg","keywords":["aspect-ratio","clamp","css","html","mobil","picture","responsive","scss"],"articleSection":["Front-end","UI \/ UX"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/tasarlab.com\/en\/modern-methods-in-responsive-front-end-development-1\/","url":"https:\/\/tasarlab.com\/en\/modern-methods-in-responsive-front-end-development-1\/","name":"Modern Methods in Responsive Front-end Development \u2013 1 - Tasarlab","isPartOf":{"@id":"https:\/\/tasarlab.com\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/tasarlab.com\/en\/modern-methods-in-responsive-front-end-development-1\/#primaryimage"},"image":{"@id":"https:\/\/tasarlab.com\/en\/modern-methods-in-responsive-front-end-development-1\/#primaryimage"},"thumbnailUrl":"https:\/\/tasarlab.com\/wp-content\/uploads\/2023\/07\/responsive-front-end-gelistirmede-modern-yontemler-1-image.jpg","datePublished":"2023-07-31T12:38:09+00:00","dateModified":"2024-09-18T09:53:23+00:00","description":"Uncover essential methods for responsive front-end development. Learn how to build websites that look great on any device with the latest techniques.","breadcrumb":{"@id":"https:\/\/tasarlab.com\/en\/modern-methods-in-responsive-front-end-development-1\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/tasarlab.com\/en\/modern-methods-in-responsive-front-end-development-1\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/tasarlab.com\/en\/modern-methods-in-responsive-front-end-development-1\/#primaryimage","url":"https:\/\/tasarlab.com\/wp-content\/uploads\/2023\/07\/responsive-front-end-gelistirmede-modern-yontemler-1-image.jpg","contentUrl":"https:\/\/tasarlab.com\/wp-content\/uploads\/2023\/07\/responsive-front-end-gelistirmede-modern-yontemler-1-image.jpg","width":350,"height":270},{"@type":"BreadcrumbList","@id":"https:\/\/tasarlab.com\/en\/modern-methods-in-responsive-front-end-development-1\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Anasayfa","item":"https:\/\/tasarlab.com\/en\/"},{"@type":"ListItem","position":2,"name":"Modern Methods in Responsive Front-end Development \u2013 1"}]},{"@type":"WebSite","@id":"https:\/\/tasarlab.com\/en\/#website","url":"https:\/\/tasarlab.com\/en\/","name":"Tasarlab","description":"","publisher":{"@id":"https:\/\/tasarlab.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/tasarlab.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/tasarlab.com\/en\/#organization","name":"Tasarlab","url":"https:\/\/tasarlab.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/tasarlab.com\/en\/#\/schema\/logo\/image\/","url":"https:\/\/tasarlab.com\/wp-content\/uploads\/tasarlab-og-image.png","contentUrl":"https:\/\/tasarlab.com\/wp-content\/uploads\/tasarlab-og-image.png","width":1200,"height":630,"caption":"Tasarlab"},"image":{"@id":"https:\/\/tasarlab.com\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/tasarlab\/","https:\/\/x.com\/tasarlabcom","https:\/\/tr.linkedin.com\/company\/tasarlab"]},{"@type":"Person","@id":"https:\/\/tasarlab.com\/en\/#\/schema\/person\/4f34d3e378ac2e1722778d3f54a398fb","name":"Burak \u00d6zk\u0131ran","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/a29c1f7ff77fdf7ea98e42f7cd066236f31a7b423d7d96b9516607384c8cabe0?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/a29c1f7ff77fdf7ea98e42f7cd066236f31a7b423d7d96b9516607384c8cabe0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a29c1f7ff77fdf7ea98e42f7cd066236f31a7b423d7d96b9516607384c8cabe0?s=96&d=mm&r=g","caption":"Burak \u00d6zk\u0131ran"}}]}},"_links":{"self":[{"href":"https:\/\/tasarlab.com\/en\/wp-json\/wp\/v2\/posts\/5240","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tasarlab.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tasarlab.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tasarlab.com\/en\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/tasarlab.com\/en\/wp-json\/wp\/v2\/comments?post=5240"}],"version-history":[{"count":5,"href":"https:\/\/tasarlab.com\/en\/wp-json\/wp\/v2\/posts\/5240\/revisions"}],"predecessor-version":[{"id":5299,"href":"https:\/\/tasarlab.com\/en\/wp-json\/wp\/v2\/posts\/5240\/revisions\/5299"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tasarlab.com\/en\/wp-json\/wp\/v2\/media\/3914"}],"wp:attachment":[{"href":"https:\/\/tasarlab.com\/en\/wp-json\/wp\/v2\/media?parent=5240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tasarlab.com\/en\/wp-json\/wp\/v2\/categories?post=5240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tasarlab.com\/en\/wp-json\/wp\/v2\/tags?post=5240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}