<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Cynthia Adhiambo Otieno on Medium]]></title>
        <description><![CDATA[Stories by Cynthia Adhiambo Otieno on Medium]]></description>
        <link>https://medium.com/@cinadhiambo22?source=rss-f2b7e1be5f9d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*n_y2046Xq0TQSewPViHBhw.jpeg</url>
            <title>Stories by Cynthia Adhiambo Otieno on Medium</title>
            <link>https://medium.com/@cinadhiambo22?source=rss-f2b7e1be5f9d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 16:44:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cinadhiambo22/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[GETTING A RETURN OFFER FROM YOUR TECH INTERNSHIP]]></title>
            <link>https://medium.com/@cinadhiambo22/getting-a-return-offer-from-your-tech-internship-d634ecd6d39d?source=rss-f2b7e1be5f9d------2</link>
            <guid isPermaLink="false">https://medium.com/p/d634ecd6d39d</guid>
            <category><![CDATA[tech-internship]]></category>
            <category><![CDATA[big-tech]]></category>
            <category><![CDATA[return-offer]]></category>
            <category><![CDATA[tech-career]]></category>
            <dc:creator><![CDATA[Cynthia Adhiambo Otieno]]></dc:creator>
            <pubDate>Mon, 13 Jan 2025 08:02:39 GMT</pubDate>
            <atom:updated>2025-01-14T07:10:34.696Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fwuf3Mn5LFA2FHFhYq8gQQ.jpeg" /></figure><p>Securing a return offer after a software engineering internship is an exciting prospect, especially for those about to graduate college; given the current job climate. Contrary to what most of us believe to be the recipe for a successful internship, it often requires more than just performing well in your daily tasks. It requires a balance of technical excellence, good interpersonal skills and a strong work ethic.</p><p>I also fell into the trap of thinking completing my project was enough during my Data Science internship at Meta and as you can guess, that was not enough for me to stand out. After-all, most interns end up completing their projects anyway. After reflecting on this experience, here are some tips that helped me secure a return offer during my next internship — a software Engineering internship role at Snap Inc, that I believe could be helpful to other interns looking to get return offers as well.</p><h3>1. Focus on Technical Excellence</h3><ul><li><strong>Learn the Tools of the Trade:</strong> Familiarize yourself with the technologies and tools commonly used by the company earlier on. This may include version control, databases, cloud platforms, or frameworks specific to your team.</li><li><strong>Master the Fundamentals</strong>: Make sure you have a solid understanding of computer science fundamentals like data structures, algorithms, and system design. These will come up during your coding tasks and interactions with senior engineers.</li><li>Focus on writing code that is not just functional but also clean, readable, and efficient. Familiarize yourself with best practices used by the team (e.g., naming conventions, comments, code organization) by asking your mentor and other senior engineers in your team.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pfFE6hH_o3Pp2I2OXfOsEg.jpeg" /></figure><h3>2. Communicate Effectively</h3><ul><li><strong>Ask Smart Questions:</strong> Don’t hesitate to ask questions to your mentor, but ensure they are thoughtful and demonstrate that you’ve already tried to figure things out on your own first. This shows initiative and a willingness to learn.</li><li><strong>Keep Stakeholders Updated:</strong> Regularly update your mentor, manager and other team members on your progress. Set up one-on-one with other engineers in the team aside from your mentor and tell them what you are working on or ask for their advice on challenges when your mentor is not accessible.</li><li><strong>Effective Communication in Code Reviews:</strong> ​​Be open to feedback and show that you can respond constructively to code reviews. For beginners, code reviews can be frustrating as you might have to go through several rounds before receiving approval. Don’t take it personally — learn from the feedback and aim to prevent the same issues from coming up next time. Make sure to explain your thought process behind design choices, and demonstrate your ability to collaborate and iterate.</li></ul><h3>3.Demonstrate Initiative and Independence.</h3><ul><li><strong>Move Beyond the Basics:</strong> While it’s okay to be hand-held during the first month of your internship, as you get comfortable, show initiative and autonomy.</li><li><strong>Seek Solutions Independently:</strong> If you’re stuck, don’t wait for your mentor to provide the answer. Reach out to other engineers, read documentation, or explore resources like wiki pages.</li><li><strong>Proactive Contributions:</strong> If you see something that needs to be done (e.g., fixing a bug, improving documentation), bring it up with your manager or mentor and offer to help. Proactively ask for additional responsibilities that could benefit the team, such as updating onboarding documentation if you notice it’s outdated.</li></ul><h3>4. Demonstrate Problem-Solving Skills</h3><ul><li><strong>Think Critically:</strong> When solving problems, think critically about potential solutions and be able to articulate why you chose a particular approach. Your manager/mentor wants to see that you can approach challenges thoughtfully.</li><li><strong>Contribute to Design Discussions:</strong> Participate in technical design discussions. Even if you don’t have all the answers, asking insightful questions or suggesting ideas shows your analytical thinking.</li><li><strong>Debugging Skills:</strong> If you encounter issues, demonstrate strong debugging skills. The ability to troubleshoot effectively and methodically is highly valued.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6XuOrreXNIZ9wwN7YjZuRQ.jpeg" /></figure><h3>5. Build strong relationship with Your Team</h3><ul><li><strong>Participate in Company Culture:</strong> Engage in social or extracurricular activities at the company (e.g., happy hours, hackathons, lunch and learns). Being a part of the company’s culture helps to leave a positive impression on other members of the team.</li><li><strong>Network Internally:</strong> Build relationships with other engineers, team members, and cross-functional teams. You never know who might influence the return offer decision. Your manager might be the final decision maker but he/she will seek feedback about you from the rest of the team as well before that decision is made.</li><li><strong>Be likable:</strong> Exercise your social skills to be easy to work with and get along with. This does not mean you should fake it, just don’t be a drag that no one wants to be around.</li><li><strong>Engage with Mentors and Managers:</strong> Make sure to have regular one-on-one check-ins with your manager or mentor. Ask for feedback, discuss your growth, and ask how you can improve or contribute more.</li></ul><h3>6. Show Consistency and Reliability</h3><ul><li><strong>Meet Deadlines:</strong> Ensure you’re consistently reliable by meeting deadlines. If you need more time, communicate early and manage expectations. Even if you can’t finish everything by the end of the internship, aim to hit the major milestones that cover the core functionality of your project.</li><li><strong>Handle Pressure Well:</strong> Software engineering can sometimes be stressful, and deadlines are often tight. Demonstrating that you can manage pressure and deliver quality work under time constraints is a plus.</li></ul><h3>7. Express Interest in Returning Early</h3><ul><li>From the outset, express your interest in returning for a full-time role. This helps set expectations with your manager so that they can guide you toward that goal throughout your internship. Sometimes, managers may not know you’re interested unless you let them know.</li></ul><p>To sum it up, securing a return offer after an internship is not just about completing a project — it’s about showing that you can contribute meaningfully to the team, continuously learn, and align with the company’s values. By focusing on technical excellence, effective communication, and building strong relationships with your team, you not only increase your chances of receiving a return offer but also set yourself up for long-term success in your career. Remember, internships are an opportunity to learn, grow, and prove that you’re ready for the next step, so make the most of it. Best of luck in your journey, and I hope these tips help you stand out and secure that coveted return offer!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d634ecd6d39d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WHAT ‘CSS VARIABLES’ ARE ALL ABOUT…]]></title>
            <link>https://medium.com/@cinadhiambo22/what-css-variables-are-all-about-498f01e4956a?source=rss-f2b7e1be5f9d------2</link>
            <guid isPermaLink="false">https://medium.com/p/498f01e4956a</guid>
            <category><![CDATA[css-custom-properties]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[Cynthia Adhiambo Otieno]]></dc:creator>
            <pubDate>Mon, 04 May 2020 16:35:00 GMT</pubDate>
            <atom:updated>2020-05-04T16:35:00.731Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*aBMAMOowKFf04GKvDxYsaQ.png" /></figure><p>With every new language comes not only the need to learn and remember the new syntax but also the need to either locate third-party libraries or rewrite those utility functions that you depend on every day. Writing and maintaining these repeating lines of code costs time and an overall loss of productivity. For every redundant copy of the same functionality, you have incremented your maintenance demands, made it more likely that you’ll fix the same bug in one place and not another, and increased the complexity of adding a new feature. A mainstay principle of software engineering is Don’t Repeat Yourself.</p><p>One of the key features that makes any programming language convenient for use is the ability for its users to implement a solution for a problem once and reuse it, instead of scattering copies all over your code;an approach that has been taken by many languages through the use of functions,local storages etc. This gives you one central place to validate this functionality and updates will be effective everywhere you use this functionality.This also ensures fast browser loading time for the case of Web languages since you save on code weight.We will be looking at how CSS has over time improved its features to implement this approach through custom properties.</p><p><strong>Custom CSS properties(often referred to as CSS variables)</strong> are property values defined by the developer for the purpose of being reused throughout a document/Project. Very large web apps normally have very large amounts of CSS, often with a lot of repeated values.Try and imagine a web app where buttons, cards, forms,nav-bar and whatever else the authors decide have the same linear background-image to create a certain consistent theme.Not only is it going to be hectic should there be need for a dynamic change to another theme, but also imagine having to access all those elements in your JavaScript to change their background while you could easily just access the declared background variable and the change made will be cascaded down to all other elements that use it! Yikes, sounds hectic already just by saying it.</p><p>So I know you’re probably wondering, “But don’t we have SASS and LESS for that?” which also let you set variables and use them in functions, loops, mathematical operations, etc.However, The differences spring from the fact that CSS variables are actual CSS properties running in the browser, while pre-processor variables get compiled into regular CSS code, therefore the browser knows nothing about them.You can therefore update CSS variables in a style-sheet document or choose to manipulate them on the fly using JavaScript. You can’t do any of this with pre-processor variables.</p><p>I think we’ve talked enough up to that point and you’re wondering, where’s the code?</p><p>THE SYNTAX</p><p>element{</p><p>--custom-name: CSS property value</p><p>}</p><p>Declaring a custom property is done using a custom property name that begins with a double hyphen (--), and a property value that can be any valid CSS value.The value should represents the entirety of what a valid declaration can have as its value.What this means is that you can’t set your –main-color to 15px and expect it to work as a color value, CSS will interpret it as a size value and when used later on properties like font-color or background color, the value won’t be set.Lastly,like any other property, this is written inside a rule-set(Element) which defines the scope to which the property will be applied.</p><p>A common practice is to define custom properties on the <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/:root">:root</a> pseudo-class,which acts as the body element so that it can be applied globally across your HTML document.However you can still declare it inside an element like maybe a form and it will be applied to a scope of its child elements only. Then use the var() function to insert the value of the custom property in various elements. The syntax of the var() function is as follows:</p><p>var(--customProp-name,value)</p><p>The value is an optional fallback used if the custom property is invalid.</p><p>The following example first defines a global custom property named--main-theme-color , then it uses the var() function to insert the value of the custom property later in the style sheet:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*ZcvyYIRP4jpawDLcickfZg.png" /></figure><p>--main-theme-color is an author defined custom property with a value of . rgb(2, 80, 94)and the value applied to various elements.If –main-color is not defined then it falls back to pink.</p><p>Custom properties do inherit. This means that if no value is set for a custom property on a given element, the value of its parent is used. Take this HTML:</p><p>We have a parent div element with two child divs in it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/407/1*Rm23P__ND2y7B-iqyNA7Iw.png" /><figcaption>THE HTML</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/313/1*cXihnjkWJAOyKUcnwKwQHA.png" /><figcaption>THE CSS</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/461/1*cX_bVblGCA4m2HVn8xVONQ.png" /><figcaption>BROWSER VIEW</figcaption></figure><p>In the CSS, the parent has declared a variable of --main-size( a good illustration of a variable that only scales the parent-div scope and not the whole argument). The --main-size has been used to assign the font-size. child1has also declared its own variable --child-sizewhich determines its font-size.child2 however doesn’t have any variable declared or font size assigned yet on the browser it has the same font-size as the parent.Showing how it has inherited the value from the parent.</p><p><strong>Working with custom properties in JavaScript</strong></p><p>To get the value of a custom property at runtime, we use the getPropertyValue()method.</p><p>The code below is based on the example we used above.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/482/1*nPfwSmSV3Qwa6OcBDOBkNw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*rhPh5p4iYhq8nPqsKY7eXQ.png" /></figure><p>And as expected we get the alert showing the value of the --main-size</p><p>Similarly, to set the value of custom property at runtime, we use the setProperty() method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/1*umDAw2FQ5Nwjd6bcnD18Hw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/446/1*QpwWWaAUOTwmwmE7RwatVg.png" /></figure><p>Both of this methods are part of the CSSStyleDeclaration.You can learn more on how they are used <a href="https://www.w3schools.com/jsref/met_cssstyle_getpropertyvalue.asp">here</a></p><p>We have changed and set our --main-sizeto 10px which is what the --child-sizecontained, and as seen in the browser, every div now has the same font-size</p><p>In Conclusion,there are some advantages of Custom CSS Properties.</p><p>1· Custom properties allow a value to be stored in one place, then referenced in multiple other places</p><p>2· Easier management of code such that any changes needed are only done at the point of declaration and it’ll change throughout.</p><p>3· An additional benefit is semantic identifiers. For example, --main-theme-color is easier to understand than #00ff00, especially if this same color is also used in other contexts.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=498f01e4956a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[THE A TO Z OF NEUMORPHISM]]></title>
            <link>https://medium.com/@cinadhiambo22/the-a-to-z-of-neumorphism-aed720d6549a?source=rss-f2b7e1be5f9d------2</link>
            <guid isPermaLink="false">https://medium.com/p/aed720d6549a</guid>
            <category><![CDATA[css]]></category>
            <category><![CDATA[neumorphism]]></category>
            <dc:creator><![CDATA[Cynthia Adhiambo Otieno]]></dc:creator>
            <pubDate>Sat, 11 Apr 2020 18:23:11 GMT</pubDate>
            <atom:updated>2020-04-11T18:23:11.192Z</atom:updated>
            <content:encoded><![CDATA[<p>Neumorphism is a relatively new design trend and a term that’s gotten a good amount of buzz especially with most apps and website moving to dark and light mode.Currently, it’s mostly used to create a soft transition between UI elements (buttons, cards, input fields, graphs, boxes etc) and their backgrounds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*-RtPU3q-CT9fJa_ad7ch4A.png" /></figure><p>So what is neumorphism you may ask!</p><p>Neumorphism is a visual style that blends techniques from skeuomorphism, realism, and flat design.</p><p>Unlike flat design,Neumorphic UI elements look like they’re connected to the background, as if the elements are extruded from the background or inset into the background. Popularly described as “soft UI” because of the way soft shadows are used to create the effect.</p><p>Below, I have three cards acting as a calendar to show the current date.The first one has neumorphic effects to it,the other two(I’ll refer to them as non-neumo cards)don’t.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*zNi6t1WqDF2-asiVN_pGsw.png" /></figure><p>Here’s what you’ll note as a difference between the flat cards and the neumorphic card.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*MdrCExNwbPj2zRgQpKySqQ.png" /></figure><p>With these properties, the first card looks more realistically to be floating above the grey surface than the other two.</p><p>You’re probably wondering where I’m heading with this.Sounds like stuff you already know right?</p><p>Well,there is more to neumorphism than just a basic card floating on surface that we’ll look at later.But first,now that we have a basic idea of what neumorphism is all about, lets dive right in an look at how to create it.</p><p>A neumorphic interface can easily be created with CSS just like applying a regular box-shadow property on any element. Their distinctiveness comes from using multiple box-shadow and background-color values to achieve different types of effects and variations.</p><p>If we recall the box shadow property, it takes the below syntax.</p><p><strong>box-shadow: <em>h-offset v-offset blur spread color</em>|inset|initial|inherit;</strong></p><p>As much as the syntax shown is for one shadow, we can apply multiple shadows using comma-separated box-shadow values(notice the highlighted comma) to create neumorphic effects. Up to four values can be concatenated, one for each side of the box.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/1*Ms6CnH_-5Zppms5EC9x0jA.png" /></figure><p>Here’s a brief insight into each part of the syntax.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*q5NSMbVDHoB4V1PFMYR0Yg.png" /><figcaption>Table from the <a href="https://www.w3schools.com/cssref/css3_pr_box-shadow.asp">w3 schools box shadow page</a></figcaption></figure><p>Now, as much as the opacity and blur can be adjusted to values of choice, for neumorphism, it’s important to keep the shadows soft and low contrast.</p><p>As we’ve mentioned before, a core part of neumorphic elements is the use of two shadows: a light shadow and a dark shadow. That’s how we get that sort of “raised” effect and we can create variations by changing the “light source” of the shadows.</p><p>Below I have four boxes,each with a different neumorphic property.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*ZlKblK9zLkmRNFnKhWJeSw.png" /><figcaption>Browser view for the four boxes</figcaption></figure><p>I have a class “cards” which holds four child div elements for the boxes.Each of the boxes has a class “neuro” which I have used to lay the common CSS properties that apply to each of them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*kBUVrZE1mTWIfqcHo8_C8A.png" /><figcaption>The HTML and CSS for the cards</figcaption></figure><p>Now let’s look at the boxes individually.</p><p><strong>FLAT- BOX 1</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/503/1*IW1ul-55jQ4xTVTdDWmJzg.png" /></figure><p>For the flat box, I have set a dark shadow on the bottom right and a light one on the top left(hence the negative values for the h-offset and v-offset). If you’re still confused on that.Scroll back up to the table and read on the effects of negative and positive values off-setting the shadow.One thing to note that will apply to not only to the flat one but also the others, is that the spread is zero and the value of the blur is almost as twice as the values of h-offset and v-offset.The h-offset and v-offset hold the same value.Of course it’s not necessarily the only way to create a neumorphic effect, but it’s the easiest way to avoid wasting time determining a balancing pixel ratio.</p><p><strong>CONCAVE- BOX 2</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*32j5bAgwoG2Xzl8l8It0rw.png" /></figure><p>To create a concave effect, we have to reset the background of this particular box to a linear gradient.Make sure the gradient is diagonally placed either moving to the “top left” or “bottom right”. We still maintain the box shadow. However, something to note is that the darker side of the gradient is on the same side as the light shadow and vice versa.This creates a contrasting effect that makes the box look like its dug into the surface.</p><p><strong>CONVEX- BOX 3</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*o26-zitFjycHluaV8AkX9g.png" /></figure><p>Next is the convex.Now if you go back to our table, you’ll recall that the inset value change the shadow from an outer shadow to an inner shadow.Which is exactly what I’ve done to create the convex effect. There is another way to create this effect by setting the background to a linear gradient and still maintaining an initial shadow( “not inset”) just like we did in the concave one.However if you use this method, make sure the dark side of the gradient is on the same side as the darker shadow and vice versa to create that “raising” effect for the box.</p><p><strong>BLEND- THE LAST BOX</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*YJzBr1UdiBEceStTRsO8Ug.png" /></figure><p>For this blend box, it’s just for a little fun to put whatever you’ve learnt to test.It’s a convex box which turns to concave on hover.For practice you can try this with other sharps like a circle and others.</p><p>I hope you enjoyed the lesson!</p><p>Clap and share :- )</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aed720d6549a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GRID OR FLEX-BOX?]]></title>
            <link>https://medium.com/@cinadhiambo22/grid-or-flex-box-524cbbf520fb?source=rss-f2b7e1be5f9d------2</link>
            <guid isPermaLink="false">https://medium.com/p/524cbbf520fb</guid>
            <category><![CDATA[css-flexbox]]></category>
            <category><![CDATA[css-grid]]></category>
            <dc:creator><![CDATA[Cynthia Adhiambo Otieno]]></dc:creator>
            <pubDate>Wed, 01 Apr 2020 13:05:33 GMT</pubDate>
            <atom:updated>2020-04-01T13:05:33.760Z</atom:updated>
            <content:encoded><![CDATA[<p>CSS has always been used to design the layout of web pages.However producing complicated multi-column layouts has always been a problem for many developers. From using tables, floats, positioning to inline-blocks, most of these worked just fine but with a lot of coding and some functionalities were left out regardless.</p><p>With the release of CSS3’s Media Queries module in May 2012(responsible for responsive web pages) came responsive layout modules like Flex-box, Grids and Bootstrap.This made it easier to create layout that previously required JavaScript to accomplish.</p><p>When I first heard of grids and flex-box, my first thought was ‘Instagram’, among other major social media platforms that utilize the layout.Excited as I could be, I was curious to dive right into it and apply the CSS feature in some of my web apps.But then, with that came the confusion that probably most web-developers face…. — The difference between grid and flex-box.Which one should I use and where?</p><p>Fortunately enough,after diving tirelessly through the internet(You probably know this feeling, its like the starter-pack to being a developer)I managed to get the hang of it.</p><p>The basic difference between CSS Grid Layout and CSS Flex layout is that flex-box was designed for layout in one dimension — either a row <em>or</em> a column. Grid was designed for two-dimensional layout — rows, and columns at the same time.Still sound confusing? I’ll illustrate using a simple example.</p><p>In this first example, I am using flex-box to lay out a set of images. I have five child items in my div class.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/404/1*2yg-zsZYJbBrNpLAmVhiGA.png" /><figcaption>THE HTML FOR THE FLEX-BOX</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/198/1*8g23eD9GHuN9oBC89lH1jQ.png" /><figcaption>THE CSS FOR THE FLEX-BOX</figcaption></figure><p>I have also set the <strong><em>flex-wrap</em></strong> property to <strong><em>wrap</em></strong> , so that if the space in the container becomes too narrow to maintain the flex basis, items will wrap onto a new row.The <strong>flex</strong> property is set <strong>1 1</strong> for the <strong>flex- growth</strong> and <strong>flex-shrink</strong> of the images should need be. The important bit here is the flex direction, which is only <strong>row</strong>(one dimensional). You can learn more about flex properties <a href="https://www.w3schools.com/css/css3_flexbox.asp">here</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/534/1*-IWAEdRo_XxaYBbhwZQN-A.png" /><figcaption>THE BROWSER DISPLAY FOR FLEX-BOX</figcaption></figure><p>In the image, you can see that images items have wrapped onto a new line. These items are sharing the available space and not lining up underneath the items above. This is because when you wrap flex items, each new row (or column when working by column) becomes a new flex container. Space distribution happens across the row.</p><p>Something to note is that since we set the flex direction to row, the rows are set to the same height, however the columns are not the same width. A common question then is how to make those items line up the ones in the first row.</p><p>This is where you want a two-dimensional layout method: You want to control the alignment by row and column, and this is where grid comes in.</p><p>In this next example, I create the same layout using Grid. This time we have three column tracks. We do not need to set anything on the images themselves; they will lay themselves out one into each cell of the created grid.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/248/1*8gyU-3t6vzR6-OWfdf8Fag.png" /><figcaption>GRID HTML</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/332/1*FXZhdPsvge0IH9uELeWzgg.png" /><figcaption>GRID CSS</figcaption></figure><p>As you can see they stay in a strict grid, lining up in rows and columns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*_1YPudmFvZ-0kN72_I_KOA.png" /><figcaption>THE BROWSER DISPLAY FOR GRID</figcaption></figure><p>With five items, we get a gap on the end of row two. Images are placed inside the cells defined by the grid. Creating and defining the overall layouts remains the strong suit for CSS Grid.</p><p><strong>In summary</strong></p><p>Flex-box works from the content out.You let the size of the content decide how much individual space each item takes up. If the items wrap onto a new line, they will work out their spacing based on their size and the available space <em>on that line</em>.Grid works from the layout in.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=524cbbf520fb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>