Text in a Div is pushing icon to the next line. How do I stop this?
-
I have a div which is misbehaving badly. It seems that some very long text entered into this "tableItem" is causing the icon within the div to be pushed down to the next line. How do I stop this maddening behavior?

.itemStyle {
border: 1px solid #cccccc;
border-radius: 6px;
display: inline-block;
padding: 3px 3px 3px 3px;
white-space: nowrap;
margin: 0;
/*overflow: hidden;*/
height: 20px;
}.SearchIconStyle {
cursor: pointer;
margin-top: 2px;
margin-right: 2px;
} -
I have a div which is misbehaving badly. It seems that some very long text entered into this "tableItem" is causing the icon within the div to be pushed down to the next line. How do I stop this maddening behavior?

.itemStyle {
border: 1px solid #cccccc;
border-radius: 6px;
display: inline-block;
padding: 3px 3px 3px 3px;
white-space: nowrap;
margin: 0;
/*overflow: hidden;*/
height: 20px;
}.SearchIconStyle {
cursor: pointer;
margin-top: 2px;
margin-right: 2px;
}Which table item are you referring to ? I can't see any text in your table item.
-
Which table item are you referring to ? I can't see any text in your table item.
I attempted to add an image, but I do not believe I was able to do that. The text gets put into the div via the code-behind, and could be anything, since it is data that comes from a database. At any rate, I believe we have solved this issue, or come very close to solving it. For one, I believe we put in a break "
", which appears to have helped. Also, I think a good bit of the supporting JavaScript had to be modified. Thanks all for your assistance. Have a great weekend!! -
I attempted to add an image, but I do not believe I was able to do that. The text gets put into the div via the code-behind, and could be anything, since it is data that comes from a database. At any rate, I believe we have solved this issue, or come very close to solving it. For one, I believe we put in a break "
", which appears to have helped. Also, I think a good bit of the supporting JavaScript had to be modified. Thanks all for your assistance. Have a great weekend!!Thanks for the update!