html - How to center a (background) image within a div? -


is possible center background image in div? have tried - no success:

<div id="doit">   lorem ipsum ... </div>  //css #doit { background-image: url(images/pic.png); background-repeat: none; text-align: center; } 

is possible?

#doit {     background: url(url) no-repeat center; } 

Comments

Popular posts from this blog

c# - IMAP GMAIL getting folder list problem -

CUDA shared memory -