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
Post a Comment