Jump to content

Quick Wiki Editing Tip #2 - Make a Blank Line in the Middle of a Table


BlackSpectre

Recommended Posts

If you're making one big table and it has 2 sections, instead of breaking it out so that each section is it's own, separate table, you can make it "look" like they are separate sections by creating a blank line between the sections of the table. 

 

To do this, you want to turn the columns in a row into one big cell with COLSPAN, then you'll need to change the background color of the cell to the same as the color of the main page (in our case usually white). Then you'll want to remove the borders on both the left and right sides of that blank line. Here's the wiki code to do it:

 

colspan=2 style="background:white; border-left:hidden; border-right:hidden;"

 

The wiki code for a simple table with 2 columns would look like this:

 

{| class="wikitable"

|- 

|  Some Example Text

| Some More Example Text

|-

| colspan=2 style="background:white; border-left:hidden; border-right:hidden;"  |  

|- 

| Second Section Text 

| More Second Section Text

|}

 

The HTML code for a non-breaking space ( ) is necessary for the cell to have some height.

 

And that's it! Fast and easy! 🙂

 

 

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...