<?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>Forem: Stella Mwanahamuntu</title>
    <description>The latest articles on Forem by Stella Mwanahamuntu (@mwanahamuntu_).</description>
    <link>https://forem.com/mwanahamuntu_</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%2F184879%2F9e60f1b5-edf7-4db2-8cc4-677cbfd87434.jpg</url>
      <title>Forem: Stella Mwanahamuntu</title>
      <link>https://forem.com/mwanahamuntu_</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/mwanahamuntu_"/>
    <language>en</language>
    <item>
      <title>Input field validation for forms: A checklist from a designer to a dev with love</title>
      <dc:creator>Stella Mwanahamuntu</dc:creator>
      <pubDate>Tue, 23 Apr 2024 00:00:35 +0000</pubDate>
      <link>https://forem.com/mwanahamuntu_/input-field-validation-for-forms-a-checklist-from-a-designer-to-a-dev-with-love-1c2h</link>
      <guid>https://forem.com/mwanahamuntu_/input-field-validation-for-forms-a-checklist-from-a-designer-to-a-dev-with-love-1c2h</guid>
      <description>&lt;p&gt;FORM VALIDATION IS TAKEN FOR GRANTED AND YET IT COULD MAKE OR BREAK THE QUALITY OF WORK YOU PUSH TO STAGING OR PRODUCTION. &lt;br&gt;
I have created a quick checklist to help your form validation be as sleek as Kim Kardashian's bun. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Start here&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Identify Required Fields: Clearly mark all mandatory fields (asterisk, bold text) &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Define Validation Rules: Document specific requirements for each field (length, format, etc.) &lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;*&lt;em&gt;Validation Checks *&lt;/em&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Length:  Minimum and maximum characters allowed (e.g., username 6-20 characters) &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Data Type: Numbers only, letters only, email format, etc. (use regular expressions if needed) &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Range:  For numbers (e.g., age between 18-65) &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Selection: Ensure dropdowns or radio buttons have a valid selection &lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;*&lt;em&gt;Error Messages *&lt;/em&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Clarity: Use clear and concise language (e.g., "Username must be 6-20 characters") &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Specificity: Indicate the exact error (e.g., "Invalid email format"). &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;User-friendliness:  Avoid technical jargon (e.g., "Please enter a valid email" instead of "Invalid email syntax"). &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Placement: Display error messages near the associated field. &lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Additional Tips&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Real-time feedback: Consider inline validation as users type (e.g., color change for invalid input). &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Positive reinforcement: Acknowledge successful validation (e.g., green checkmark). &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Testing: Thoroughly test all validation scenarios. &lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;YOU ARE WELCOME 😘😘😘&lt;/p&gt;

</description>
      <category>frontend</category>
      <category>testing</category>
      <category>design</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Show and Hide Element using CSS with/without JavaScript</title>
      <dc:creator>Stella Mwanahamuntu</dc:creator>
      <pubDate>Sun, 09 Feb 2020 15:05:04 +0000</pubDate>
      <link>https://forem.com/mwanahamuntu_/show-and-hide-element-using-css-with-without-javascript-41l7</link>
      <guid>https://forem.com/mwanahamuntu_/show-and-hide-element-using-css-with-without-javascript-41l7</guid>
      <description>&lt;p&gt;You can control layout by showing and hiding them declaratively in the HTML markup or modifying the objects' CSS properties, sometimes using Javascript.&lt;/p&gt;

&lt;h3&gt;The Display Property&lt;/h3&gt; 

&lt;p&gt;The display property specifies if and how an element is displayed. &lt;br&gt;
The display property accepts three possible values;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;inline: browser displays the item and elements only takes up as much space as necessary.
Examples of inline elements are the span, a and img tags.
&lt;/li&gt;
&lt;li&gt;block: stretches out to and as far as it can. Examples of the block elements are li, div, h1 - h6, p, form, header, footer and section tags.&lt;/li&gt;
&lt;li&gt;none: browser hides the item.&lt;/li&gt;
&lt;li&gt;inherit: inherits property from parent element.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;The Visibilty Property&lt;/h3&gt;

