Essentially, I am trying to add padding specifically to the left side of this code snippet:
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";
}
I'm struggling with the syntax as "padding-left" seems to disrupt the argument. Is there a more effective way to achieve this without resorting to CSS, considering that the styling varies based on different if/else conditions?