Question

I now width of my div, but i don't know height of my childrens button and ins tag. The ins tag has nowrap.

I would like display button in one line with ins tag.

div {
    border: 1px solid red;
    width: 150px;
    overflow: hidden;
}

button {
}

ins {
    white-space: nowrap;
}

There is my code, but now is ins below button: http://jsfiddle.net/ZZrJM/
I can't use height of div.

How display button and ins in one line?

Was it helpful?

Solution

Move the white-space:nowrap from ins to div. See this jsFiddle

div {
    border: 1px solid red;
    width: 150px;
    overflow: hidden;
     white-space: nowrap;
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top