<!DOCTYPE html>
<html>
<head>
<style>
table,th,td
{
border:0px solid black;
border-collapse:collapse;
padding:5px;
}
</style>
</head>
<body>
<table style="width:400px">
<tr>
<td>example</td>
<td>example</td>
<td>example</td>
</tr>
<tr>
<td>example</td>
<td>example</td>
<td>example</td>
</tr>
<tr>
<td>example</td>
<td>example</td>
<td>example</td>
</tr>
</table>
</body>
</html>
<style>
table,tr,td
{
border: 0px solid black;
border-collapse: collapse;
padding: 5px;
margin: 5px;
}
</style>
<style>
table,tr,td
{
border: 1px solid black;
margin: 5px;
padding: 5px;
}
</style>
<?php
add_to_head("<style>
table,th,td
{
border:0px solid black;
margin: 5px;
padding:5px;
}
</style>
<script type='text/javascript' src='".INCLUDES."jquery/jquery.metadata.js'></script>
<script type='text/javascript' src='".INCLUDES."jquery/jquery.tablesorter.js'></script>
<script>
$(document).ready(function()
{
$('#myTable').tablesorter();
}
);
</script>
");
?>
<table style="width:400px" id='myTable" class="tablesorter">
<thead>
<tr>
<td>header1</td>
<td>header2</td>
<td>header3</td>
</tr>
</thead>
<tbody>
<tr>
<td>data1</td>
<td>data2</td>
<td>data3</td>
</tr>
<tr>
<td>data1</td>
<td>data2</td>
<td>data3</td>
</tr>
</tbody>
</table>
Quote
Craig wrote:
Hi,
TinyMCE Editor has an option to help you build tables.
Regards.
http://awesomescreenshot.com/0342rtz089
Quote
skpacman wrote:
looks like articles don't like php. There are other solutions. I'll respond again when I have a fix.
<table style="width:400px" id='myTable" class="tablesorter">
Category Forum
Code Snippet and functions - 8Labels
None yet
Statistics
5 participants
Notifications
You are not receiving notifications from this thread.
Related Questions