Forum Moderators: not2easy
<table>
<tr>
<td>Link 1</td>
<td>Link 2</td>
<td>Link 3</td>
</tr>
<tr>
<td>Link 4</td>
<td>Link 5</td>
<td>Link 6</td>
</tr>
<tr>
<td>Link 7</td>
<td>Link 8</td>
<td>Link 9</td>
</tr>
</table>
Obviously, with dynamic content, I want it to "look" like tables so it isn't possible to predict the width.
Is what I'm trying to do, possible at this stage of CSS?
There's a relationship by each link belonging to the same category, they're alphabetized so the desired section of the site is easy to find. (think "parent" category -> "child" category)
Link1a : Link1b : Link1c
Link2a : Link2b : Link2c
Link3a : Link3b : Link3c
<div class = "overall-name-here">
<div class = "inner-div-name">
<p>Link 1</p>
<p>Link 2</p>
<p>Link 3</p>
...
<p>Link 33</p>
</div>
<div class = "inner-div-name">
<p>Link 34</p>
<p>Link 35</p>
...
<p>Link 66</p>
</div>
<div class = "inner-div-name">
<p>Link 67</p>
<p>Link 68</p>
...
<p>Link 99</p>
</div>
</div>
aaa eee iii
bbb fff jjj
ccc ggg kkk
ddd hhh lll
aaa eee
bbb fff
ccc ggg
ddd hhh
iii
jjj
kkk
lll
a e i
b f j
c g k
d h l
a b c
d e f
g h i
j k l
Only supported in IE6 and IE7 on elements with a display of "inline" by default. Alternative properties are available to provide complete cross-browser support.
Only now instead of going by sets of three, you start out by dividing the total list length by three. Ceiling, not floor: you want the longer columns to be first. If it's stored in any kind of array you already know how many there are.
Except that, urk, I just checked and inline-block doesn't happen in MSIE <8. caniuse dot com says that leaves about 4.3% unsupported. I hope they're expendable
min-height:2em;
vertical-align:middle;
float:left;
margin:15px;
text-align:center;
margin-top:auto;
margin-bottom:auto; <div style="border:10px solid #c0c0c0;"><div class="column">
...columns....
</div>
</div>