Aine Sherlock/Sandbox2: Difference between revisions
No edit summary |
|||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
===My Ribbon Rack Experiments=== | ===My Ribbon Rack Experiments=== | ||
Current single table. | Current single table. Problem arises when trying to put two ribbons on a line. Aligns left instead of center. | ||
{| style="margin: 0em auto 0em auto;" border='0' cellspacing='0' | {| style="margin: 0em auto 0em auto;" border='0' cellspacing='0' | ||
|- | |- | ||
Line 74: | Line 74: | ||
{{EndColumns}} | {{EndColumns}} | ||
==Let's Try again!== | |||
Going to try a weird table thing...we'll see. | |||
Ok, this works well enough. | |||
{| style="margin: 1em auto 1em auto;" border='0' cellspacing='0' | |||
{| style="margin:1em auto | |||
|- | |- | ||
| | ! style="background:grey; width:120px" |{{Ribbons|UFP Medal of Freedom|200|1}} | ||
! style="background:grey; width:200px;" |{{Ribbons|Purple Heart|200|1}} | |||
| | ! style="background:grey; width:100px;" |{{Ribbons|Captain's Commendation|200|2}} | ||
|- | |- | ||
| | ! style="background:grey;" |{{Ribbons|Joint Meritorious Unit Award|200|2}} | ||
| | ! style="background:grey;" |{{Ribbons|Prisoner of War Ribbon|200|1}} | ||
| | ! style="background:grey;" |{{Ribbons|Leadership Excellence Ribbon|200|1}} | ||
|- | |- | ||
| | ! style="background:grey; width:200px" |{{Ribbons|Good Conduct Ribbon|200|2}} | ||
{{ | ! style="background:grey; width:200px" |{{Ribbons|First Contact Ribbon|200|3}} | ||
{{ | ! style="background:grey; width:200px" |{{Ribbons|Peacekeeper Service Ribbon|200|1}} | ||
| | |||
|- | |- | ||
| | ! style="background:grey; width:200px" |{{Ribbons|Explorer's Ribbon|200|4}} | ||
| | ! style="background:grey; width:200px" |{{Ribbons|Innovation Ribbon|200|1}} | ||
| | ! style="background:grey; width:200px" |{{Ribbons|Diplomacy Ribbon|200|2}} | ||
|- | |- | ||
! style="background:grey; width:200px" |{{Ribbons|Starfleet Investigation Ribbon|200|1}} | |||
! style="background:grey; width:200px" |{{Ribbons|Defense of Temporal Flow Ribbon|200|3}} | |||
! style="background:grey; width:200px" |{{Ribbons|Department Chief Ribbon|200|1}} | |||
|- | |- | ||
! style="background:grey; width:200px" |{{Ribbons|Maiden Voyage Ribbon|200|1}} | |||
! style="background:grey; width:200px: |{{Ribbons|Legacy Ribbon|200|1}} | |||
! style="background:grey; width:200px" |{{Ribbons|Starfleet Academy Graduate Ribbon|200|1}} | |||
| | |} | ||
Now let's try with two ribbons on the top row. | |||
| | {| style="margin: 1em auto 1em auto;" border='0' cellspacing='0' | ||
! style="background:grey; width:200px;" |{{Ribbons|UFP Medal of Freedom|200|1}} | |||
| | ! style="background:grey; width:200px;" |{{Ribbons|Purple Heart|200|1}} | ||
| | |} | ||
{| style="margin: 1em auto 1em auto;" border='0' cellspacing='0' | |||
|- | |- | ||
! style="background:grey; width:200px;" |{{Ribbons|UFP Medal of Freedom|200|1}} | |||
! style="background:grey; width:200px;" |{{Ribbons|Purple Heart|200|1}} | |||
! style="background:grey; width:200px;" |{{Ribbons|Captain's Commendation|200|2}} | |||
|} | |||
{| style="margin: 1em auto 1em auto;" border='0' cellspacing='0' | |||
! style="background:grey; width:200px;" |{{Ribbons|Joint Meritorious Unit Award|200|2}} | |||
! style="background:grey; width:200px;" |{{Ribbons|Prisoner of War Ribbon|200|1}} | |||
! style="background:grey; width:200px;" |{{Ribbons|Leadership Excellence Ribbon|200|1}} | |||
|} | |||
{| style="margin: 1em auto 1em auto;" border='0' cellspacing='0' | |||
! style="background:grey; width:200px;" |{{Ribbons|Good Conduct Ribbon|200|2}} | |||
! style="background:grey; width:200px;" |{{Ribbons|First Contact Ribbon|200|3}} | |||
! style="background:grey; width:200px;" |{{Ribbons|Peacekeeper Service Ribbon|200|1}} | |||
|} | |||
{| style="margin: 1em auto 1em auto;" border='0' cellspacing='0' | |||
! style="background:grey; width:200px;" |{{Ribbons|Explorer's Ribbon|200|4}} | |||
! style="background:grey; width:200px;" |{{Ribbons|Innovation Ribbon|200|1}} | |||
! style="background:grey; width:200px;" |{{Ribbons|Diplomacy Ribbon|200|2}} | |||
|} | |||
{| style="margin: 1em auto 1em auto;" border='0' cellspacing='0' | |||
! style="background:grey; width:200px;" |{{Ribbons|Starfleet Investigation Ribbon|200|1}} | |||
! style="background:grey; width:200px;" |{{Ribbons|Defense of Temporal Flow Ribbon|200|3}} | |||
! style="background:grey; width:200px;" |{{Ribbons|Department Chief Ribbon|200|1}} | |||
|} | |||
{| style="margin: 1em auto 1em auto;" border='0' cellspacing='0' | |||
! style="background:grey; width:200px;" |{{Ribbons|Maiden Voyage Ribbon|200|1}} | |||
! style="background:grey; width:200px;" |{{Ribbons|Legacy Ribbon|200|1}} | |||
! style="background:grey; width:200px;" |{{Ribbons|Starfleet Academy Graduate Ribbon|200|1}} | |||
|} | |} | ||
Latest revision as of 04:36, 24 July 2024
My Ribbon Rack Experiments
Current single table. Problem arises when trying to put two ribbons on a line. Aligns left instead of center.
Partial example to experiment with centering 2 ribbons on line. Got the columns, and now have stars overlaying ribbons with proper links to ribbon pages! Thanks Noa! Lower example shows ribbon removed from top row to show how it properly centers.
For 3 ribbons per row: Center star on ribbon 1 106px, on ribbon 2 306px, and on ribbon 3 506px. Put div style="position: absolute; left: px; top:12.5 etc after div style="position: relative etc. For 3 stars, plus or minus 56px from center star position. For two stars, first star is single star position minus 38, second star is previous formula but plus 38.
For 2 ribbons per row: Center star on ribbon 1 206, on ribbon 2 406 . Other formulas follow suite.
Let's Try again!
Going to try a weird table thing...we'll see.
Ok, this works well enough.
Now let's try with two ribbons on the top row.