CSS Flexbox in Hindi / Urdu With Projects (Free Source Code)
ABOUT THE CSS FLEXBOX
Flexbox Elements:
For Using the Flexbox in your Website You Will Must Define The Flexbox Container.
Create a Basic Project For Under Standing Flexbox.
<!DOCTYPE html>
<html>
<head>
<style>
.flex-container {
display: flex;
background-color: DodgerBlue;
}
.flex-container > div {
background-color: #f1f1f1;
margin: 10px;
padding: 20px;
font-size: 30px;
}
</style>
</head>
<body>
<h1>Create a Flex Container</h1>
<div class="flex-container">
<div>1</div>
<div>2</div>
<div>3</div>
</div>
<p>A Flexible Layout must have a parent element with the <em>display</em> property set to <em>flex</em>.</p>
<p>Direct child elements(s) of the flexible container automatically becomes flexible items.</p>
</body>
</html>
Project look after Completion:
To Use Flexbox You Must have to set this Display Property with to flex (Like This Display:Flex;)
Practice For Flexbox:
1
2
3
4
5
6
7
8
Other Use Full Articles:
HTML CSS Search Box (Free source Code)
0 Comments