Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is moz-flex webkit-flex in css?

Tags:

css

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

like image 353
sabari Avatar asked Oct 27 '25 12:10

sabari


1 Answers

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!

like image 184
hkasera Avatar answered Oct 30 '25 07:10

hkasera



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!