Coding BD given how to use css position to move elements. You can Build how to use css position. It is the most important part Of css position.
First, I highly recommend you to watch the video and then look for the code and try to do it by yourself. And use the code for reference.
😍😍 If You like this video Please like, share and subscribe This video.😍😍
😍😍 Check Others Programming Video👇
➡️ css image hover animation effects | pure css hover animation: https://www.youtube.com/watch?v=AUQQ5WBXtPw
➡️ how to create css gradient box shadow: https://www.youtube.com/watch?v=8oaLBBhLNi0
➡️ Sticky Navigation Bar On Scroll Using Vanilla Javascript: https://www.youtube.com/watch?v=XQJSc–XgO8
➡️ 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=g0ART2Jc3yw&t=3s
➡️ Responsive Services Section: https://www.youtube.com/watch?v=wvLkyrkoS_w&t=69s
➡️ Plane animation only html css: https://www.youtube.com/watch?v=XcYlfp8sFX0
➡️ CSS Responsive CARD Hover Effects & Adding Stroke to Text | Html5 CSS3 2021: https://www.youtube.com/watch?v=QVMJ5PdX7Ag&t=14s
➡️ Neon Light Button Animation Effects on Hover | CSS Snake Border: https://www.youtube.com/watch?v=GtVSF-efdJQ&t=102s
➡️ Responsive Box Model Web Design Using CSS Flexbox: https://www.youtube.com/watch?v=03RuVB6B5KQ&t=0s
➡️ Digital Clock with Animated Progress-bar | HTML CSS & Vanilla Javascript: https://www.youtube.com/watch?v=6A6HpxMmfX4&t=0s
➡️ How to create a light to dark mode for HTML CSS & Vanilla Javascript 2021: https://www.youtube.com/watch?v=43FbR6ailIk&t=28s
➡️ Scroll top button : https://www.youtube.com/watch?v=9fDEJkXQIIs&t=77s
Here is all Source code ( How to Use CSS Position to Move Elements ). You can follow this steps:
- Create 1 folder
- create 1 HTML file: index.html
- create 1 CSS file: style.css
- See Full video and write HTML code and copy CSS code and past CSS file
- Now give a smile and jump out loud. 😍😍
<!DOCTYPE html>
<html lang="en">
<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>image position</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<ul class="main-nav">
<li class="item">
<img src="./CSS & Javascript Background Animation Effects Animated Background Image Loop Animation.png"
alt="" class="bg">
</li>
<li class="item">
<img src="./CSS 3D Flip Hover Animation.jpg" alt="" class="bg">
</li>
<li class="item">
<img src="./CSS 3d Layered Image Hover Effects - CSS Isometric Design.png" alt="" class="bg">
</li>
<li class="item">
<img src="./css-image-hover-animation-effects.jpg" alt="" class="bg">
</li>
<li class="item">
<img src="./css-image-hover-overlay-effects.jpg" alt="" class="bg">
</li>
</ul>
</body>
</html>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: #000;
}
.main-nav {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
margin: 0;
padding: 0;
width: 600px;
height: 150px;
}
.main-nav li {
list-style: none;
position: absolute;
width: 200px;
height: 200px;
background-color: #000;
transform: rotate(45deg);
transition: 0.5s;
margin: -100px;
overflow: hidden;
opacity: 1;
}
.main-nav li.item:first-child {
top: 0;
left: 0;
}
.main-nav li.item:nth-child(2) {
bottom: 0;
left: 25%;
}
.main-nav li.item:nth-child(3) {
top: 0;
left: 50%;
}
.main-nav li.item:nth-child(4) {
bottom: 0;
left: 75%;
}
.main-nav li.item:last-child {
top: 0;
left: 100%;
}
.main-nav li .bg {
width: 100%;
height: 100%;
}
Don’t Forget to Follow me on all Social Network
YouTube: https://www.youtube.com/c/CodingBD
Facebook Page: https://www.facebook.com/codingbd2021
LinkedIn: https://www.linkedin.com/in/sajjat8383
GitHub: https://github.com/cgsaleh8383
You can see How to create Magic Card using html and CSS