Sirius_Alpha Admin
Number of posts : 4320 Location : Earth Registration date : 2008-04-06
| Subject: HTML tags in posts. 4th June 2008, 12:29 pm | |
| I really don't know how many people are aware of this, but I'll announce it anyway. phpbb3 allows for HTML tags and formatting, which I've found useful for organising my posts and presenting data in an nicer format. It's slightly different than what one would write in a .html file though, as opposed to - Code:
-
, we would write - Code:
-
[table] For example, I've written down the basic parameters of the 55 Cancri system in HTML, as well as displayed the code. - Code:
-
[table border=1 bordercolor="#FFFFFF"][tr][td bgcolor="#0000cc"][b]Planet[/b][/td][td][b]Mass (xJupiter)[/b][/td][td][b]Period (d)[/b][/td][td][b]semi-major axis[/b][/td][td][b]eccentricity[/b][/td][td][b]Discovered[/b][/td][/tr] [tr][td]55 Cancri b[/td][td]0.824[/td][td]14.65162[/td][td]0.115 AU[/td][td]0.014[/td][td]1996[/td][/tr] [tr][td]55 Cancri c[/td][td]0.169[/td][td]44.3446[/td][td]0.24 AU [/td][td]0.086[/td][td]2002[/td][/tr] [tr][td]55 Cancri d[/td][td]3.835[/td][td]5218[/td][td]5.77[/td][td]0.025[/td][td]2002[/td][/tr] [tr][td]55 Cancri e[/td][td]0.034[/td][td]2.81705[/td][td]0.038[/td][td]0.07[/td][td]2004[/td][/tr] [tr][td]55 Cancri f[/td][td]0.144[/td][td]260[/td][td]0.781[/td][td]0.2[/td][td]2007[/td][/tr][/table]
Planet | Mass (xJupiter) | Period (d) | semi-major axis | eccentricity | Discovered | 55 Cancri b | 0.824 | 14.65162 | 0.115 AU | 0.014 | 1996 | 55 Cancri c | 0.169 | 44.3446 | 0.24 AU
| 0.086 | 2002 | 55 Cancri d | 3.835 | 5218 | 5.77 | 0.025 | 2002 | 55 Cancri e | 0.034 | 2.81705 | 0.038 | 0.07 | 2004 | 55 Cancri f | 0.144 | 260 | 0.781 | 0.2 | 2007 |
Known problems
- Quotes don't work if they're within a table cell.
tr or td bgcolors don't seem to work (shown in code). Turns out I misspelled the code...
Last edited by Sirius_Alpha on 11th May 2010, 5:22 pm; edited 16 times in total (Reason for editing : Spelling mistakes, problems getting the code to show up, and so on.) | |
|