| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|---|
| 2 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
|---|
| 3 | <head> |
|---|
| 4 | <title>Error indicator placement prototype - Design B</title> |
|---|
| 5 | <style type="text/css"> |
|---|
| 6 | .i-caption *, .i-orderedlayout-inline * { float:left; display: block;} |
|---|
| 7 | .i-caption:after, .i-orderedlayout-inline:after { |
|---|
| 8 | content: "."; |
|---|
| 9 | display: block; |
|---|
| 10 | height: 0; |
|---|
| 11 | clear: both; |
|---|
| 12 | visibility: hidden; |
|---|
| 13 | } |
|---|
| 14 | .i-caption, .i-orderedlayout-inline {display: inline-block;} |
|---|
| 15 | /* Hides from IE-mac \*/ |
|---|
| 16 | * html .i-caption, * html .i-orderedlayout-inline {height: 1%;} |
|---|
| 17 | .i-caption, .i-orderedlayout-inline {display: block;} |
|---|
| 18 | /* End hide from IE-mac */ |
|---|
| 19 | |
|---|
| 20 | .i-errorindicator { |
|---|
| 21 | background:transparent url(error.png) no-repeat scroll right top; |
|---|
| 22 | height:16px; |
|---|
| 23 | width:10px; |
|---|
| 24 | margin-left: 3px; |
|---|
| 25 | } |
|---|
| 26 | </style> |
|---|
| 27 | </head> |
|---|
| 28 | <body> |
|---|
| 29 | |
|---|
| 30 | |
|---|
| 31 | <h2>SUPPORTED COMMON CASE : With caption</h2> |
|---|
| 32 | |
|---|
| 33 | <div class="i-caption"> |
|---|
| 34 | <span>Caption</span> |
|---|
| 35 | <div class="i-errorindicator"></div> |
|---|
| 36 | </div> |
|---|
| 37 | <input class="i-textfield i-error" type="text" value="Some text"/> |
|---|
| 38 | |
|---|
| 39 | <hr/> |
|---|
| 40 | |
|---|
| 41 | <h2>SUPPORTED SPECIAL CASE : No caption</h2> |
|---|
| 42 | |
|---|
| 43 | <div class="i-orderedlayout-inline"> |
|---|
| 44 | <input class="i-textfield i-error" type="text" value="Some text"/> |
|---|
| 45 | <div class="i-errorindicator"></div> |
|---|
| 46 | </div> |
|---|
| 47 | |
|---|
| 48 | <hr/> |
|---|
| 49 | |
|---|
| 50 | <h2>SUPPORTED SPECIAL CASE : No (separate) caption - example 1</h2> |
|---|
| 51 | |
|---|
| 52 | <div class="i-orderedlayout-inline"> |
|---|
| 53 | <span style="display: block;" class="i-checkbox"><input checked="checked" id="check2" type="checkbox"><label for="check2">invalidAllowed</label> |
|---|
| 54 | </span> |
|---|
| 55 | <div class="i-errorindicator"></div> |
|---|
| 56 | </div> |
|---|
| 57 | |
|---|
| 58 | <hr/> |
|---|
| 59 | |
|---|
| 60 | <h2>SUPPORTED SPECIAL CASE : No (separate) caption - example 2</h2> |
|---|
| 61 | |
|---|
| 62 | <div class="i-orderedlayout-inline"> |
|---|
| 63 | <button class="i-button" type="button"><span>Validate integer</span></button> |
|---|
| 64 | <div class="i-errorindicator"></div> |
|---|
| 65 | </div> |
|---|
| 66 | |
|---|
| 67 | <hr/> |
|---|
| 68 | |
|---|
| 69 | <h2>UNSUPPORTED SPECIAL CASE : 100% width, No caption</h2> |
|---|
| 70 | <div class="i-orderedlayout-inline"> |
|---|
| 71 | <input style="width:100%;" class="i-textfield i-error" type="text" value="Some text"/> |
|---|
| 72 | <div class="i-errorindicator"></div> |
|---|
| 73 | </div> |
|---|
| 74 | |
|---|
| 75 | </body> |
|---|
| 76 | </html> |
|---|