Breaking

Create a navigation bar and simple sanding page with html css flexbox and grid system




CSS Grid Layout is the most dominant format framework accessible in CSS. It is a 2-dimensional framework, which means it can deal with the two segments and lines, dissimilar to flexbox which is to a great extent a 1-dimensional framework. You work with Grid Layout by applying CSS rules both to a parent component (which turns into the Grid Container) and to that component's youngsters (which become Grid Items).


index.html



<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Responsive Web Design</title>
</head>

<body>
    <div class="sec-1">
        <div class="container">

            <div class="menu">
                <div class="location">
                    <div class="logo">logo</div>
                    <p>Jigatola, Dhanmondi</p>
                    <p>Dhaka, Bangladesh</p>
                </div>
                <div class="phn-no">

                    <p>Cell No</p>
                    <p>+8801 785 208 590</p>
                </div>
                <button class=" btn">Get In Touch</button>
            </div>
            <br>
            <br>
            <br>
            <br>
            <br><br>
            <div class="row">
                <div class="col col-1">
                    <p class="wcom">Welcome</p>
                    <h2>Design Your <b style="color: green;">Own Website.
                            Find Web Design </b> Site. Wiki, News & More. 100+ Million </h2>
                    <br>
                    <br><br>
                    <p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Eum, rerum!</p>
                    <br>
                    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tenetur, natus.</p>
                    <br>
                    <p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Optio, sit.</p>
                </div>
                <div class="col">
                    <div class="form-bx">
                        <h2>Connect us though you mail we will send you updates</h2>
                        <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Debitis harum accusamus nihil!</p>
                        <br>
                        <br>
                        <br>
                        <form action="" class="form">
                            <input class="input-box" type="text" placeholder="Enter your email">
                            <button class="btn">Submit</button>
                        </form>
                    </div>

                </div>

            </div>
        </div>
    </div>

    <div class="sec-2">
        <div class="container">
            <h2>Services we provide</h2>
            <div class="boxes">
                <div class="box">
                    <div class="icon">Icon</div>
                    <h4>Responsive Web Design</h4>
                    <p>Responsive Web Design is about using HTML and CSS to automatically resize, hide, shrink, or
                        enlarge,
                        a website, to make it look good on all devices</p>
                </div>
                <div class="box">
                    <div class="icon">Icon</div>
                    <h4>Responsive Web Design</h4>
                    <p>Responsive Web Design is about using HTML and CSS to automatically resize, hide, shrink, or
                        enlarge,
                        a website, to make it look good on all devices</p>
                </div>
                <div class="box">
                    <div class="icon">Icon</div>
                    <h4>Responsive Web Design</h4>
                    <p>Responsive Web Design is about using HTML and CSS to automatically resize, hide, shrink, or
                        enlarge,
                        a website, to make it look good on all devices</p>
                </div>
                <div class="box">
                    <div class="icon">Icon</div>
                    <h4>Responsive Web Design</h4>
                    <p>Responsive Web Design is about using HTML and CSS to automatically resize, hide, shrink, or
                        enlarge,
                        a website, to make it look good on all devices</p>
                </div>
                <div class="box">
                    <div class="icon">Icon</div>
                    <h4>Responsive Web Design</h4>
                    <p>Responsive Web Design is about using HTML and CSS to automatically resize, hide, shrink, or
                        enlarge,
                        a website, to make it look good on all devices</p>
                </div>
                <div class="box">
                    <div class="icon">Icon</div>
                    <h4>Responsive Web Design</h4>
                    <p>Responsive Web Design is about using HTML and CSS to automatically resize, hide, shrink, or
                        enlarge,
                        a website, to make it look good on all devices</p>
                </div>
                <div class="box">
                    <div class="icon">Icon</div>
                    <h4>Responsive Web Design</h4>
                    <p>Responsive Web Design is about using HTML and CSS to automatically resize, hide, shrink, or
                        enlarge,
                        a website, to make it look good on all devices</p>
                </div>
                <div class="box lng-box">
                    <div class="icon">Icon</div>
                    <h4>Responsive Web Design</h4>
                    <p>Responsive Web Design is about using HTML and CSS to automatically resize, hide, shrink, or
                        enlarge,
                        a website, to make it look good on all devices</p>
                </div>
            </div>
        </div>

    </div>
</body>

</html>



style.css



body,html{
    padding: 0;
    margin: 0;
}




h2{
    text-transform: capitalize;
}
.sec-1{
    color: white;
    width: 100%;
    height: 100vh;
    background: url(https://github.com/MdSamsuzzohaShayon/html-css-parts-of-project/blob/master/Home_page_gird/img/sunset-lake-mountains-landscape-mood-holidays-1594719-pxhere.com.jpg?raw=true) rgba(17, 3, 24, 0.507);
    background-blend-mode: multiply;
    /* opacity: 0.5; */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
@media (min-width:710px){
   .container{
    width: 70%;
    padding-left: 15%;

}
@media (max-width:600px){
    .container{
     width: 100%;
     padding: 0;
 } 
 }




.menu{
    padding-top: 4%;
    display: flex;
    justify-content: space-between;
    line-height: 2px;
    flex-wrap: wrap;
    /* background: rgba(0, 0, 48, 0.377); */
}
.btn{
    color: white;
    background: green;
    border: none;
    padding: 5px 25px;
}

.row{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 10%;
}
.row .col{
    flex-basis: 40%;
}
.wcom{
    /* word-spacing: 1rem; */
    letter-spacing: 1rem;
}
.form-bx{
    width: 400px;
    color: black;
    background: white;
    padding-top: 50px;
    padding-bottom: 100px;
    padding-left: 40px;
    /* padding-right: 20px; */

}
.form input{
    border:none;
    padding: 10px;
    background:rgb(202, 202, 202);
}
.form .btn{
    padding: 10px;
}
.col-1 p{
    width: 50%;
}
.sec-2{
    padding-top: 5%;
    background: rgb(218, 218, 218);
}
.boxes{
    margin-top: 6%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 2rem;
    grid-auto-rows: minmax(100px, auto);
    padding-bottom: 5%;

}
.box{
    background: white;
    padding: 16px;
    /* box-shadow: 3px 3px 10px 3px #a0a0a0; */
}
.lng-box{
    grid-column: 2 / 4;
}







/* width */
::-webkit-scrollbar {
    width: 15px;
  }
  
  /* Track */
  ::-webkit-scrollbar-track {
    background: #f1f1f1; 
  }
  
  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: rgb(47, 0, 92); 
  }
  
  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: rgb(117, 1, 163); 
  }

No comments:

Powered by Blogger.