<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: berkayalatas</title>
    <description>The latest articles on DEV Community by berkayalatas (@berkayalatas).</description>
    <link>https://dev.to/berkayalatas</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F369596%2F63068ff1-dbf4-405c-8620-09a306c960e4.png</url>
      <title>DEV Community: berkayalatas</title>
      <link>https://dev.to/berkayalatas</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/berkayalatas"/>
    <language>en</language>
    <item>
      <title>What is Responsive Web design?</title>
      <dc:creator>berkayalatas</dc:creator>
      <pubDate>Mon, 21 Sep 2020 09:56:40 +0000</pubDate>
      <link>https://dev.to/berkayalatas/what-is-responsive-web-design-4jmk</link>
      <guid>https://dev.to/berkayalatas/what-is-responsive-web-design-4jmk</guid>
      <description>&lt;h2&gt;
  
  
  What is Responsive Web design?
&lt;/h2&gt;

&lt;p&gt;Responsive Web design is the approach that suggests that design and development should respond to the user’s &lt;br&gt;
behavior and environment based on screen size, platform and orientation.&lt;/p&gt;
&lt;h2&gt;
  
  
  Meta Tag
&lt;/h2&gt;

&lt;p&gt;The width property controls the size of the viewport. It can be set to a specific number of pixels like width=600 or to the &lt;br&gt;
special value device-width, which is the width of the screen in CSS pixels at a scale of 100%. (There are corresponding height &lt;br&gt;
and device-height values, which may be useful for pages with elements that change size or position based on the viewport height.)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;meta name="viewport" content="width=device-width; initial-scale=1.0"&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h2&gt;
  
  
  Page Widths
&lt;/h2&gt;

&lt;p&gt;Say you’re looking to provide three different responsive page layouts: one for desktops, one for tablets (or laptops), and one for &lt;br&gt;
smartphones.Unfortunately, there’s no defined standard for the page widths to target, but the following example responsive values&lt;br&gt;
are often used:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    320px
    480px
    600px
    768px
    900px
    1024px
    1200px
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;With any of these reasonable sets of increments, you can target most devices. In practice, there is usually no need to &lt;br&gt;
separately handle all of the aforementioned examples of page widths seven different resolutions is probably overkill. &lt;/p&gt;
&lt;h2&gt;
  
  
  Which devices should I target?
&lt;/h2&gt;

&lt;p&gt;The purest answer is none of them.&lt;br&gt;
More and more devices are going to come to the market and it seems silly that a device with 767px assumes a 480px &lt;br&gt;
design because that’s where you set the breakpoint.  Instead if it were set at 800px and again at &lt;br&gt;
600px (or at what ever point the design looked bad) then you cover ANY device that comes along next week, and years into the future.&lt;/p&gt;
&lt;h2&gt;
  
  
  Mobile First
&lt;/h2&gt;

&lt;p&gt;Approaching the design mobile first is the best approach for a responsive design. It allows you to layout the &lt;br&gt;
content that is most important to your customers in a clear and logical way on the smallest screen real-estate. &lt;br&gt;
This will force you to really identify what is the most important information on your site.&lt;/p&gt;
&lt;h2&gt;
  
  
  Media Queries
&lt;/h2&gt;

&lt;p&gt;CSS3 supports all of the same media types as CSS 2.1, such as screen, print and handheld, but has added dozens of&lt;br&gt;
new media features, including max-width, device-width, orientation and color. New devices made after the release of&lt;br&gt;
CSS3 (such as the iPad and Android devices) will definitely support media features. So, calling a media query using &lt;br&gt;
CSS3 features to target these devices would work just fine.&lt;/p&gt;

&lt;p&gt;Common Breakpoints:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    320px — 480px: Mobile devices
    481px — 768px: iPads, Tablets
    769px — 1024px: Small screens, laptops
    1025px — 1200px: Desktops, large screens
    1201px and more —  Extra large screens, TV
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Syntax&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;@media media type and (condition: breakpoint) {
  // CSS rules
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



</description>
      <category>html</category>
      <category>css</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
