Skip to content

Instantly share code, notes, and snippets.

@heapwolf
Created October 25, 2010 15:37
Show Gist options
  • Select an option

  • Save heapwolf/645146 to your computer and use it in GitHub Desktop.

Select an option

Save heapwolf/645146 to your computer and use it in GitHub Desktop.
<html>
<head>
<style>
#products {
display: -webkit-box;
-webkit-box-orient: horizontal;
}
#products p {
display: -moz-inline-box;
-moz-box-orient: vertical;
height:20%;
width: 20%;
margin:0;
border: 1px solid red;
}
</style>
</head>
<body>
<div id="products">
<p id="phones">First child</p>
<p id="computers">Second child</p>
<p id="fast-cars">Third child</p>
</div>
</body>
</html>
@heapwolf

Copy link
Copy Markdown
Author

It seems that webkit applies box to the children of a parent, where moz applies box directly to the element. the above demonstrates a way to produce equivalent behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment