I got a code sample from internet. I use it and it works fine. But I dont understand the working of the code.
#header {
display: -moz-flex;
display: -webkit-flex;
display: -ms-flex;
display: flex;
-moz-justify-content: space-between;
-webkit-justify-content: space-between;
-ms-justify-content: space-between;
justify-content: space-between;
background-color: #ffffff;
border-bottom: solid 1px rgba(160, 160, 160, 0.3);
height: 3.5em;
left: 0;
line-height: 3.5em;
position: fixed;
top: 0;
width: 100%;
z-index: 10000;
}
What does moz-flex and webkit-flex stands for?
Thanks, Sabarisri
These are browser specific styles for webkit and mozilla browser engines as flex property is not a standard yet. A very nice and detailed explanation is done here.
Hope it helps!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With