Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Doctype positioning that breaks css issue

By: a guest on Jul 2nd, 2014  |  syntax: HTML  |  size: 1.50 KB  |  views: 192  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <!--
  2.   doctype_test.html
  3.  
  4.   Copyright 2014 Benjamín Ariel Nava Martínez <arielnmz@gmail.com>
  5.  
  6.   This program is free software; you can redistribute it and/or modify
  7.   it under the terms of the GNU General Public License as published by
  8.   the Free Software Foundation; either version 2 of the License, or
  9.   (at your option) any later version.
  10.  
  11.   This program is distributed in the hope that it will be useful,
  12.   but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.   GNU General Public License for more details.
  15.  
  16.   You should have received a copy of the GNU General Public License
  17.   along with this program; if not, write to the Free Software
  18.   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  19.   MA 02110-1301, USA.
  20.  
  21.  
  22. -->
  23. foo
  24. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  25.         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  26. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  27.  
  28. <head>
  29.         <title>sin título</title>
  30.         <meta http-equiv="content-type" content="text/html;charset=utf-8" />
  31.         <meta name="generator" content="Geany 1.24.1" />
  32.     <style>
  33.     body {
  34.         background: #333;
  35.         font-size: 10pt;
  36.         color: white;
  37.         font-family: sans;
  38.     }
  39.     #Table {
  40. <!--
  41.        font-size: inherit;
  42. -->
  43.     }
  44.     </style>
  45. </head>
  46.  
  47. <body>
  48.         <table id="Table"><tr><td>This is some text in the table</td></tr></table>
  49. </body>
  50.  
  51. </html>