Currently, I am attempting to create padding around my iframe in order to position it correctly on a specific part of my webpage. However, I seem to be having trouble figuring out what mistake I am making and searching online is only serving to confuse me further. Below is a snippet of the code from my html page:
<div class="main" id="main">
<iframe src="intro.htm" height="500" width="700" padding="200px 200px" title="Iframe Main"></iframe>
</div>
I have attempted to apply the padding using css under .main and also under .main iframe{}, but unfortunately, both approaches did not yield the desired result.