I want to add a sliding animation for sub rows inside a table structure. When using the div tag inside a table, it does not works like a div outside of the table structure. The animation is missing and it is formatting every sub td in the first td of the parent row.
Source code - here the StackBlitz example
<table style="width:100%">
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Age</th>
</tr>
<tr (click)="show = !show">
<td>Jill</td>
<td>Smith</td>
<td>50</td>
</tr>
<ng-container *ngIf="show">
<div class="box" [class.opened]="show">
<tr>
<td>Sam</td>
<td>Sample</td>
<td>35</td>
</tr>
<tr>
<tr>
<td>Piet</td>
<td>Miller</td>
<td>42</td>
</tr>
</div>
</ng-container>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
</table>
<div style="margin-top: 20px" class="box" [class.opened]="show">
Here the animation is working proper. <br> <br>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Neque ornare aenean euismod elementum nisi quis eleifend. Vivamus at augue eget arcu dictum. Dui sapien eget mi proin sed libero enim sed faucibus. Justo laoreet sit amet cursus sit amet dictum sit. Varius sit amet mattis vulputate. Lorem ipsum dolor sit amet consectetur adipiscing elit. Convallis tellus id interdum velit laoreet id donec ultrices. Tempus urna et pharetra pharetra massa massa. Tempor commodo ullamcorper a lacus vestibulum sed arcu non odio. Sagittis eu volutpat odio facilisis mauris sit amet massa vitae. Semper auctor neque vitae tempus quam pellentesque nec nam. Mauris nunc congue nisi vitae suscipit tellus mauris. Eget magna fermentum iaculis eu. Mi in nulla posuere sollicitudin. Nibh mauris cursus mattis molestie a iaculis at erat pellentesque. Nam libero justo laoreet sit amet. Aliquam faucibus purus in massa. Velit ut tortor pretium viverra suspendisse potenti nullam ac.
</div>
CSS
.box {
background-color: #FFCC55;
max-height: 0px;
overflow-y: hidden;
transition: ease-in-out 400ms max-height;
}
.box.opened {
max-height: 500px;
transition: ease-in-out 600ms max-height;
}
You only have to remove 'ng-container'. It will solve your problem.
Replace this code
<ng-container *ngIf="show">
<div class="box" [class.opened]="show">
<tr>
<td><div>Sam</div></td>
<td><div>Sample</div></td>
<td><div>35</div></td>
</tr>
<tr></tr>
<tr>
<td><div>Piet</div></td>
<td><div>Miller</div></td>
<td><div>42</div></td>
</tr>
</div>
</ng-container>
With this one
<div class="box" [class.opened]="show">
<tr>
<td><div>Sam</div></td>
<td><div>Sample</div></td>
<td><div>35</div></td>
</tr>
<tr></tr>
<tr>
<td><div>Piet</div></td>
<td><div>Miller</div></td>
<td><div>42</div></td>
</tr>
</div>
If you want 'ng-container' should be in your code then put it inside of div (which has the class box). But it slows your animation.
<table style="width:100%">
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Age</th>
</tr>
<tr (click)="show = !show">
<td>Jill</td>
<td>Smith</td>
<td>50</td>
</tr>
<ng-container *ngIf="show">
<tr class="box" [class.opened]="show">
<td><div>Sam</div></td>
<td><div>Sample</div></td>
<td><div>35</div></td>
</tr>
<tr>
<td><div>Piet</div></td>
<td><div>Miller</div></td>
<td><div>42</div></td>
</tr>
</ng-container>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
</table>
<div style="margin-top: 20px" class="box" [class.opened]="show">
Here the animation is working proper. <br> <br>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Neque ornare aenean euismod elementum nisi quis eleifend. Vivamus at augue eget arcu dictum. Dui sapien eget mi proin sed libero enim sed faucibus. Justo laoreet sit amet cursus sit amet dictum sit. Varius sit amet mattis vulputate. Lorem ipsum dolor sit amet consectetur adipiscing elit. Convallis tellus id interdum velit laoreet id donec ultrices. Tempus urna et pharetra pharetra massa massa. Tempor commodo ullamcorper a lacus vestibulum sed arcu non odio. Sagittis eu volutpat odio facilisis mauris sit amet massa vitae. Semper auctor neque vitae tempus quam pellentesque nec nam. Mauris nunc congue nisi vitae suscipit tellus mauris. Eget magna fermentum iaculis eu. Mi in nulla posuere sollicitudin. Nibh mauris cursus mattis molestie a iaculis at erat pellentesque. Nam libero justo laoreet sit amet. Aliquam faucibus purus in massa. Velit ut tortor pretium viverra suspendisse potenti nullam ac.
</div>
well removed the div from ur table!
I am not quite sure how angular works, but here is the correct way you should implement a collapsible row; just add a new row and a <td colspan="100"> so that this cell expands to the full table width and insert your content there:
<tr>
<td colspan="100">
<div class="box">
your markup here
</div>
</td>
</tr>
Please refer the below URL for the complete reference for your( #FanaticTyp ) expandable tableview.
https://datatables.net/blog/2014-10-02
Script
/* Formatting function for row details - modify as you need */
function format ( d ) {
// `d` is the original data object for the row
return '<div class="slider">'+
'<table cellpadding="5" cellspacing="0" border="0" style="padding-left:50px;">'+
'<tr>'+
'<td>Full name:</td>'+
'<td>'+d.name+'</td>'+
'</tr>'+
'<tr>'+
'<td>Extension number:</td>'+
'<td>'+d.extn+'</td>'+
'</tr>'+
'<tr>'+
'<td>Extra info:</td>'+
'<td>And any further details here (images etc)...</td>'+
'</tr>'+
'</table>'+
'</div>';
}
$(document).ready(function() {
var table = $('#example').DataTable( {
"ajax": "/examples/ajax/data/objects.txt",
"columns": [
{
"class": 'details-control',
"orderable": false,
"data": null,
"defaultContent": ''
},
{ "data": "name" },
{ "data": "position" },
{ "data": "office" },
{ "data": "salary" }
],
"order": [[1, 'asc']]
} );
// Add event listener for opening and closing details
$('#example tbody').on('click', 'td.details-control', function () {
var tr = $(this).closest('tr');
var row = table.row( tr );
if ( row.child.isShown() ) {
// This row is already open - close it
$('div.slider', row.child()).slideUp( function () {
row.child.hide();
tr.removeClass('shown');
} );
}
else {
// Open this row
row.child( format(row.data()), 'no-padding' ).show();
tr.addClass('shown');
$('div.slider', row.child()).slideDown();
}
} );
} );
Expanded View Design
<div class="slider">
... Data to be shown ...
</div>
<style>
div.slider {
display: none;
}
td.details-control {
background: url('/examples/resources/details_open.png') no-repeat center center;
cursor: pointer;
}
tr.shown td.details-control {
background: url('/examples/resources/details_close.png') no-repeat center center;
}
div.slider {
display: none;
}
table.dataTable tbody td.no-padding {
padding: 0;
}
</style>
Related
I want to make a responsive table using a bootstrap. I want that if the text in the table cell is too long and the word wrap made the table cell height more than certain amount of pixel like 300px, the cell can be scrolled to view the rest of the text.
The cell itself cannot have scroll-bars, but you can do it this way:
table {
width: 300px;
}
table td {
padding: 0;
line-height: 1.2rem;
}
.maxi {
max-height: 6rem;
overflow-y: auto;
}
<table>
<tbody>
<tr>
<td>
<div class="maxi">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed blandit, lacus dictum varius lobortis, lorem diam fringilla erat, in maximus tortor neque vitae libero. Fusce ac diam tortor. Phasellus elementum pellentesque metus et pharetra. Vestibulum et est non eros elementum posuere. Morbi egestas ac nunc id semper. Donec vel dapibus risus. Duis velit sapien, lacinia at risus eget, efficitur cursus dolor. </div>
</td>
</tr>
</tbody>
</table>
Also on JSFiddle.
Given a table like this:
table {
padding: 10px;
border: 0px solid black;
border-radius: 10px;
border-spacing: 75px 0px;
padding-left: 50px;
}
td {
height: 20px;
padding: 15px;
width: 50%;
border-top: none;
}
<table border="1" class="dataframe">
<thead>
<tr style="text-align: unset;">
<th>Col 1</th>
<th>Col 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>Lorem ipsum dolor sit amet, Egestas fringilla phasellus faucibus scelerisque eleifend donec pretium vulputate sapien. Aliquet nibh praesent tristique magna sit amet. Sed sed risus pretium quam vulputate. Augue eget arcu dictum varius duis. Volutpat
est velit egestas dui. Porta non pulvinar neque laoreet suspendisse interdum </td>
<td>Neque sodales ut etiam sit amet nisl purus in. Sed cras ornare arcu dui vivamus arcu felis. Elit scelerisque mauris pellentesque pulvinar pellentesque habitant.</td>
</tr>
<tr>
<td>Dignissim cras tincidunt lobortis feugiat. Facilisi cras fermentum odio eu feugiat. In arcu cursus euismod quis viverra nibh cras. Ornare massa eget egestas purus viverra. Sit amet commodo nulla facilisi nullam vehicula.</td>
<td>Nec feugiat in fermentum posuere urna nec tincidunt praesent. Nec dui nunc mattis enim ut.</td>
</tr>
<tr>
<td>lorem ipsum dolor sit. Neque sodales ut etiam sit amet nisl purus in. Sed cras ornare arcu dui vivamus arcu felis. Elit scelerisque mauris pellentesque pulvinar pellentesque habitant. Dignissim cras tincidunt lobortis feugiat. Facilisi cras fermentum
odio eu feugiat. In arcu cursus euismod quis viverra nibh cras. Ornare massa eget egestas purus viverra. Sit amet commodo nulla facilisi nullam vehicula.</td>
<td>Pellentesque eu tincidunt tortor aliquam nulla facilisi cras fermentum odio. Dolor sed viverra ipsum nunc aliquet bibendum enim. Sit amet volutpat consequat mauris nunc congue nisi vitae.</td>
</tr>
<tr>
<td>Eget arcu dictum varius duis at. Diam quam nulla porttitor massa id neque.</td>
<td> Dignissim cras tincidunt lobortis feugiat. Facilisi cras fermentum odio eu feugiat.</td>
</tr>
</tbody>
</table>
How can I replace for a space the separator line between each row, leaving the last buttom line so the table is complete, something like this:
So far I tried to add to the style this:
border-bottom: none;
And
td:last-child{
border-bottom: 0px solid black;
}
However, the problem is that the above removes the last line in the table:
What is the correct way of replacing the horizontal lines that separate each row in the table, while preserving the last line, so the table looks "closed"?
just add this in your css. Basically what it does it check for if tr is not a last child than it will remove the border of its td child
tr:not(:last-child) td {
border-bottom: none;
}
I tried this and I hope this will help you with it!
table {
padding: 10px;
border: 0px solid black;
border-radius: 10px;
border-spacing: 75px 0px;
padding-left: 50px;
}
p {
height: 20px;
padding: 15px;
width: 50%;
border-top: none;
}
<DOCTYPE! html>
<html>
<head>
</head>
<body>
<table border="1" class="dataframe">
<thead>
<tr style="text-align: unset;">
<th>Col 1</th>
<th>Col 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<p>i guess this will work fine for you</p>
<p>ss</p>
<p>ss</p>
<p>ss</p>
<p>ss</p>
<p>ss</p>
<p>ss</p>
</td>
<td>
<p>hello does this works fine </p>
<p>ss</p>
<p>ss</p>
<p>ss</p>
<p>ss</p>
<p>ss</p>
<p>ss</p>
</td>
</tr>
</tbody>
</table>
</body>
</html>
thanks
I am attempting to vertically align my text in the center of its row regardless of how long the text is in my bootstrap table.
I am attempting to handle this with vertical-align: middle; line-height:90px; At the moment adjusting the line-height seems to work and allow me get text in the center but if the text is two-lines then the line-gap between the two is too large.
How can I vertically align my text in the right column to fit vertically be in the middle of the page?
Here is my code snippet :
.table-bordered th, tbody td:nth-child(2) {
vertical-align: middle;
line-height: 90px;
}
<link href="https://cdn.jsdelivr.net/npm/bootstrap#5.0.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet"/>
<table class="table table-bordered">
<thead class="text-14 tx-light">
<tr class="d-flex">
<th class="col-6 blue-background" scope="col">LEFT</th>
<th class="col-6 red-background" scope="col">RIGHT</th>
</tr>
</thead>
<tbody class="text-18 tx-dark">
<tr class="d-flex">
<td class="col-6" scope="row">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus bibendum placerat sapien, vel consectetur dolor congue id. Duis posuere nisl eget magna posuere malesuada. Nunc ac euismod nulla. Nunc efficitur tincidunt facilisis. Proin sed efficitur velit. Donec non sem sed lorem faucibus finibus. Cras tristique turpis vitae scelerisque fringilla.
</td>
<td class="col-6"> <a class="text-underlined-18 ul-link">Link to the described article here </a></td>
</tr>
<tr class="d-flex">
<td class="col-6" scope="row">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus bibendum placerat sapien, vel consectetur dolor congue id. Duis posuere nisl eget magna posuere malesuada. Nunc ac euismod nulla. Nunc efficitur tincidunt facilisis. Proin sed efficitur velit. Donec non sem sed lorem faucibus finibus. Cras tristique turpis vitae scelerisque fringilla.
</td>
<td class="col-6"> <a class="text-underlined-18 ul-link">Link to longer url that takes up two lines here test test test test </a></td>
</tr>
<tr class="d-flex">
<td class="col-6" scope="row">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus bibendum placerat sapien, vel consectetur dolor congue id. Duis posuere nisl eget magna posuere malesuada. Nunc ac euismod nulla. Nunc efficitur tincidunt facilisis. Proin sed efficitur velit. Donec non sem sed lorem faucibus finibus. Cras tristique turpis vitae scelerisque fringilla.
</td>ib
<td class="col-6"> <a class="text-underlined-18 ul-link"> Link to article here</a></td>
</tr>
</tbody>
</table>
I am expecting my text to sit in the center of the row similar to this photo without the huge line gap if the text is two-lines:
Change the desired table data element to display: flex;, make the flex-direction: column; and justify-content: center;.
.table-bordered th, tbody td:nth-child(2) {
display: flex;
flex-direction: column;
justify-content: center;
line-height: 90px;
}
<link href="https://cdn.jsdelivr.net/npm/bootstrap#5.0.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet"/>
<table class="table table-bordered">
<thead class="text-14 tx-light">
<tr class="d-flex">
<th class="col-6 blue-background" scope="col">LEFT</th>
<th class="col-6 red-background" scope="col">RIGHT</th>
</tr>
</thead>
<tbody class="text-18 tx-dark">
<tr class="d-flex">
<td class="col-6" scope="row">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus bibendum placerat sapien, vel consectetur dolor congue id. Duis posuere nisl eget magna posuere malesuada. Nunc ac euismod nulla. Nunc efficitur tincidunt facilisis. Proin sed efficitur velit. Donec non sem sed lorem faucibus finibus. Cras tristique turpis vitae scelerisque fringilla.
</td>
<td class="col-6"> <a class="text-underlined-18 ul-ibisworld">Link to the described article here </a></td>
</tr>
<tr class="d-flex">
<td class="col-6" scope="row">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus bibendum placerat sapien, vel consectetur dolor congue id. Duis posuere nisl eget magna posuere malesuada. Nunc ac euismod nulla. Nunc efficitur tincidunt facilisis. Proin sed efficitur velit. Donec non sem sed lorem faucibus finibus. Cras tristique turpis vitae scelerisque fringilla.
</td>
<td class="col-6"> <a class="text-underlined-18 ul-ibisworld">Link to longer url that takes up two lines here test test test test </a></td>
</tr>
<tr class="d-flex">
<td class="col-6" scope="row">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus bibendum placerat sapien, vel consectetur dolor congue id. Duis posuere nisl eget magna posuere malesuada. Nunc ac euismod nulla. Nunc efficitur tincidunt facilisis. Proin sed efficitur velit. Donec non sem sed lorem faucibus finibus. Cras tristique turpis vitae scelerisque fringilla.
</td>
<td class="col-6"> <a class="text-underlined-18 ul-ibisworld"> Link to article here</a></td>
</tr>
</tbody>
</table>
In previous table's row head sticky was working well. Then I did some changes to the first and second columns fixed. Then after row head sticky is not working. I can not find where I was wrong. I added my code below.
CSS -->
.view {
margin: auto;
width: 100%;
}
.wrapper {
position: relative;
overflow: auto;
white-space: nowrap;
}
.sticky-col {
position: sticky;
position: -webkit-sticky;
background-color: white;
z-index:1;
}
.first-col {
width: 100px;
min-width: 100px;
max-width: 100%;
left: 0px;
}
.second-col {
width: 150px;
min-width: 150px;
max-width: 100%;
left: 100px;
}
th {
background: white;
position: sticky;
top: 0;
}
Table -->
<div class="view">
<div class="wrapper">
<table>
<thead>
<tr>
<th class="sticky-col first-col">Col 1</th>
<th class="sticky-col second-col">Col 2</th>
<th>...</th>
<th>...</th>
</tr>
</thead>
<tbody>
<tr>
<td class="sticky-col first-col"></td>
<td class="sticky-col second-col"></td>
<td>...</td>
<td>...</td>
</tr>
</tbody>
</table>
</div>
I have added below CSS to do row head stick in main.handlerbars.
th {
background: white;
position: sticky;
top: 0;
}
If you can give me a fix to solve this will be a huge help. Thank you.
You need to increase the z-index of the sticky left elements. Since you made all the element to be sticky, the latter ones will overlap the previous ones:
.view {
margin: auto;
width: 100%;
}
.wrapper {
position: relative;
overflow: auto;
white-space: nowrap;
height:100px;
}
.sticky-col {
position: sticky;
position: -webkit-sticky;
background-color: white;
}
.first-col {
width: 100px;
min-width: 100px;
max-width: 100%;
left: 0px;
}
.second-col {
width: 150px;
min-width: 150px;
max-width: 100%;
left: 100px;
}
th {
background: white;
position: sticky;
top: 0;
}
th.sticky-col {
z-index:1;
}
<div class="view">
<div class="wrapper">
<table id="app" class='table table-bordered table-sm'>
<thead>
<tr>
<th class="sticky-col first-col">Product</th>
<th class="sticky-col second-col">Description</th>
<th>Lorem ipsum dolor sit amet, consectetur</th>
<th>Lorem ipsum dolor sit amet, consectetur</th>
</tr>
</thead>
<tbody>
<tr>
<td class="sticky-col first-col">consectetur </td>
<td class="sticky-col second-col">consectetur </td>
<td>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam fringilla metus lorem, a malesuada sem tempor ac. Sed auctor, diam sed sodales vulputate, quam enim pulvinar ante, sed sollicitudin arcu est sit amet justo. Donec ac leo blandit, facilisis purus non, fringilla velit. Sed vel tempor eros, vel </td>
<td>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam fringilla metus lorem, a malesuada sem tempor ac. Sed auctor, diam sed sodales vulputate, quam enim pulvinar ante, sed sollicitudin arcu est sit amet justo. Donec ac leo blandit, facilisis purus non, fringilla velit. Sed vel tempor eros, vel </td>
</tr>
<tr>
<td class="sticky-col first-col">consectetur </td>
<td class="sticky-col second-col">consectetur </td>
<td>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam fringilla metus lorem, a malesuada sem tempor ac. Sed auctor, diam sed sodales vulputate, quam enim pulvinar ante, sed sollicitudin arcu est sit amet justo. Donec ac leo blandit, facilisis purus non, fringilla velit. Sed vel tempor eros, vel </td>
<td>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam fringilla metus lorem, a malesuada sem tempor ac. Sed auctor, diam sed sodales vulputate, quam enim pulvinar ante, sed sollicitudin arcu est sit amet justo. Donec ac leo blandit, facilisis purus non, fringilla velit. Sed vel tempor eros, vel </td>
</tr>
<tr>
<td class="sticky-col first-col">consectetur </td>
<td class="sticky-col second-col">consectetur </td>
<td>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam fringilla metus lorem, a malesuada sem tempor ac. Sed auctor, diam sed sodales vulputate, quam enim pulvinar ante, sed sollicitudin arcu est sit amet justo. Donec ac leo blandit, facilisis purus non, fringilla velit. Sed vel tempor eros, vel </td>
<td>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam fringilla metus lorem, a malesuada sem tempor ac. Sed auctor, diam sed sodales vulputate, quam enim pulvinar ante, sed sollicitudin arcu est sit amet justo. Donec ac leo blandit, facilisis purus non, fringilla velit. Sed vel tempor eros, vel </td>
</tr>
<tr>
<td class="sticky-col first-col">consectetur </td>
<td class="sticky-col second-col">consectetur </td>
<td>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam fringilla metus lorem, a malesuada sem tempor ac. Sed auctor, diam sed sodales vulputate, quam enim pulvinar ante, sed sollicitudin arcu est sit amet justo. Donec ac leo blandit, facilisis purus non, fringilla velit. Sed vel tempor eros, vel </td>
<td>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam fringilla metus lorem, a malesuada sem tempor ac. Sed auctor, diam sed sodales vulputate, quam enim pulvinar ante, sed sollicitudin arcu est sit amet justo. Donec ac leo blandit, facilisis purus non, fringilla velit. Sed vel tempor eros, vel </td>
</tr>
</tbody>
</table>
</div>
Content within the last TD is to be shown and hidden on click of "Click for content".
But the TD isn't fitting within the table. How can this be fixed.
<table>
<tr>
<td>test td 1</td>
<td>test td 2</td>
<td>test td 3</td>
<td>test td 4</td>
<td>test td 5</td>
<td>Click for content</td>
<td>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer pulvinar nisi sit amet luctus efficitur. Vivamus eu risus suscipit, ultricies tortor eu, sodales tellus. Sed sed feugiat massa. Cras mollis, erat eget pellentesque porttitor, mauris lectus ultricies neque, varius iaculis quam mi et quam. Interdum et malesuada fames ac ante ipsum primis in faucibus. Nunc egestas nec mi eu lobortis. Nam eu scelerisque orci. Mauris vel ultricies dui, non accumsan turpis. Aliquam pulvinar in dolor sit amet fringilla. Integer sed quam pellentesque, volutpat arcu a, feugiat nisi. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed auctor ac nulla sit amet suscipit.
</td>
</tr>
</table>
Fiddle : http://jsfiddle.net/rngapLze/
tr td {
border: 1px solid red;
background: #eaeaea;
}
<table>
<tr>
<td class="item-big" colspan="5">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer pulvinar nisi sit amet luctus efficitur. Vivamus eu risus suscipit, ultricies tortor eu, sodales tellus. Sed sed feugiat massa. Cras mollis, erat eget pellentesque porttitor, mauris
lectus ultricies neque, varius iaculis quam mi et quam. Interdum et malesuada fames ac ante ipsum primis in faucibus. Nunc egestas nec mi eu lobortis. Nam eu scelerisque orci. Mauris vel ultricies dui, non accumsan turpis. Aliquam pulvinar in dolor
sit amet fringilla. Integer sed quam pellentesque, volutpat arcu a, feugiat nisi. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed auctor ac nulla sit amet suscipit.</td>
</tr>
<tr>
<td class="item0">test td 1</td>
<td class="item1">test td 2</td>
<td class="item2">test td 3</td>
<td class="item3">test td 4</td>
<td class="item4">test td 5</td>
</tr>
</table>