<?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: nikhilajjarapu</title>
    <description>The latest articles on DEV Community by nikhilajjarapu (@nikhilajjarapu).</description>
    <link>https://dev.to/nikhilajjarapu</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%2F1198936%2F59084470-714a-445f-a913-51a278d9e43e.png</url>
      <title>DEV Community: nikhilajjarapu</title>
      <link>https://dev.to/nikhilajjarapu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nikhilajjarapu"/>
    <language>en</language>
    <item>
      <title>CSS Buttons project</title>
      <dc:creator>nikhilajjarapu</dc:creator>
      <pubDate>Mon, 06 Nov 2023 12:13:20 +0000</pubDate>
      <link>https://dev.to/nikhilajjarapu/css-buttons-project-533e</link>
      <guid>https://dev.to/nikhilajjarapu/css-buttons-project-533e</guid>
      <description>&lt;p&gt;&lt;strong&gt;Buttons&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;HTML &lt;br&gt;
`&amp;lt;!DOCTYPE html&amp;gt;&lt;br&gt;
&lt;br&gt;
&lt;/p&gt;



Document











    click
    click
    click



    click
    click
    click



    click
    click
    click





`&lt;/li&gt;
&lt;li&gt;&lt;p&gt;CSS&lt;br&gt;
`&lt;em&gt;{&lt;br&gt;
padding: 0%;&lt;br&gt;
margin: 0%;&lt;br&gt;
font-family:"Bebas Neue";&lt;br&gt;
font-size: large;&lt;br&gt;
}&lt;br&gt;
body{&lt;br&gt;
/&lt;/em&gt; background-color:rgba(0, 0, 0, 0.726); &lt;em&gt;/&lt;br&gt;
height: 100vh;&lt;br&gt;
/&lt;/em&gt; background-image: linear-gradient(to left ,rgba(255, 0, 0, 0.589),rgba(0, 0, 255, 0.74)); &lt;em&gt;/&lt;br&gt;
/&lt;/em&gt; background-image: radial-gradient(circle at center, red 10%, green 40%, blue 80%); &lt;em&gt;/&lt;br&gt;
/&lt;/em&gt; background-image: radial-gradient(ellipse, red 30%, blue 100%); */&lt;br&gt;
background-image: linear-gradient(65deg,red,rgb(75, 145, 236) );&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  div1{
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;width: 600px;
position: absolute;
top: 30%;
left: 50%;
transform: translate(-50%,-50%);
 display: flex;
 justify-content:space-between;
 align-items: center;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  div1 button{
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;width: 170px;
height: 50px;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  div2{
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;width: 600px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
 display: flex;
 justify-content:space-between;
 align-items: center;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  div2 button{
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;width: 170px;
height: 50px;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  div3{
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;width: 600px;
position: absolute;
top: 70%;
left: 50%;
transform: translate(-50%,-50%);
 display: flex;
 justify-content:space-between;
 align-items: center;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  div3 button{
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;width: 170px;
height: 50px;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;br&gt;
/* first button style */&lt;/p&gt;

&lt;h1&gt;
  
  
  button1{
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;position: relative;
background-color: blueviolet;
border: 0px;
color: aliceblue;
z-index: 1;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  button1::after{
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;content: "";
background-color: rgb(98, 49, 145);
position: absolute;
bottom:0%;
left: 0%;
height: 5px;
width: 0%;
transition: 0.3s;
z-index: -1;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  button1:hover::after{
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;width:100%;
/* transform:rotate(180deg); */
/* z-index: 1; */;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  button1:hover{
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;color: orange;
transition: 0.3s;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;/* //second button style  */&lt;/p&gt;

&lt;h1&gt;
  
  
  button2{
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;position: relative;
z-index: 1;
border: 0px;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  button2::after{
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;content: "";
background-color: orangered;
position: absolute;
bottom: 0px;
left: 0%;
width: 100%;   /*intially we need to set the width as 150px*/
height: 0px;    /*then we need to set value as 0 so antimation will start from the bottom to top from 0 px of height to 40 px of height */
transition:0.3s;
z-index: -1;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  button2:hover::after{
&lt;/h1&gt;

&lt;p&gt;/* width: 150px; &lt;em&gt;/&lt;br&gt;
   height: 100%;&lt;br&gt;&lt;br&gt;
   /&lt;/em&gt; here we are increasing height from 0 to 40px &lt;em&gt;/&lt;br&gt;
}&lt;br&gt;
/&lt;/em&gt; third button */&lt;/p&gt;

&lt;h1&gt;
  
  
  button3{
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;background-color: rgb(255, 0, 0);
border: 0px;
position: relative;
z-index: 1;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  button3::before{
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;content: "";
/* background-color: rgb(171, 231, 235); */
background-color:wheat;
position: absolute;
bottom: 0%;
left: 0%;
width: 100%;
height: 0%;
transition: 0.3s;
z-index: -1;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  button3:hover::before{
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;height: 100%;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  button2:hover{
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;color: rgb(206, 203, 203);
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;/* fourth button */&lt;/p&gt;

&lt;h1&gt;
  
  
  button4{
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;position: relative;
border: 0px;
background-color: hotpink;
z-index: 1;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  button4::before{
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;content: "";
background-color: rgb(184, 4, 94);
position: absolute;
top: 0px;
right:0px ;
width: 0%;
height: 50px;
transition: 0.3s ease-out;
z-index: -1;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  button4:hover::before{
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;width: 100%;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  button4:hover{
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;color:whitesmoke ;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;/* fifth buttuon */&lt;/p&gt;

&lt;h1&gt;
  
  
  button5{
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;background-color: rgb(16, 77, 190);
border: 0px;
position: relative;
z-index: 1;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  button5::after{
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;content: "";
background-color: cornflowerblue ;
position: absolute;
top: 0%;
left: 0%;
width: 0%;
height: 50px;
transition: 0.3s;
z-index: -1;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  button5:hover::after{
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;width: 100%;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  button5:hover{
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;color: white;
transition: 0.4s;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;/* sixth button */&lt;/p&gt;

&lt;h1&gt;
  
  
  button6{
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;position: relative;
z-index: 1;
border: 0px;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  button6::after{
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;content: "";
background-color: orangered;
position: absolute;
bottom: 0px;
left: 0%;
width: 0%;   /*intially we need to set the width as 150px*/
height: 0px;    /*then we need to set value as 0 so antimation will start from the bottom to top from 0 px of height to 40 px of height */
transition:0.3s;
z-index: -1;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  button6:hover::after{
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;height: 100%;  
width: 100%;
z-index: -1;
transition: 0.3s ease-in;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  button7 {
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;background-color: #3498db; /* Use your preferred background color */
color: #ffffff; /* Text color */
border: 0px;
position: relative;
z-index: 1;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  button7::before,
&lt;/h1&gt;

&lt;h1&gt;
  
  
  button7::after {
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;content: "";
position: absolute;
background-color: rgb(0, 121, 46); /* Use your preferred color */
width: 0%;
height: 100%;
transition: 0.3s ease-in-out;
z-index: -1;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  button7::before {
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;left: 50%;
top: 0%;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  button7::after {
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;right: 50%;
top: 0%;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  button7:hover::before,
&lt;/h1&gt;

&lt;h1&gt;
  
  
  button7:hover::after {
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;width: 50%; /* Expand from the center to both sides */
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;/* #button8{&lt;br&gt;
    background-color:gold;&lt;br&gt;
    border: 0px;&lt;br&gt;
    position: relative;&lt;br&gt;
    z-index: 1;&lt;br&gt;
    color: antiquewhite;&lt;br&gt;
}&lt;/p&gt;

&lt;h1&gt;
  
  
  button8::before,#button::after{
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;content: "";
background-color: black;
position: absolute;
width: 100%;
height: 0px;
transition: 0.3s ease-in-out;
z-index: -1;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  button8::before{
&lt;/h1&gt;

&lt;p&gt;top: 0%;&lt;br&gt;
}&lt;/p&gt;

&lt;h1&gt;
  
  
  button8::after{
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;bottom: 0%;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  button8:hover::before,
&lt;/h1&gt;

&lt;h1&gt;
  
  
  button8:hover::after{
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;height: 50%;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;} */&lt;/p&gt;

&lt;h1&gt;
  
  
  button8 {
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;background-color: rgb(255, 194, 11); /* Use your preferred background color */
color: #ffffff; /* Text color */
border: 0;
z-index: 1;
position: relative;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  button8::before,
&lt;/h1&gt;

&lt;h1&gt;
  
  
  button8::after {
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;content: "";
position: absolute;
background-color:black;
width: 100%;
height: 0%;
transition:  0.3s ease-in-out;
z-index: -1;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  button8::before {
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;top: 0;
left: 0px;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  button8::after {
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;bottom: 0;
right: 0;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  button8:hover::before,
&lt;/h1&gt;

&lt;h1&gt;
  
  
  button8:hover::after {
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;height: 50%; /* Expand from the middle to top and bottom */
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  button9{
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;background-color:black;
position: relative;
border: 0px;
z-index: 1;
color: white;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  button9::after,#button9::before{
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;content: "";
background-color: green;
position: absolute;
width: 100%;
height: 0px;
z-index: -1;
transition: 0.3s ease-in;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  button9::before{
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;top:50%;
left: 0%;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  button9::after{
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;bottom:50%;
left: 0%;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;h1&gt;
  
  
  button9:hover::before,
&lt;/h1&gt;

&lt;h1&gt;
  
  
  button9:hover::after{
&lt;/h1&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;height: 50%;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;br&gt;
`&lt;/p&gt;

</description>
      <category>css</category>
      <category>html</category>
      <category>webdev</category>
      <category>frontend</category>
    </item>
  </channel>
</rss>
