EN
CSS - what is default flex-direction?
1
answers
0
points
Can you tell me what is default flex-direction property value?
I can't check like this:
// ONLINE-RUNNER:browser;
<!doctype html>
<html>
<head>
<style>
.my-element {
display: flex;
}
</style>
</head>
<body>
<div id="my-element">My element</div>
</body>
<script>
var myElement = document.querySelector('#my-element');
console.log(myElement.style.flexDirection);
</script>
</html>
1 answer
0
points
The default value of the CSS flex-direction property is row.
.my-element {
display: flex;
flex-direction: row; /* default */
}
References
0 comments
Add comment