I am working on an app in which I am using UIWebView
. To make UIWebView
editable, I have used an HTML file and have set its attribute contenteditable=true
. To perform some operation, I am using JavaScript.
I have set css in HTML file. Below is the code.
<style>
#test
{
padding-left:5px;
padding-right:5px;
background-color:green;
text-align:left;
width:100%;
font-family: "Times New Roman";
border-radius:5px;
}
</style>
Now, my problem is I am getting a white margin of about 10-15px from top, bottom and left side
between UIWebView
and HTML file loaded in UIWebView
.
Here I am attaching screenshot for same.
I have just started working on HTML and JavaScript(no prior knowledge) and not getting where the problem is.