PDA

View Full Version : how to create tables advanced



shad2
June 24th, 2014, 02:46 PM
how can i create another two rows for each of the 1.1.1 and 1.1.2 rows in the following example
I have tried and it is not coming out
<!DOCTYPE html>
<html>
<head>
<title></title>
<style>
table { width:auto; height:1px; table-layout:auto; border-collapse:collapse;
margin-left:20px; border:1px solid black; }
td, th { width:50px; height:1px; overflow:hidden; visibility:visible;
border:1px solid black; padding:5px; background:gold;
text-align:center; vertical-align:middle; text-indent:5px; }
</style>
</head>
<body class="noscroll">

<table>
<tr> <td rowspan="2">1.1</td> <td>1.1.1</td></tr><tr><td>1.1.2</td></tr>

</table>

</body>
</html>

waffen
June 24th, 2014, 07:18 PM
and?? whats the Ubuntu related question???

yancek
June 24th, 2014, 10:33 PM
I'm not really sure what you are trying to do but, if you want "1.1, 1.1.1 and 1.1.2" as separate rows change your entry to:


<table>
<tr> <td>1.1</td></tr><tr> <td>1.1.1</td></tr><tr><td>1.1.2</td></tr>

</table>

If that's now what you want, post more information. You could probably get some good beginner information on html at w3schools as well as a number of other sites.

oldos2er
June 25th, 2014, 12:53 AM
Not an Ubuntu support question; moved to Cafe.

Old_Grey_Wolf
June 25th, 2014, 09:17 PM
I am also not sure what you are trying to do. If you want a line break within a table use <br>.

<table>
<tr> <td>1.1<br>whatever you what</td></tr><tr> <td>1.1.1<br>whatever you what</td></tr><tr><td>1.1.2<br>whatever you what</td></tr>

</table>