Biography of MAHATMA GANDHI Different Style by this Source Code

Ticker

10/recent/ticker-posts

Biography of MAHATMA GANDHI Different Style by this Source Code

Create Paragraph Style Biography Coding 


HTML Code

<!DOCTYPE html>

<html lang="en">

<head>

<center><h1>MAHATMA GANDHI BIOGRAPHY</h1></center>

    <meta charset="UTF-8">

    <title>Paragraph Work</title>

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <link rel="stylesheet" href="style.css">

    <script src="https://kit.fontawesome.com/a076d05399.js"></script>

<center><img src="https://miro.medium.com/max/640/0*CePk4rTmaOaon_Pp.jpg"></center>

</head>

<body>

  <div class="wrapper">

    <div class="center-line">

      <a href="#" class="scroll-icon"><i class="fas fa-caret-up"></i></a>

    </div>

    <div class="row row-1">

      <section>

        <i class="icon fas fa-home"></i>

        <div class="details">

          <span class="title">About Mahatma Gandhi</span>

          <span>2nd October, 1869</span>

        </div>

        <p>Full Name: Mohandas Karamchand Gandhi<br>

Born: 2 October, 1869<br>

Place of Birth: Porbandar, Gujarat<br>

Death: 30 January, 1948<br>

Place of Death: Delhi, India<br>

Cause of Death: Shot by Gun or assassination<br>

Father: Karamchand Gandhi<br>

Mother: Putlibai Gandhi<br>

Nationality: Indian<br>

Spouse: Kasturba Gandhi<br>

Children: Harilal Gandhi, Manilal Gandhi, Ramdas Gandhi and Devdas Gandhi<br>

Professions: Lawyer, Politician, Activist, Writer</p>

        <div class="bottom">

         

          <i class="fa fa-quote-left"></i> &emsp;"The best way to find yourself is to lose yourself in the service of others." - Mahatma Gandhi &emsp;<i class="fa fa-quote-right"></i>

        </div>

      </section>

    </div>

    <div class="row row-2">

      <section>

        <i class="icon fas fa-star"></i>

        <div class="details">

          <span class="title">South Africa Return</span>

          <span>9th January 1915</span>

        </div>

        <p>In South Africa for about 20 years, Mahatma Gandhi protested against injustices and racial discrimination using the non-violent method of protests. His simplistic lifestyle won him, admirers, both in India and the outside world. He was popularly known as Bapu (Father).</p>

        <div class="bottom">

          

          <i>-Bapu</i>

        </div>

      </section>

    </div>

    <div class="row row-1">

      <section>

        <i class="icon fas fa-rocket"></i>

        <div class="details">

          <span class="title">Early Life and Family Background</span>

          <span>2nd Oct 1869</span>

        </div>

        <p>He was born on 2 October, 1869 in Porbandar, Gujarat. His father’s name was Karamchand Gandhi and his mother’s name was Putlibai. At the age of 13, Mahatma Gandhi was married to Kasturba which is an arranged marriage. They had four sons namely Harilal, Manilal, Ramdas and Devdas. She supported all the endeavors of her husband until her death in 1944.

His father was Dewan or Chief Minister of Porbandar, the capital of a small principality in Western British India (Now Gujarat State). Mahatma Gandhi was the son of his father's fourth wife Putlibai, who belonged to an affluent Vaishnava family. Let us tell you that in his earlier days, he was deeply influenced by the stories of Shravana and Harishchandra as they reflected the importance of truth.</p>

        <div class="bottom">

          

          <i>- Mahatma Gandhi</i>

        </div>

      </section>

    </div>

    <div class="row row-2">

      <section>

        <i class="icon fas fa-globe"></i>

        <div class="details">

          <span class="title">Education</span>

          <span>1888</span>

        </div>

        <p>When Gandhi was 9 years old he went to a local school at Rajkot and studied the basics of arithmetic, history, geography, and languages. At the age of 11, he went to a high school in Rajkot. Because of his wedding, at least about one year, his studies were disturbed and later he joined and completed his schooling. He joined Samaldas college in Bhavnagar in 1888 at Gujarat. Later, one of his family friend Mavji Dave Joshi to pursue further studies i.e. law in London. Gandhiji was not satisfied with the studies at Samaldas College and so he became excited by the London proposal and managed to convince his mother and wife that he will not touch non-veg, wine, or women.</p>

        <div class="bottom">

          

          <i>-Mahatma Gandhi</i>

        </div>

      </section>

    </div>

    <div class="row row-1">

      <section>

        <i class="icon fas fa-paper-plane"></i>

        <div class="details">

          <span class="title">Indian Independence Movement & Satyagraha</span>

          <span>1915</span>

        </div>

        <p>In 1915, Gandhiji returned to India permanently and joined the Indian National Congress with Gopal Krishna Gokhale as his mentor.


