Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
michael@0 | 1 | <!DOCTYPE html> |
michael@0 | 2 | <html> |
michael@0 | 3 | <head> |
michael@0 | 4 | <style type="text/css"> |
michael@0 | 5 | |
michael@0 | 6 | #tablecell { |
michael@0 | 7 | display: table-cell; |
michael@0 | 8 | } |
michael@0 | 9 | .border { border: 1px solid blue; } |
michael@0 | 10 | |
michael@0 | 11 | </style> |
michael@0 | 12 | </head> |
michael@0 | 13 | <body> |
michael@0 | 14 | |
michael@0 | 15 | <span class="border"> |
michael@0 | 16 | <span id="tablecell">x</span> |
michael@0 | 17 | </span> |
michael@0 | 18 | |
michael@0 | 19 | <script> |
michael@0 | 20 | |
michael@0 | 21 | document.body.offsetWidth; |
michael@0 | 22 | document.getElementById("tablecell").removeAttribute("id"); |
michael@0 | 23 | |
michael@0 | 24 | </script> |
michael@0 | 25 | </body> |
michael@0 | 26 | </html> |