<?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: utkarsh srivastava</title>
    <description>The latest articles on DEV Community by utkarsh srivastava (@utkarsh4321).</description>
    <link>https://dev.to/utkarsh4321</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%2F291905%2Ff78b992f-3fe2-4273-9f3c-6ca14e220165.jpeg</url>
      <title>DEV Community: utkarsh srivastava</title>
      <link>https://dev.to/utkarsh4321</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/utkarsh4321"/>
    <language>en</language>
    <item>
      <title>My Bulletproof CSS Template for Perfect Text Wrapping</title>
      <dc:creator>utkarsh srivastava</dc:creator>
      <pubDate>Mon, 08 Sep 2025 18:44:09 +0000</pubDate>
      <link>https://dev.to/utkarsh4321/my-bulletproof-css-template-for-perfect-text-wrapping-2p2h</link>
      <guid>https://dev.to/utkarsh4321/my-bulletproof-css-template-for-perfect-text-wrapping-2p2h</guid>
      <description>&lt;p&gt;I recently cracked the code on a CSS template that flawlessly wraps long text into any number of lines without causing overflow. It's a game-changer for clean, responsive layouts, and I'm jotting it down here for future reference. This solution ensures that text stays contained and visually appealing, regardless of the container size or content length.&lt;/p&gt;

&lt;p&gt;Refer to this sandbox link &lt;br&gt;
&lt;a href="https://codesandbox.io/p/devbox/still-frog-xw8fjj?workspaceId=ws_2AbmuvE7BZrRXWVcWYYweJ" rel="noopener noreferrer"&gt;Demo&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let'see&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  &amp;lt;div class="container"&amp;gt;
      &amp;lt;div class="card"&amp;gt;
        &amp;lt;h4&amp;gt;A Big Paragraph&amp;lt;/h4&amp;gt;
        &amp;lt;p&amp;gt;
          Lorem, ipsum dolor sit amet consectetur adipisicing elit. Impedit non
          repellendus error quod sunt maiores voluptatum rerum illum, sit neque?
          Lorem, ipsum dolor sit amet consectetur adipisicing elit. Temporibus
          ipsa tenetur nihil placeat soluta rerum fugiat, sequi saepe dolorem
          iste ut beatae quos! Maxime repudiandae dolor labore nulla! Modi
          adipisci est ex quaerat veritatis obcaecati illo unde nihil delectus.
        &amp;lt;/p&amp;gt;
      &amp;lt;/div&amp;gt;
      &amp;lt;div class="card"&amp;gt;
        &amp;lt;h4&amp;gt;A long word without any space&amp;lt;/h4&amp;gt;
        &amp;lt;p&amp;gt;  
jjjjjjjjjjjjjjjjdjdjdjdndndndndndjdjsaanansnsns@djejr12243nnfnfnfngn@nfgfgjrmrnn4jfmfnm$mbmbbjbmnfgnvmfmfmfm#kvkfmfmfmfm
        &amp;lt;/p&amp;gt;
      &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So the CSS for the card and container&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.card {
  box-shadow: 0 0px 5px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  padding: 0 20px;
  width: 40%;
}

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

&lt;/div&gt;



&lt;p&gt;It looks like&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhwshl0ytbt34ps9go35m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhwshl0ytbt34ps9go35m.png" alt="Result of applied html and css" width="800" height="352"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;See how the long paragraph is growing in height. And our long word is going out of the card, which is disturbing our whole grid.&lt;/p&gt;

&lt;p&gt;How to fix it? 🤔&lt;/p&gt;

&lt;p&gt;Add this 🥷 &lt;strong&gt;Ninja Technique&lt;/strong&gt; to &lt;code&gt;p&lt;/code&gt; tag&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;p {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
}

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

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;-webkit-line-clamp&lt;/code&gt;, you can modify this value to adjust your wrapping to limit the number of lines shown. Any text that goes beyond this limit will be hidden. In my case, it goes up to line 2&lt;/p&gt;

&lt;p&gt;&lt;code&gt;overflow-wrap: anywhere;&lt;/code&gt; this we are using to handle long, big strings or words, like in our case. This property allows the browser to break words at any point to prevent overflow.&lt;/p&gt;

&lt;p&gt;Boom see result&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0jjy8gs93uo54cfvsre1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0jjy8gs93uo54cfvsre1.png" alt="Final Result" width="800" height="208"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Give it a try.&lt;/p&gt;

&lt;p&gt;Follow me for more tips like this 🙌&lt;/p&gt;

</description>
    </item>
    <item>
      <title>First timer open-source contribution</title>
      <dc:creator>utkarsh srivastava</dc:creator>
      <pubDate>Mon, 09 Nov 2020 18:38:29 +0000</pubDate>
      <link>https://dev.to/utkarsh4321/first-timer-open-source-contribution-1562</link>
      <guid>https://dev.to/utkarsh4321/first-timer-open-source-contribution-1562</guid>
      <description>&lt;h3&gt;
  
  
  About me
&lt;/h3&gt;