Gandhi's first major achievement was in 1918 when he led the Champaran and Kheda agitations of Bihar and Gujarat. He also led Non-Cooperation Movement, Civil Disobedience Movement, Swaraj, and Quit-India movement against the British government.<br><br>

Gandhi identified his overall method of non-violent action as Satyagraha. Gandhiji's Satyagraha influenced eminent personalities such as Nelson Mandela and Martin Luther in their struggle for freedom, equality, and social justice. Mahatma Gandhi's Satyagraha was based on true principles and non-violence.</p>

        <div class="bottom">

          

          <i>-Mahatma Gandhi</i>

        </div>

      </section>

    </div>

    <div class="row row-2">

      <section>

        <i class="icon fas fa-map-marker-alt"></i>

        <div class="details">

          <span class="title">Death</span>

          <span>30th January 1948</span>

        </div>

        <p>Mohandas Karamchand Gandhi was assassinated on 30 January 1948 by Nathuram Godse. Godse was a Hindu nationalist and a member of the Hindu Mahasabha. He accused Gandhi of favouring Pakistan and was opposed to the doctrine of non-violence.</p>

        <div class="bottom">

          

          <i>- Mahatma Gandhi</i>

        </div>

      </section>

    </div>

  </div>


</body>

</html>


CSS Code

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Century";
}
html{
  scroll-behavior: smooth;
}
body{
  background: #fff979;
}
::selection{
  color: #fff;
  background: #ffa079;
}
.wrapper{
  max-width: 1080px;
  margin: 50px auto;
  padding: 0 20px;
  position: relative;
}
.wrapper .center-line{
  position: absolute;
  height: 100%;
  width: 4px;
  background: #fff;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
}
.wrapper .row{
  display: flex;
}
.wrapper .row-1{
  justify-content: flex-start;
}
.wrapper .row-2{
  justify-content: flex-end;
}
.wrapper .row section{
  background: #fff;
  border-radius: 5px;
  width: calc(50% - 40px);
  padding: 20px;
  position: relative;
}
.wrapper .row section::before{
  position: absolute;
  content: "";
  height: 15px;
  width: 15px;
  background: #fff;
  top: 28px;
  z-index: -1;
  transform: rotate(45deg);
}
.row-1 section::before{
  right: -7px;
}
.row-2 section::before{
  left: -7px;
}
.row section .icon,
.center-line .scroll-icon{
  position: absolute;
  background: #f2f2f2;
  height: 40px;
  width: 40px;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  color: #ff7979;
  font-size: 17px;
  box-shadow: 0 0 0 4px #fff, inset 0 2px 0 rgba(0,0,0,0.08), 0 3px 0 4px rgba(0,0,0,0.05);
}
.center-line .scroll-icon{
  bottom: 0px;
  left: 50%;
  font-size: 35px;
  transform: translateX(-50%);
}
.row-1 section .icon{
  top: 15px;
  right: -60px;
}
.row-2 section .icon{
  top: 15px;
  left: -60px;
}
.row section .details,
.row section .bottom{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.row section .details .title{
  font-size: 30px;
  font-weight: 600;
  color: red;
}
.row section p{
  margin: 10px 0 17px 0;
}
.row section .bottom a{
  text-decoration: none;
  background: #ff7979;
  color: #fff;
  padding: 7px 15px;
  border-radius: 5px;
  font-size: 17px;
  font-weight: 400;
  transition: all 0.3s ease;
}
.row section .bottom a:hover{
  transform: scale(0.97);
}
@media(max-width: 790px){
  .wrapper .center-line{
    left: 40px;
  }
  .wrapper .row{
    margin: 30px 0 3px 60px;
  }
  .wrapper .row section{
    width: 100%;
  }
  .row-1 section::before{
    left: -7px;
  }
  .row-1 section .icon{
    left: -60px;
  }
}
@media(max-width: 440px){
  .wrapper .center-line,
  .row section::before,
  .row section .icon{
    display: none;
  }
  .wrapper .row{
    margin: 10px 0;
  }
}


OUTPUT



Post a Comment

46 Comments

  1. Perfect 👌 👌 👌 👌 👌

    ReplyDelete
  2. 👌 👌 👌 👌 👌

    ReplyDelete
  3. 👌 👌 👌 👌 👌

    ReplyDelete
  4. 👌 👌 👌 👌 👌

    ReplyDelete
  5. 👌 👌 👌 👌 👌

    ReplyDelete
  6. 👌 👌 👌 👌 👌

    ReplyDelete