&lt;p&gt;The Visibility specifies whether or not an element should be visible.&lt;br&gt;
The visibility property accepts four possible values;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;visible: visible to show elements&lt;/li&gt;
&lt;li&gt;hidden: hides elements&lt;/li&gt;
&lt;li&gt;collapse: collapses elements where applicable, such as a table row&lt;/li&gt;
&lt;li&gt;inherit: inherits the values of the visibility property from the parent&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I hope this codepen does some justice&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/stellahstarr/embed/BaNyGrz?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>css</category>
      <category>javascript</category>
      <category>webdev</category>
      <category>beginners</category>
    </item>
    <item>
      <title>The Language of Your Dreams.</title>
      <dc:creator>Stella Mwanahamuntu</dc:creator>
      <pubDate>Wed, 05 Feb 2020 20:33:22 +0000</pubDate>
      <link>https://forem.com/mwanahamuntu_/the-language-of-your-dreams-1jll</link>
      <guid>https://forem.com/mwanahamuntu_/the-language-of-your-dreams-1jll</guid>
      <description>&lt;p&gt;If you had to choose a programming language, which you would know 100% percent and really be good at, forget the student loans, sleepless nights or experience,&lt;b&gt;&lt;br&gt;
Which Language would you choose? And Why?&lt;/b&gt;&lt;/p&gt;

</description>
      <category>discuss</category>
    </item>
    <item>
      <title>Apply styling to HTML elements programmatically: Apply a Transform</title>
      <dc:creator>Stella Mwanahamuntu</dc:creator>
      <pubDate>Tue, 04 Feb 2020 08:05:12 +0000</pubDate>
      <link>https://forem.com/mwanahamuntu_/apply-styling-to-html-elements-programmatically-apply-a-transform-4a86</link>
      <guid>https://forem.com/mwanahamuntu_/apply-styling-to-html-elements-programmatically-apply-a-transform-4a86</guid>
      <description>&lt;p&gt;I was excited to remember transforms from my high-school mathematics.&lt;/p&gt;

&lt;p&gt;Transforms in programming make it possible for you to make an element to grow, shrink and basically move in any direction you program it to.&lt;/p&gt;

&lt;p&gt;The CSS syntax for applying transforms to an element&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;transform&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nt"&gt;none&lt;/span&gt;
           &lt;span class="nt"&gt;transform-function&lt;/span&gt;
           &lt;span class="nt"&gt;initial&lt;/span&gt; &lt;span class="c"&gt;/* sets element to it's initial value */&lt;/span&gt;
           &lt;span class="nt"&gt;inherit&lt;/span&gt; &lt;span class="c"&gt;/* specifies that a property should inherit its value from its parent element */&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Transforms can be applied using CSS and/or JavaScript and in this post I will try to illustrate as many ways possible. &lt;/p&gt;

&lt;h3&gt;The Rotate Method&lt;/h3&gt;

&lt;p&gt;The rotate method defines a 2D (the angle is specified in the parameter) and 3D(along the x,y,z angles). Rotate clockwise is represented by positive angles and rotation in the anticlockwise direction is represented by negative angles. &lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/stellahstarr/embed/bGNXmGd?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/stellahstarr/embed/qBEegPL?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h3&gt;The Translate Method&lt;/h3&gt;

&lt;p&gt;The translate method allows you to move an HTML element by changing it's X and/or Y position on the page. &lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/stellahstarr/embed/jOEgRLN?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/stellahstarr/embed/wvawKae?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h3&gt;The Skew Method &lt;/h3&gt;

&lt;p&gt;Skewing slants or places an element on a page in such a way that is not parallel to the horizontal or vertical axis of the screen - &lt;em&gt;omg, I don't know if that explanation makes sense.&lt;/em&gt; &lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/stellahstarr/embed/XWbrXbm?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/stellahstarr/embed/yLNBeaB?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h3&gt;The Scale Method&lt;/h3&gt;

&lt;p&gt;The scale method resizes elements by specific ratios. The scale method takes one parameter, a decimal value that represents the % to scale. &lt;br&gt;
Values greater than 1 make the image image bigger and values less than 1 but greater than 0, - 0 &amp;gt; &lt;em&gt;let x=value&lt;/em&gt; &amp;lt; 1, make the image smaller. &lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/stellahstarr/embed/bGdbEBz?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/stellahstarr/embed/YzXKwZY?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;b&gt;Note&lt;/b&gt;:The transform property can apply a 2D or 3D transformation to an element in both CSS and Javascript.
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Thank you for reading, comments and links to more resources are welcome. &lt;/p&gt;

