CSS trick: non-wrapable lines with div’s (without tables) | |
Автор: utilmind |
Here is the simplest CSS-style that allows to make *any* content inside *any* HTML-page element non-wrapable without using TABLE’s. <style>
.singleline { display: table;
table-layout: fixed;
width: 100%;
overflow: hidden;
white-space: nowrap;
}
</style> Example:
...and the same table with the "singleline" class in left column:
|
Tweet |
|