&lt;p&gt;My name is &lt;strong&gt;utkarsh Srivastava&lt;/strong&gt;. You can call me &lt;code&gt;ut&lt;/code&gt;. I m a &lt;code&gt;front-end developer&lt;/code&gt; from India. A wish to make a little contribution in developer community brings me here. I always wish to participate in &lt;strong&gt;Hacktoberfest&lt;/strong&gt; but some hurdles always stop me. But this time I hardly want to contribute in &lt;strong&gt;hacktoberfest&lt;/strong&gt;. So finally I did it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Background
&lt;/h3&gt;

&lt;p&gt;My &lt;strong&gt;Hacktoberfest&lt;/strong&gt; journey is wonderful. On the time of writing this article, I successfully completed my this year &lt;strong&gt;hacktoberfest&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Some steps that I took to complete this challenge
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;On the beginning of the October first, I went on &lt;code&gt;hacktoberfest&lt;/code&gt; website &lt;a href="https://hacktoberfest.digitalocean.com/"&gt;hacktoberfest&lt;/a&gt; and signup for &lt;code&gt;hacktoberfest 2020&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;I don't have any idea at this point. So I start looking and reading the instructions in &lt;strong&gt;hacktoberfest&lt;/strong&gt; website.&lt;/li&gt;
&lt;li&gt;After that, I found some contribution website(where you can search for an open-source project and work on it).&lt;/li&gt;
&lt;li&gt;So I found one i.e &lt;a href="https://goodfirstissues.com/"&gt;goodfirstissues.com&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;I think this website is by Github I m not sure.&lt;/li&gt;
&lt;li&gt;That's empowering first-timers contributors of open-source.&lt;/li&gt;
&lt;li&gt;Then I select &lt;code&gt;language&lt;/code&gt; in my case &lt;code&gt;javascript&lt;/code&gt; to filter out projects.&lt;/li&gt;
&lt;li&gt;Then I found beginners friendly projects and start working on the open-source projects.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Contributions
&lt;/h3&gt;

&lt;p&gt;1.&lt;a href="https://github.com/devlup-labs/meet-scheduler"&gt;Meet-scheduler&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;This is an amazing &lt;code&gt;Chrome extension&lt;/code&gt; that helps to manage google meet links.&lt;/li&gt;
&lt;li&gt;I choose this project because I wanted to learn about how to develop a chrome extension. And the &lt;code&gt;tech stack&lt;/code&gt; they use also matches my skills set.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;2.&lt;a href="https://github.com/RyanRussell00/personal-dj"&gt;Personal-dj&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;This is a personal-DJ website that helps us to create &lt;code&gt;playlist&lt;/code&gt;
directly in our &lt;strong&gt;Spotify&lt;/strong&gt; account.&lt;/li&gt;
&lt;li&gt;I choose this project because I always wanted to create online streaming type application.&lt;/li&gt;
&lt;li&gt;So in order to take some idea. I choose this project because it is built with &lt;a href="https://developer.spotify.com/documentation/web-api/"&gt;spotify API&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;3.&lt;a href="https://github.com/Abdur-rahmaanJ/shopyo"&gt;Shopyo&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It's a point of sales software for small shops.&lt;/li&gt;
&lt;li&gt;Build on python and flask&lt;/li&gt;
&lt;li&gt;I choose this project to learn about flask.&lt;/li&gt;
&lt;li&gt;But contributor told me to fix some small changes so I did that and they merge my PR.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;4.&lt;a href="https://github.com/learn-opensource/learn-opensource.github.io"&gt;Learn-opensource&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It's basically a great contribution driven project which helps new developers to get familiar with open source.&lt;/li&gt;
&lt;li&gt;I choose this project because it's built on &lt;code&gt;javascript&lt;/code&gt;. And it's a little bit challenging to show different API's response into one page.&lt;/li&gt;
&lt;li&gt;So I worked on issue page where I have to show all the open issues of their organization. So I added loader and after fetching data from &lt;code&gt;GitHub API&lt;/code&gt;. I render it on that page.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Tips
&lt;/h3&gt;

&lt;p&gt;One thing I notice whenever you start contributing to an open-source project. Please talk to repo owner as much as you can and try to understand their requirements what they really want.&lt;br&gt;
And don't hesitate to ask because they are so helpful they will help you as much as they can. So please talk to them before you start working on it. It will save lots of time. So that you can easily submit &lt;strong&gt;4 PR's&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Reflections
&lt;/h3&gt;

&lt;p&gt;That's it, guys. This is all about my &lt;strong&gt;hacktoberfest&lt;/strong&gt; journey. Overall experience is awesome. I have made new connections. Also, learn about so many interesting things. I enjoy this &lt;strong&gt;October&lt;/strong&gt; like an open-source festival. Thanks to &lt;strong&gt;open-source&lt;/strong&gt; community to help me and give me such a great experience. And I m surely participate again in &lt;strong&gt;hacktoberfest&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;So thank you guys I hope it's helpful.&lt;/p&gt;

&lt;p&gt;Connect with me:&lt;br&gt;
&lt;a href="https://github.com/utkarsh4321"&gt;Github&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.linkedin.com/in/utkarsh-srivastava-214108155/"&gt;Linked-in&lt;/a&gt;&lt;/p&gt;

</description>
      <category>hacktoberfest</category>
      <category>opensource</category>
      <category>goodfirstissue</category>
      <category>github</category>
    </item>
  </channel>
</rss>
