CSS IN website

 /* css reset */

*{
    margin0px;
    padding0px;
}
html{
    scroll-behaviorsmooth;
}

/* CSS Variables */
:root{
    --navbar-height59px;
}

/* Navigaqtion Bar */
#navbar{
    displayflex;
    align-itemscenter;
    positionsticky;
}

/* Navigation Bar: Logo and Image */
#logo{
margin-3px -5px;
}

#logo img{
    margin8px 30px;
    height40px;
}
#navbar{
    positionabsolute;
    top0px;
}

/* Navigation Bar: list Styling */
 #navbar ul{
    displayflex;
    font-family'Acme'sans-serif;
 }

 #navbar::before{
    content"";
    background-colorblack;
    positionabsolute;
    height100%;
    width100%;
    z-index-1;
    opacity0.4;
 }

 #navbar ul li{

   list-stylenone;
   font-size1.3rem;
 }

 #navbar ul li a{
     colorwhite;
     displayblock;
     padding3px 22px;
     border-radius20px;
     text-decorationnone;
 }

 #navbar ul li a:hover{
    colorblack;
    background-colorwhite;
 }
  
 /* Home section */
 #home{
     displayflex;
     flex-directioncolumn;
     height600px;
     padding3px 200px;
    justify-contentcenter;
    align-itemscenter;

 }

 #home::before{
    content"";
    positionabsolute;
    background:url('../harrybackground.jpg')no-repeat center center/cover;
    height100%;
    width100%;
    z-index-1;
    opacity0.89;
     
 }

 #home h1{
     colorwhite;
     text-aligncenter;
     font-family'Bree Serif'serif;
 }

 #home p{
     colorwhite;
     text-aligncenter;
     font-size1.5rem;
     font-family'Baloo 2', cursive;
 }
/* services section */
#services{
    margin34px
    displayflex;
}
#services .box{
    border2px solid brown;
    padding12px;
    margin3px 6px;
    border-radius23px;
    background-color#e1dddd;
    
}

#services .box img{
    height160px;
    marginauto;
    displayblock;
}


#services.box p{
    font-family'Bree Serif'serif;
}
#services{}
#services{}
#services{}

/* Clients section */
#client-section{
    positionrelative;

}
#clients img{
    height124px;
}

#client-section::before{
 content:"" ;
 positionabsolute;
 backgroundurl('pizzabackground.jpg');
 width100%;
 height100%;
 z-index-1;
 opacity0.5;
}

#clients{
    displayflex;
    justify-contentcenter;
    align-itemscenter;
}
.client-item{
    padding:34px
     
}

#clients img{
   height124px;
}
/* contact section */
#contact{
position:relative;
}
#contact::before{
content"";
positionabsolute;
width100%;
height100%;
z-index-1;
opacity0.7;
backgroundurl('contact.jpg'no-repeat center center/cover;
}

#contact-box{
    displayflex;
    justify-contentcenter;
    align-itemscenter;
    padding-bottom34px;

}

#contact-box input
#contact-box textarea{
    width100%;
    padding0.5rem;
    border-radius9px;
    font-size1.3rem;
}
#contact-box form{
    width40%;
    
}

#contact-box label{
    font-size1.3rem;
    font-family:'Franklin Gothic Medium''Arial Narrow'Arialsans-serif;
}


footer{
    backgroundblack;
    colorwhite;
    padding9px 20px;

}

 /* utility classes */
 .h-primary{
     font-size3.8rem;
     padding31px;
     font-family'Acme'sans-serif;
 }
 .h-secondary{
     font-size2.3rem;
     padding31px;
     font-family'Acme'sans-serif;

 }
 .btn{
     padding6px 20px;
     border2px solid white;
     background-colorbrown;
     colorwhite;
     margin17px;
     font-size1.5rem;
     border-radius10px;
     cursorpointer;
 }

 .center{
     text-aligncenter;

 }







Comments

Popular posts from this blog

priority_queue

Alignment in css

Queue data structure in c++