There seems to be some extra space appearing between my divs (inside a main div) that is possibly due to unexpected <p>
and </p>
tags being added by WordPress. This issue is quite common with WP, but the problematic tags are hidden so I am unable to access them from the HTML tab.
The code snippet I have included appears as follows:
<div class="classname">Text Example
<div class="classname-2">Input box text: <input style="width:100px;' text-align:center;" type="text" size="30" maxlength="20" /></div>
</div>
However, upon inspecting the source code on the live site, it actually looks like this:
<div class="classname">Text Example</p>
<div class="classname-2">Input box text: <input style="width:100px;' text-align:center;" type="text" size="30" maxlength="20" /></div>
</div>
An additional </p>
tag has been mistakenly inserted after "Text Example." The issue persists with more random <p>
tags appearing throughout the code.
Is there a way to remove these unwanted tags? They do not appear in the HTML tab for editing.