I am currently working on developing a tag input system, but I am encountering some CSS issues.
What I am aiming for is to have a green border that surrounds and contains the 2 divs inside it, however, this is not happening as expected. You can see the fiddle for reference.
I am following this link to implement the tag-like system:
This is the code snippet I am using:
<div class="master" style="border: 1px solid #3ef001; width: 200px;">
<div class="tagCont" style="float: left;">
<span>HTML</span>
<span>CSS</span>
<span>PHP</span>
</div>
<div class="inputElem" style="float: right;">
<input type="text" />
</div>
</div>
Aside from a solution, I would appreciate any insights on where my misunderstanding lies in terms of the CSS aspect, as I am still learning and improving in this area.