ie8 div text-align center

Original Post : Mr.Black ( )

IE8, text-align:center sometimes doesn’t work.

Use margin:0 auto;

It will work now.

Difference between div and span tag

출처(Original Post) :

The primary difference between the <span> and <div> tags is that <span> doesn’t do any formatting of it’s own. The <div> tag acts includes a paragraph break, because it is defining a logical division in the document. The <span> tag simply tells the browser to apply the style rules to whatever is within the <span>.

HTML Source:

<div>Without br tag, next word is newline</div>Test<br>
<span>Next word is on the same line</span>Test<br>

Browser Viewing :

Without br tag, next word is newline

Next word is on the same lineTest