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
| /** | |
| * The first commented line is your dabblet’s title | |
| */ | |
| .wrapper { | |
| margin: auto; | |
| padding: 20px; | |
| width: 20em; | |
| border: 1px solid; | |
| } | |
| .test { |
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
| /** | |
| * absolute width | |
| */ | |
| .wrapper { | |
| position: relative; | |
| border: 1px solid red; | |
| width: 300px; | |
| } | |
| .child { |
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
| /** | |
| * The first commented line is your dabblet’s title | |
| */ | |
| .child1 { | |
| float: left; | |
| } | |
| .child2 { | |
| float: left; | |
| } | |
| .wrap { |
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
| /** | |
| * clear float | |
| */ | |
| .child { | |
| float: left; | |
| } | |
| .wrapper { | |
| border: 1px solid red; | |
| } |
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
| /** | |
| * FF inline-block vertical-align | |
| */ | |
| ul li { | |
| list-style: none; | |
| width: 50px; | |
| height: 40px; | |
| border: 1px solid; | |
| display: inline-block; |
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
| /** | |
| * FF vs Chrome | |
| */ | |
| .wrapper { | |
| position: relative; | |
| } | |
| span { | |
| position: absolute; | |
| } |
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
| /** | |
| * Mobile device state | |
| */ | |
| button { | |
| background-color: lightgrey; | |
| -webkit-tap-highlight-color: rgba(0,0,0,0); | |
| } | |
| button:hover { | |
| background-color: grey; | |
| } |
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
| /** | |
| * The first commented line is your dabblet’s title | |
| */ |
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
| /** | |
| * The first commented line is your dabblet’s title | |
| */ |
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
| /** | |
| * position: absolute | |
| */ | |
| .text-wrap { | |
| border: 1px solid; | |
| width: 500px; | |
| } | |
| .editor { | |
| position: relative; | |
| width: 500px; |