Created
October 25, 2010 15:37
-
-
Save heapwolf/645146 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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> |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.