I tried to get the 'li.tagit-new input' to cover the full width of the rest of the parent ul.tagit with:
ul.tagit li {
display:table-cell;
white-space:nowrap;
vertical-align:top;
float: none;
}
ul.tagit li.tagit-new {
width: 100%;
border: 1px solid #ddd;
}
ul.tagit li.tagit-new input {
width: 100%;
}
It works fine if there is at least one tag. But not if there no tag:
i cant write this as a comment. as i understand ur problem , u can display it with the flex proprety
ul.tagit {
margin-bottom: 0px;
display: flex;
}
here is a demo
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.