Can You Help me With this Code?

Golddisk

Retired Staff
Joined
Feb 25, 2014
Messages
888
Reaction score
150
FP$
7,708
So I'm trying to code something for my forums where some featured content will be linked to at the top of the forums, and I got it work work almost how I want it with one problem - the header section only covers one of columns. I think its probably something not too hard, but I can't figure out a way to get it to cover the whole thing. Maybe a nestled table?? I'm not sure. Maybe a better coder can assist!

Here's what I have so far:

Code:
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead">
<div><center><strong>Featured</strong></center></div>
</td>
</tr>
</thead>
<tbody>
<tr>
<tr>
<td class="trow1"><span class="smalltext">
Featured Content 1
 </span></td>
<td class="trow1"><span class="smalltext">
Featured Content 2
 </span></td>
<td class="trow1"><span class="smalltext">
Featured Content 3
 </span></td>
</tr>
</tbody>
</table>
<br />

And here is what that looks like on the board:
KtWfQ1c.png


The blue top part should go across the entire featured content section.

Thanks if you can help!!
 
Change:
Code:
<td class="thead">

To:
Code:
<td class="thead" colspan="3">
 
Thanks so much Penguinn, it works perfectly!

I had tried using the colspan code yesterday when I was working on it, but I must have been putting it in the wrong spot because it was just making the text span all 3 columns and not the blue background!
 
Back
Top Bottom