<?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: CHAITANYA</title>
    <description>The latest articles on DEV Community by CHAITANYA (@chaitanya71998).</description>
    <link>https://dev.to/chaitanya71998</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%2F566368%2Fc7039f28-fefc-4f2d-b8e4-ecb73c0b880f.jpeg</url>
      <title>DEV Community: CHAITANYA</title>
      <link>https://dev.to/chaitanya71998</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/chaitanya71998"/>
    <language>en</language>
    <item>
      <title>Position elements.Absolute, fixed and sticky</title>
      <dc:creator>CHAITANYA</dc:creator>
      <pubDate>Fri, 08 Jul 2022 11:42:45 +0000</pubDate>
      <link>https://dev.to/chaitanya71998/absolute-fixed-and-sticky-position-elements-5hmg</link>
      <guid>https://dev.to/chaitanya71998/absolute-fixed-and-sticky-position-elements-5hmg</guid>
      <description>&lt;p&gt;&lt;strong&gt;Position&lt;/strong&gt; is used to make the element settle at a place in the page layout. &lt;br&gt;
Absolute, fixed and sticky are values to CSS position property.&lt;/p&gt;

&lt;p&gt;Absolute: Element with position absolute is removed from the document. And no space is created for absolute element. It set in the page based on its nearest positioned ancestor. Otherwise, it is placed relative with its initial containing block. Final positions of the absolute element are set using top, left, right and bottom values.&lt;br&gt;
Ex: place an element in element at a particular height, close icons modals.&lt;/p&gt;

&lt;p&gt;Fixed: Fixed elements is removed from the normal document flow, and no space is created for the element in the page layout. It is positioned relative to the initial containing block(body/document). final position of fixed element will be also set using the top, left,right and bottom values.&lt;br&gt;
Ex: chat icons, headers, bottom, navbars.&lt;/p&gt;

&lt;p&gt;Sticky:  Element with sticky value is positioned according to the normal flow in the document. and then offsets relative to its nearest scrolling ancestor and containing block. Even though the element is in the document its offset position does not effect the nearest elements. A sticky element "sticks" to its nearest ancestor that has a "scrolling mechanism". even if that ancestor isn't the nearest actually scrolling ancestor.&lt;br&gt;
Sticky element works can be visualised only when the immediate ancestor has scrolling.  &lt;/p&gt;

&lt;p&gt;Ex: Scrollable headers, side headings, tab bars headers.&lt;/p&gt;

&lt;p&gt;Reference:  &lt;a href="https://developer.mozilla.org/en-US/docs/Web/CSS/position"&gt;https://developer.mozilla.org/en-US/docs/Web/CSS/position&lt;/a&gt;&lt;/p&gt;

</description>
      <category>position</category>
      <category>absolute</category>
      <category>fixed</category>
      <category>sticky</category>
    </item>
    <item>
      <title>Answer: Disable scrolling when changing focus form elements ipad web app</title>
      <dc:creator>CHAITANYA</dc:creator>
      <pubDate>Thu, 16 Dec 2021 10:11:06 +0000</pubDate>
      <link>https://dev.to/chaitanya71998/answer-disable-scrolling-when-changing-focus-form-elements-ipad-web-app-2fda</link>
      <guid>https://dev.to/chaitanya71998/answer-disable-scrolling-when-changing-focus-form-elements-ipad-web-app-2fda</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7Gn-iPj_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/6740253/disable-scrolling-when-changing-focus-form-elements-ipad-web-app/9298941#9298941" rel="noopener noreferrer"&gt;
            &lt;span class="title-flare"&gt;answer&lt;/span&gt; re: Disable scrolling when changing focus form elements ipad web app
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Feb 15 '12&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/6740253/disable-scrolling-when-changing-focus-form-elements-ipad-web-app/9298941#9298941" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Y9mJpuJP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          15
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wif5Zq3z--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;I've found that in UIWebView, document.body is also sometimes moved. So I use:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;    input.onfocus = function () {
        window.scrollTo(0, 0);
        document.body.scrollTop = 0;
    }
&lt;/code&gt;&lt;/pre&gt;

    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/6740253/disable-scrolling-when-changing-focus-form-elements-ipad-web-app/9298941#9298941" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
  </channel>
</rss>
