Single post in A Somewhat Extensive Guide to BBCodes
Forum Index > PokéFarm > Guides > A Somewhat Extensive Guide to BBCodes >
Hmm you put some padding on your table cells, and since the highlight element is inside that, there's the spacing.
But wait, I think I have another idea. Maybe we can make the highlighted cells table header cells, and pick just the actual header to make it different!
| example | |||
|---|---|---|---|
This cell is short & wide |
|
|
|
|
|
|
|
Code
[table]
[tr]
[th=4x1]example[/th]
[/tr]
[tr]
[th][css="font-size:75%;"] This cell is short & wide [/css][/th]
[th] [pkmn=shinx] [/th]
[td] [pkmn=luxio] [/td]
[td] [pkmn=luxray] [/td]
[/tr]
[tr]
[th] [pkmn=shinx] [/th]
[td] [pkmn=luxio] [/td]
[td] [pkmn=luxray] [/td]
[td] [pkmn=luxray/mega forme q] [/td]
[/tr]
[/table]
[style]
table, th, td {
border-color: #ddd;
}
th, td {
text-align: center;
padding: 5px;
}
// actual header
th[colspan] {
padding: 7px;
background: black;
color: white;
}
// highlights
th {
background: #559;
color: #ddf;
}
// unhighlighted
td {
background: #666;
color: white;
}
[/style]







