html - Experiencing different CSS results on different sites? -


i trying vertically align span-tag inside div. have working example on jsfiddle exact same css , html not work on own site.

#drop_zone {      width: 500px;      outline: 1px solid #e1e1e1;      margin: 0 auto;      height: 200px;      line-height: 200px;  }    #drop_zone span {      display: inline-block;      line-height: 19px;      vertical-align: middle;  }
<div id="drop_zone"><span>drag file here.<br />your file <strong>not</strong> uploaded!</span></div>

now, works on jsfiddle , on stackoverflow, why not work on own site? can check out results here: http://snorlax.org/stackoverflow.html

if check source code, can see it's exact same code. on earh going on?

your document missing doctype, triggering quirks mode. feature trying use works correctly in standards mode. add doctype. use validator.


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -