I would really like to know how to arrange the tag box, like the one we have, Stackoverflow.
I'm almost there, I just need to arrange the tags so that when the width of the tag container is exceeded, the tags move to the left, and not to the right or down.
So far, I have this CSS code:
#tagsContainer{ border: 1px solid black; width: 400px; height: 28px; overflow-x: scroll; } #tagsBox{ float: left; } #tagsTxtBox{ float: right; }
And this HTML code:
<div id="tagsContainer"> <div id="tagsBox"></div> <div id="tagTxtBox"><input type="text" id="autocompletes" /></div> </div>
Thanks in advance!
source share