FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Merging Tables

 


DanielXP
Any one know how to merge 5 cells on a html table into 1 ( the columns )
venc
I dont, sorry
LukeakaDanish
@venc: PLEASE...NO SPAM Sad

@ DanielXP:

Easy - use the "colspan" attribute...example:

Code:


<table border="1">
  <tr>
    <td>1</td>
    <td>2</td>
    <td>3</td>
  </tr>
  <tr>
    <td colspan="3">4</td>
  </tr>
  <tr>
    <td>5</td>
    <td>6</td>
    <td>7</td>
  </tr>
</table>



Try dropping that in a HTML document - that should explain it pretty clearly.

The "sister" tag rowspan is also interesting - try messing about with that aswel Very Happy
venc
I am sorry for spamming, its just, I searched a little, and I couldnt find anything, but I didnt want to just leave without saying anything, so, I am sorry
DanielXP
Yer i found out on Dreamweather (kool it does it for you Cool)

erm yer Arrow Smile
Balthamos
Yes, it's just the colspan attribute you tack on to <td> (not <tr>; common mistake).

I have heard though that most things should now be done using CSS. I have seen many tutorials for "floating" layouts and such, and they look really nice . If you are learning how to set up a site with tables, you might want to take a look into CSS before you get too attached.

~Balthamos
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.