jquery - Make a button with background -


i want make html button flag background. in folder images there's picture called langnl.jpg. code:

html:

<button id="taal" onclick="changelangde()" >de</button> 

css:

#taal{ background-image:images/langde.jpg;  } 

but doesn't work, button keeps default color. i've tried several options link image, no 1 works. if insert image img-tag works fine.

try

#taal{  background: url('images/langde.jpg') no-repeat top left;  width:200px;  height:100px;  } 

Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -