Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>A blah</title>
- <style type="text/css">
- .commaseparated, .newlineseparated {
- display:block;
- padding:6px;
- margin:4px;
- width:130px;
- }
- .commaseparated {
- background-color:#DADADA;
- border:3px double #FFF;
- }
- .newlineseparated {
- background-color:#BABABA;
- border:3px double #FFF;
- }
- .commasepatated::selection, .commasepatated::-moz-selection {
- background-color:#8F0;
- color:#070;
- }
- .newlineseparated::selection {
- background-color:#8F0;
- color:#070;
- }
- .newlineseparated::-moz-selection {
- background-color:#8F0;
- color:#070;
- }
- </style>
- </head>
- <body>
- When <b>::selection</b> and <b>::-moz-selection</b> are separated by <b>commas</b> [applied to the same group of styles]: <div class='commaseparated'>Highlight me!</div>
- <br>
- When <b>::selection</b> and <b>::-moz-selection</b> are separated by <b>new lines</b> [applied to their own groups of styles]: <div class='newlineseparated'>Highlight me!</div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement