Basically i just want to have padding to the left and not all around on this code:
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("livesearch").innerHTML=xmlhttp.responseText;
document.getElementById("livesearch").style.border="1px solid #000";
document.getElementById("livesearch").style.background="#FFF";
document.getElementById("livesearch").style.padding-left="10px";
}
But i don't know the syntax as padding-left breaks the argument. Is there a better way to do this without using a CSS as there are different styles depending on the if/else statements?