</description>
      <category>css</category>
      <category>javascript</category>
      <category>beginners</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How to Embed CodePens into your dev.to posts - It's easy.</title>
      <dc:creator>Stella Mwanahamuntu</dc:creator>
      <pubDate>Fri, 31 Jan 2020 14:28:06 +0000</pubDate>
      <link>https://forem.com/mwanahamuntu_/how-to-embed-your-codepens-into-your-dev-to-posts-it-s-easy-4iji</link>
      <guid>https://forem.com/mwanahamuntu_/how-to-embed-your-codepens-into-your-dev-to-posts-it-s-easy-4iji</guid>
      <description>&lt;p&gt;Hey Devs, &lt;/p&gt;

&lt;p&gt;So I recently started writing blog series to share and help me keep track of some courses I have been taking. The only challenge I had was trying to figure out how to display and demonstrate the way code works on the dev.to platform itself. &lt;em&gt;I literally tweeted asking someone to do a tutorial.&lt;/em&gt; &lt;/p&gt;

&lt;p&gt;Turns out it is really as simple as typing&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{% codepen https://codepen.io/cassidoo/pen/MyaWzp %}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;just make sure to avoid putting the back ticks that cause the black background.&lt;/p&gt;

&lt;p&gt;So if it is done correctly, &lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/cassidoo/embed/MyaWzp?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;this should happen.&lt;br&gt;
&lt;em&gt;Ps. I used one of &lt;a href="https://dev.to/cassidoo"&gt; Cassidy's &lt;/a&gt; codepens.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Yep so IT IS really simple.&lt;br&gt;
I am happy to answer any questions or demonstrate in any other way possible. &lt;/p&gt;

&lt;p&gt;Thank you for reading.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>tutorial</category>
      <category>discuss</category>
    </item>
    <item>
      <title>Positioning and Changing the location of an Element.</title>
      <dc:creator>Stella Mwanahamuntu</dc:creator>
      <pubDate>Wed, 29 Jan 2020 21:14:33 +0000</pubDate>
      <link>https://forem.com/mwanahamuntu_/positioning-and-changing-the-location-of-an-element-28be</link>
      <guid>https://forem.com/mwanahamuntu_/positioning-and-changing-the-location-of-an-element-28be</guid>
      <description>&lt;p&gt;&lt;em&gt;Unless otherwise,&lt;/em&gt; HTML elements flow statically from the left to the right in the same order they are declared in your HTML code.&lt;br&gt;
CSS code comes in to provide a mechanism to specify some advanced options in the position of an element. The position property specifies the type of positioning method used for an element.&lt;br&gt;
There are five different position values: static, relative, fixed, absolute, sticky.&lt;/p&gt;

&lt;h3&gt;Static Positioning&lt;/h3&gt;

&lt;p&gt;This is the default for every single page element in HTML. Different elements don't have different default values for positioning, they all start out as static. &lt;br&gt;
A valid reason for static positioning is to forcefully remove positioning that got applied to an element outside of your control, maybe when using a css framework.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;html&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"staticdiv"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  This div element has position: static;
&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;





&lt;div class="highlight"&gt;&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;style&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nc"&gt;.staticdiv&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;position&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;static&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;border&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;3px&lt;/span&gt; &lt;span class="nb"&gt;solid&lt;/span&gt; &lt;span class="m"&gt;#000456&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;style&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h3&gt;Absolute Positioning&lt;/h3&gt;

&lt;p&gt;Absolute positioning allows an element to be placed in an exact location specified, relative to its parent or container's border.&lt;br&gt;
You can apply properties individually; left, right, top, bottom. The absolute position takes a distance parameter that specifies the relative distance of the object from a reference point based on the positioning attribute specified.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"relativediv"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;This div element has position: relative;
  &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"absolutediv"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;This div element has position: absolute;&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;





&lt;div class="highlight"&gt;&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;style&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nc"&gt;.relativediv&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;position&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;relative&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;400px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;200px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;border&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;3px&lt;/span&gt; &lt;span class="nb"&gt;solid&lt;/span&gt; &lt;span class="m"&gt;#73ff57&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; 

&lt;span class="nc"&gt;.absolutediv&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;position&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;absolute&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;top&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;80px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;right&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;200px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;100px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;border&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;3px&lt;/span&gt; &lt;span class="nb"&gt;solid&lt;/span&gt; &lt;span class="m"&gt;#69DA21&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;style&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h3&gt;Relative Positioning&lt;/h3&gt;

&lt;p&gt;With relative positioning, the element is positioned relative to it's immediate left sibling's coordinates.&lt;/p&gt;

&lt;h3&gt;Fixed Positioning&lt;/h3&gt;

&lt;p&gt;Fixed positioning is rarely used. A fixed position element is positioned relative to the viewport or browser window. An element with position:fixed will stay right where it is when the page is scrolled.&lt;/p&gt;

&lt;p&gt;The top, right, bottom, and left properties are used to position the element.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"fixeddiv"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
This div element has position: fixed;
&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;





&lt;div class="highlight"&gt;&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;style&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nc"&gt;.fixeddiv&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;position&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;fixed&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;bottom&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;right&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;300px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;border&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;3px&lt;/span&gt; &lt;span class="nb"&gt;solid&lt;/span&gt; &lt;span class="m"&gt;#73AD21&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;style&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h3&gt;Sticky Positioning&lt;/h3&gt;

&lt;p&gt;The position sticky allows an element to be positioned based on the user's scroll position.&lt;br&gt;
Sticky element toggles between relative and fixed positioning, depending on the scroll position. It is positioned relative until a given offset position is met in the viewport - then it "sticks" in a specified place.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"stickydiv"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;I am sticky!&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;





&lt;div class="highlight"&gt;&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;style&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nc"&gt;.stickydiv&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;position&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;-webkit-sticky&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c"&gt;/*for safari browsers*/&lt;/span&gt;
  &lt;span class="nl"&gt;position&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;sticky&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;top&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;padding&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;5px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;#cae8ca&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;border&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;2px&lt;/span&gt; &lt;span class="nb"&gt;solid&lt;/span&gt; &lt;span class="m"&gt;#4CAF50&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;style&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Yep, that is what I have got on the five positioning values.&lt;br&gt;
Please feel free to drop your comments and anything additional on positioning and location of elements.&lt;/p&gt;

</description>
      <category>css</category>
      <category>html</category>
      <category>beginners</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Creating the Document Structure Using HTML</title>
      <dc:creator>Stella Mwanahamuntu</dc:creator>
      <pubDate>Sun, 12 Jan 2020 06:53:20 +0000</pubDate>
      <link>https://forem.com/mwanahamuntu_/creating-the-document-structure-using-html-4598</link>
      <guid>https://forem.com/mwanahamuntu_/creating-the-document-structure-using-html-4598</guid>
      <description>&lt;p&gt;OBJECTIVE : Structure the UI by using semantic markup, including markup for search engines and screen readers, such as Section, Article, Nav, Header, Footer, and Aside; create a layout container in HTML. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Semantic Elements&lt;/strong&gt; clearly describe their meaning to both the browser and the developer. &lt;/p&gt;

&lt;p&gt;Some &lt;em&gt;and I think all the new&lt;/em&gt; HTML semantic elements include: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&amp;lt;article&amp;gt; - Defines self contained areas on a page. &lt;/li&gt;
&lt;li&gt;&amp;lt;aside&amp;gt; - Like a sidebar, it defines smaller content areas outside the normal layout of the webpage.&lt;/li&gt;
&lt;li&gt;&amp;lt;details&amp;gt; - Defines additional details that the user can choose to view or hide.&lt;/li&gt;
&lt;li&gt;&amp;lt;figcaption&amp;gt; - Defines the caption of a figure eg. an image.
&lt;/li&gt;
&lt;li&gt;&amp;lt;figure&amp;gt; - Groups together an image and caption&lt;/li&gt;
&lt;li&gt;&amp;lt;footer&amp;gt; - Defines the footer section of a document or section in the document&lt;/li&gt;
&lt;li&gt;&amp;lt;header&amp;gt; - Defines the header section of the document or a section in the document&lt;/li&gt;
&lt;li&gt;&amp;lt;main&amp;gt; - Specifies the main content of a document.&lt;/li&gt;
&lt;li&gt;&amp;lt;mark&amp;gt; - Defines marked or highlighted text&lt;/li&gt;
&lt;li&gt;&amp;lt;nav&amp;gt; - Defines navigation links &lt;/li&gt;
&lt;li&gt;&amp;lt;progress&amp;gt; - Represents the progress of an objective or task.&lt;/li&gt;
&lt;li&gt;&amp;lt;section&amp;gt; - Defines a section in the document&lt;/li&gt;
&lt;li&gt;&amp;lt;summary&amp;gt; - Defines a visible heading for &amp;lt;details&amp;gt;&lt;/li&gt;
&lt;li&gt;&amp;lt;time&amp;gt; - Defines date and time&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Yep that is about it on Creating the document structure. The next post will be on Writing Code that Interacts with UI Controls and hopefully I will have learned how to embed code snippets and images. &lt;/p&gt;

&lt;p&gt;Thank you and comments and discussions are welcome.&lt;/p&gt;

</description>
      <category>html</category>
      <category>beginners</category>
      <category>tutorial</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Preparing for my Microsoft Exam 70-480</title>
      <dc:creator>Stella Mwanahamuntu</dc:creator>
      <pubDate>Sat, 11 Jan 2020 19:29:44 +0000</pubDate>
      <link>https://forem.com/mwanahamuntu_/preparing-for-my-microsoft-exam-70-480-1m3p</link>
      <guid>https://forem.com/mwanahamuntu_/preparing-for-my-microsoft-exam-70-480-1m3p</guid>
      <description>&lt;p&gt;Hey Devs, &lt;br&gt;
I am junior and self taught developer, most of my experience being with WordPress. I love working in the frontend. &lt;/p&gt;

&lt;p&gt;I was fortunate enough to be hired way before I had ever written a line of code but unfortanately, in my country certifications kind of truimph experience so in the event that I lose my job, it would mean I stay jobless. &lt;/p&gt;

&lt;p&gt;This story's happy ending starts before the actual end. MY BOSS IS PAYING FOR MY MICROSOFT CERTIFICATION!!! so yeah, I will be documenting everything I learn and I hope this series will serve as a helpful resource for anyone else pursuing the course in the future. &lt;/p&gt;

&lt;p&gt;I will try to upload posts consistently, atleast once a week. Most of what I will be sharing will probably be from &lt;a href="https://www.freecodecamp.org/"&gt;freecodecamp&lt;/a&gt; and &lt;a href="https://www.w3schools.com/"&gt;w3schools&lt;/a&gt; but more curated and edited to my own understanding.  &lt;/p&gt;

&lt;p&gt;Let's get started with what the topics I will be covering in this series. &lt;/p&gt;

&lt;h3&gt;Implement and Manipulate Document Structures and Objects&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
Create the Document Structure by using HTML
&lt;/li&gt;
&lt;li&gt;
Write Code that Interacts with UI Controls
&lt;/li&gt;
&lt;li&gt;
Apply Styling to HTML Elements Programmatically
&lt;/li&gt;
&lt;li&gt;
Implement HTML5 APIs
&lt;/li&gt;
&lt;li&gt;Establish the Scope of Objects and Variables
&lt;/li&gt;
&lt;li&gt;
Create and Implement Objects and Methods&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>beginners</category>
      <category>webdev</category>
      <category>tutorial</category>
      <category>html</category>
    </item>
    <item>
      <title>Building with React, WordPress and GraphQL</title>
      <dc:creator>Stella Mwanahamuntu</dc:creator>
      <pubDate>Thu, 31 Oct 2019 06:09:13 +0000</pubDate>
      <link>https://forem.com/mwanahamuntu_/building-with-react-wordpress-and-graphql-bnn</link>
      <guid>https://forem.com/mwanahamuntu_/building-with-react-wordpress-and-graphql-bnn</guid>
      <description>&lt;p&gt;I am currently working on a project that needs me to work with WordPress, Graphql, and React. &lt;/p&gt;

&lt;p&gt;I downloaded WPGraphQL plugin and found that WPGraphQl may have some limitations. I haven't been able to create an endpoint to communicate between WordPress and another external Database that belongs to another Micro-service. If I am not mistaken I have to write a PHP function of some sort. &lt;/p&gt;

&lt;p&gt;Any advice and tips??&lt;/p&gt;

&lt;p&gt;Thank you. &lt;/p&gt;

</description>
      <category>beginners</category>
      <category>wordpress</category>
      <category>graphql</category>
    </item>
    <item>
      <title>Which Language to learn: 5 reasons to Choose Javascript + resources. </title>
      <dc:creator>Stella Mwanahamuntu</dc:creator>
      <pubDate>Sun, 25 Aug 2019 11:13:26 +0000</pubDate>
      <link>https://forem.com/mwanahamuntu_/which-language-to-learn-5-reasons-to-choose-javascript-resources-4e6l</link>
      <guid>https://forem.com/mwanahamuntu_/which-language-to-learn-5-reasons-to-choose-javascript-resources-4e6l</guid>
      <description>&lt;p&gt;Programming skills are in high demand at least in my country Zambia, we are in the information age and people who can code generally earn higher salaries. It is not set in stone which is the best programming language because technology and functionality are ever-changing. The best programming language to learn depends on why you want to learn to code, your interests or for career goals.&lt;/p&gt;

&lt;p&gt;"Software ate the world, the web ate software, and Javascript ate the web."&lt;/p&gt;

&lt;p&gt;In this article, my first of many code related articles to come, I explore some reasons why Javascript is a good programming language to learn. I also include a couple of resources to help you learn Javascript.&lt;/p&gt;

&lt;h2&gt;1. JavaScript runs the Web.&lt;/h2&gt;

&lt;p&gt;Aside from the fact that all code in the browser runs in javascript, with a few exceptions, JavaScript teaches you programming concepts that apply to many other languages.&lt;/p&gt;

&lt;h2&gt; 2. Getting started with JavaScript is easy.&lt;/h2&gt;

&lt;p&gt;Some programming languages such as Java and .NET languages need you to have proprietary tools or install extra files. In Chrome, you can ‘right click’ on any page, click inspect and you get a console in which you can run JavaScript. There is literally no reason or excuse not to get started with JavaScript.&lt;/p&gt;

&lt;h2&gt;3. JavaScript is ubiquitous.&lt;/h2&gt;

&lt;p&gt;Alongside HTML and CSS, you can use JavaScript to create any kind of website or web application. Thanks to the many available libraries and frameworks such as React and Electron, javascript can be used to build mobile apps for iOS and Android, desktop apps, smart TVs and IoT devices found in smart homes. Javascript can also be used for server-side programming thanks to Node.js&lt;/p&gt;

&lt;p&gt;Virtually everyone who has an internet-connected device with a screen can use apps written in JavaScript&lt;/p&gt;

&lt;h2&gt;4. JavaScript has a forgiving Syntax.&lt;/h2&gt;

&lt;p&gt;When you are learning a new language there are rules on how to speak or write the language. If you break these rules, the message you are trying to communicate completely changes or in the case of computer programming becomes invalid.&lt;/p&gt;

&lt;p&gt;Javascript’s forgiving syntax makes it really easy to learn the language. However, it’s important to explore best practices as you get better at the language for your own good, that of someone who might need to use your code and to keep away bugs.&lt;/p&gt;

&lt;h2&gt;5. JavaScript will get you paid easily and well.&lt;/h2&gt;

&lt;p&gt;Allow me to briefly talk about the Javascript Library called React. It was created by Jordan Walke a Software Engineer at Facebook. This framework has been used to build user interfaces for some of the most popular everyday apps we use on our phones such as Facebook, Instagram, SoundCloud, etc. Apps built with React are also cost-effective and are characterized by high performance.&lt;/p&gt;

&lt;p&gt;Combining the speed of JavaScript with simplicity and improved performance, you can significantly optimize efforts of building an app, saving the employers’ time and money, and offer smart solutions to businesses.&lt;/p&gt;

&lt;p&gt;If you are a looking for a software development job in Zambia or anywhere else in the world, having Javascript as one of your skills would give you an advantage over other developers.&lt;/p&gt;

&lt;p&gt;Recommended Read: &lt;a href="https://link.medium.com/y8v6I326qZ"&gt;How Popular is JavaScript in 2019&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;Some resources for beginners learning Javascript:&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Mozilla JavaScript (free)&lt;/li&gt;
&lt;li&gt;freeCodeCamp (free)&lt;/li&gt;
&lt;li&gt;JavaScript Info (free)&lt;/li&gt;
&lt;li&gt;Codecademy&lt;/li&gt;
&lt;li&gt;Frontend Masters&lt;/li&gt;
&lt;li&gt;egghead.io&lt;/li&gt;
&lt;li&gt;Eloquent Javascript&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I wish you all the best and success in your coding journey.&lt;/p&gt;

&lt;p&gt;I originally published os on my blog &lt;a href="https://www.florasgirl.com/why-learn-javascript-in-2019/"&gt;Flora’s Girl&lt;/a&gt; but I thought to share it with my dev community too. &lt;/p&gt;

</description>
      <category>javascript</category>
      <category>discuss</category>
    </item>
  </channel>
</rss>
