Editing Help:Tables

From FileZilla Wiki
Jump to navigationJump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 82: Line 82:
 
|}
 
|}
  
===With HTML attributes===
+
At last! Somenoe who understands! Thanks for posting!
You can add HTML attributes to make your table look better
 
====border="1"====
 
{| width="100%"
 
|width="50%"|
 
{| border="1"
 
|Orange
 
|Apple
 
|-
 
|Bread
 
|Pie
 
|-
 
|Butter
 
|Ice cream
 
|}
 
|width="50%"|
 
<pre>
 
{| border="1"
 
|Orange
 
|Apple
 
|-
 
|Bread
 
|Pie
 
|-
 
|Butter
 
|Ice cream
 
|}
 
</pre>
 
|}
 
 
 
====align="center" border="1"====
 
{| width="100%"
 
|width="50%"|
 
{| align="center" border="1"
 
|Orange
 
|Apple
 
|-
 
|Bread
 
|Pie
 
|-
 
|Butter
 
|Ice cream
 
|}
 
|width="50%"|
 
<pre>
 
{| align="center" border="1"
 
|Orange
 
|Apple
 
|-
 
|Bread
 
|Pie
 
|-
 
|Butter
 
|Ice cream
 
|}
 
</pre>
 
|}
 
 
 
====align="right" border="1"====
 
You can put attributes on individual '''cells.''' Numbers for example may look better aligned right
 
{| width="100%"
 
|width="50%"|
 
{| border="1"
 
|Orange
 
|Apple
 
|align="right"|12,333.00
 
|-
 
|Bread
 
|Pie
 
|align="right"|500.00
 
|-
 
|Butter
 
|Ice cream
 
|align="right"|1.00
 
|}
 
|width="50%"|
 
<pre>
 
{| border="1"
 
|Orange
 
|Apple
 
|align="right"|12,333.00
 
|-
 
|Bread
 
|Pie
 
|align="right"|500.00
 
|-
 
|Butter
 
|Ice cream
 
|align="right"|1.00
 
|}
 
</pre>
 
|}
 
 
 
 
 
You can put attributes on individual '''rows,''' too.
 
{| width="100%"
 
|width="50%"|
 
{| border="1"
 
|Orange
 
|Apple
 
|align="right"|12,333.00
 
|-
 
|Bread
 
|Pie
 
|align="right"|500.00
 
|- style="font-style:italic;color:green;"
 
|Butter
 
|Ice cream
 
|align="right"|1.00
 
|}
 
|width="50%"|
 
<pre>
 
{| border="1"
 
|Orange
 
|Apple
 
|align="right"|12,333.00
 
|-
 
|Bread
 
|Pie
 
|align="right"|500.00
 
|- style="font-style:italic;color:green;"
 
|Butter
 
|Ice cream
 
|align="right"|1.00
 
|}
 
</pre>
 
|}
 
 
 
====cellspacing="0" border="1"====
 
{| width="100%"
 
|width="50%"|
 
{| cellspacing="0" border="1"
 
|Orange
 
|Apple
 
|-
 
|Bread
 
|Pie
 
|-
 
|Butter
 
|Ice cream
 
|}
 
|width="50%"|
 
<pre>
 
{| cellspacing="0" border="1"
 
|Orange
 
|Apple
 
|-
 
|Bread
 
|Pie
 
|-
 
|Butter
 
|Ice cream
 
|}
 
</pre>
 
|}
 
 
 
====cellpadding="20" cellspacing="0" border="1"====
 
{| width="100%"
 
|width="50%"|
 
{| cellpadding="20" cellspacing="0" border="1"
 
|Orange
 
|Apple
 
|-
 
|Bread
 
|Pie
 
|-
 
|Butter
 
|Ice cream
 
|}
 
|width="50%"|
 
<pre>
 
{| cellpadding="20" cellspacing="0" border="1"
 
|Orange
 
|Apple
 
|-
 
|Bread
 
|Pie
 
|-
 
|Butter
 
|Ice cream
 
|}
 
</pre>
 
|}
 
  
 
===With HTML attributes and CSS styles===
 
===With HTML attributes and CSS styles===
 
CSS style attributes can be added with or without other HTML attributes
 
CSS style attributes can be added with or without other HTML attributes
====style="color:green;background-color:#ffffcc;" cellpadding="20" cellspacing="0" border="1"====
+
Hhaahhaa. I’m not too bright today. Great post!
{| width="100%"
 
|width="50%"|
 
{| style="color:green;background-color:#ffffcc;" cellpadding="20" cellspacing="0" border="1"
 
|Orange
 
|Apple
 
|-
 
|Bread
 
|Pie
 
|-
 
|Butter
 
|Ice cream
 
|}
 
|width="50%"|
 
<pre>
 
{| style="color:green;background-color:#ffffcc;" cellpadding="20" cellspacing="0" border="1"
 
|Orange
 
|Apple
 
|-
 
|Bread
 
|Pie
 
|-
 
|Butter
 
|Ice cream
 
|}
 
</pre>
 
|}
 
  
 
==Table with TH headings==
 
==Table with TH headings==

Please note that all contributions to FileZilla Wiki are considered to be released under the GNU Free Documentation License 1.2 (see FileZilla Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)