HTML AND CSS, YouTube

Responsive Box Using CSS Flexbox

Responsive Box Model Web Design Using CSS Flexbox Html CSS 2021

Coding BD Given here Responsive Box Using CSS Flexbox | Html CSS . Our responsive web design is the most important part Of responsive design. We created an expanded responsive cards using flexbox. We have given more importance to the css responsive web design tutorial. We don’t have to use javascript effects because they are using any Heighlly effect. Thank you so much.

😍😍 If You like this video Please like, share and subscribe This video.😍😍

😍😍 Check Others Programming Video👇

➡️ creative button hover effects: https://www.youtube.com/watch?v=3FbyiuhhhTI

➡️ How to Download Source code in Coding BD: https://www.youtube.com/watch?v=WXAZ-BScKBE&t=3s

➡️Responsive website html css javascript | part( 1 ): https://www.youtube.com/watch?v=g0ART…

➡️ Responsive Services Section: https://www.youtube.com/watch?v=wvLky…

➡️ CSS Clip Path Hover Circle Hover Effects: https://www.youtube.com/watch?v=cRSgo…

➡️ CSS Responsive CARD Hover Effects & Adding Stroke to Text | Html5 CSS3 2021: https://www.youtube.com/watch?v=QVMJ5…

➡️ Neon Light Button Animation Effects on Hover | CSS Snake Border: https://www.youtube.com/watch?v=GtVSF…

➡️ Responsive Box Model Web Design Using CSS Flexbox: https://www.youtube.com/watch?v=03RuV…

➡️ Digital Clock with Animated Progress-bar | HTML CSS & Vanilla Javascript: https://www.youtube.com/watch?v=6A6Hp…

➡️ How to create a light to dark mode for HTML CSS & Vanilla Javascript 2021: https://www.youtube.com/watch?v=43FbR…

➡️Scroll top button : https://www.youtube.com/watch?v=9fDEJ…

➡️ Animated eid mubarak 2021 using Html CSS & Javascript: https://www.youtube.com/watch?v=60H2g…

Here is all Source code ( Responsive Box Using CSS Flexbox ). You can follow this steps:

  1. Create 1 folder
  2. create 1 HTML file: index.html
  3. create 1 CSS file: style.css
  4. copy HTML code and pest HTML file, copy CSS code and past CSS file
  5. Now give a smile and jump out loud. 😍😍
<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Flex Box</title>
	<link rel="stylesheet" href="style.css">
</head>

<body>
	<div class="container">
		<div class="card">
			<div class="img-box">
				<img src="./imag/food-1.png" alt="">
			</div>
			<div class="content">
				<div class="box-content">
					<h2>Chicken Kabab</h2>
					<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Fuga, magni laboriosam accusamus nulla autem temporibus?</p>
				</div>
			</div>
		</div>
		<div class="card">
			<div class="img-box">
				<img src="./imag/food-2.png" alt="">
			</div>
			<div class="content">
				<div class="box-content">
					<h2>Thai Salat</h2>
					<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Fuga, magni laboriosam accusamus nulla autem temporibus?</p>
				</div>
			</div>
		</div>
		<div class="card">
			<div class="img-box">
				<img src="./imag/food-3.png" alt="">
			</div>
			<div class="content">
				<div class="box-content">
					<h2>chinies Salat</h2>
					<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Fuga, magni laboriosam accusamus nulla autem temporibus?</p>
				</div>
			</div>
		</div>
		<div class="card">
			<div class="img-box">
				<img src="./imag/food-4.png" alt="">
			</div>
			<div class="content">
				<div class="box-content">
					<h2>korian Food</h2>
					<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Fuga, magni laboriosam accusamus nulla autem temporibus?</p>
				</div>
			</div>
		</div>
	</div>
</body>

</html>
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,[email protected],300;0,400;0,500;0,800;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
   font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #ecc810;
    position: relative;
}

body::after{
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: #dd0808;
}

.container{
    position: relative;
    width: 1000px;
    display: grid;
    z-index: 11;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))
}

.container .card{
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
}
.container .card:nth-child(even){
    flex-direction: column-reverse;
}

.container .card .img-box{
    position: relative;
    width: 250px;
    height: 250px;
    background: #000;
}

.container .card .img-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.container .card .content{
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container .card .box-content{
    padding: 20px;
}

@media (max-width: 1000px) {
    .container{
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
        margin: 50px;
    }
    .container .card{
        flex-direction: row;
        margin: 10px 0;
    }

    .container .card:nth-child(even){
        flex-direction: row-reverse;
    }
    .container .card .img-box,
    .container .card .content {
        width: 50%;
    }
}

@media (max-width: 600px) {
    .container .card{
        flex-direction: column;
        margin: 10px 0;
    }
    .container .card:nth-child(even){
        flex-direction: column;
    }
    .container .card .img-box,
    .container .card .content {
        width: 100%;
    }
}

You can download image here unsplash

Don’t Forget to Follow me on all Social Network

YouTube: https://www.youtube.com/channel/UCw9etYfx-25oKB_qt1fFNWw

Facebook Page: https://www.facebook.com/codingbd2021

LinkedIn: https://www.linkedin.com/in/sajjat-ho… 

GitHub: https://github.com/cgsaleh8383

You can see Animated eid mubarak

Leave a Reply

Your email address will not be published. Required fields are marked *