Aine Sherlock/Sandbox2: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
 
(5 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 73: Line 73:
<div style="position: relative;">[[File:Awards_ServiceRibbons_TemporalFlow_2011.jpg|200|link-Defense_of_Temporal_Flow_Ribbon|Defense of Temporal Flow Ribbon]][[File:Legacy_Ribbon.png|200|link-Legacy_Ribbon|Legacy Ribbon]][[File:Awards_ServiceRibbons_Graduate.jpg|200|link=Starfleet_Academy_Graduate_Ribbon|Starfleet Academy Graduate Ribbon]]</div>
<div style="position: relative;">[[File:Awards_ServiceRibbons_TemporalFlow_2011.jpg|200|link-Defense_of_Temporal_Flow_Ribbon|Defense of Temporal Flow Ribbon]][[File:Legacy_Ribbon.png|200|link-Legacy_Ribbon|Legacy Ribbon]][[File:Awards_ServiceRibbons_Graduate.jpg|200|link=Starfleet_Academy_Graduate_Ribbon|Starfleet Academy Graduate Ribbon]]</div>
{{EndColumns}}
{{EndColumns}}


==Let's Try again!==
==Let's Try again!==


Ok, I have a new idea! Let's see how this works! (Or maybe I tried this and it didn't work...I don't know anymore, I'm losing my mind!)
Going to try a weird table thing...we'll see.


Ok, this works well enough.


{{StartColumns}}
{| style="margin: 1em auto 1em auto;" border='0' cellspacing='0'
{| style="margin: 0em auto 0em auto;" border='0' cellspacing='0'
|-
|-
<div style="text-align:center;">
! style="background:grey; width:120px" |{{Ribbons|UFP Medal of Freedom|200|1}}
! style="background:grey; width:200px" |{{Ribbons|Pathfinder Award|200|1}}
! style="background:grey; width:200px;" |{{Ribbons|Purple Heart|200|1}}
! style="background:grey; width:200px" |{{Ribbons|Denali Invitational Ribbon|200|3}}
! style="background:grey; width:100px;" |{{Ribbons|Captain's Commendation|200|2}}
</div>
|-
|-
! style="background:grey; width:200px" |{{Ribbons|Neelix Award|200|2}}
! style="background:grey;" |{{Ribbons|Joint Meritorious Unit Award|200|2}}
! style="background:grey; width:200px" |{{Ribbons|Vega Award|200|3}}
! style="background:grey;" |{{Ribbons|Prisoner of War Ribbon|200|1}}
! style="background:grey; width:200px" |{{Ribbons|Natasha Yar Pin|200|1}}
! style="background:grey;" |{{Ribbons|Leadership Excellence Ribbon|200|1}}
|-
! style="background:grey; width:200px" |{{Ribbons|Sheathed Sword|200|2}}
! style="background:grey; width:200px" |{{Ribbons|Okuda Award|200|1}}
! style="background:grey; width:200px" |{{Ribbons|1-year Member|200|1}}
|}
{{Column}}
{{StartColumns|50%}}
{| style="margin: 0em auto 0em 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="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="background:grey; width:200px" |{{Ribbons|Good Conduct Ribbon|200|2}}
! style="background:grey; width:200px" |{{Ribbons|Good Conduct Ribbon|200|2}}
Line 124: Line 106:
! style="background:grey; width:200px" |{{Ribbons|Starfleet Academy Graduate Ribbon|200|1}}
! style="background:grey; width:200px" |{{Ribbons|Starfleet Academy Graduate Ribbon|200|1}}
|}
|}
{{EndColumns}}
 
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.

Awards ServiceRibbons PurpleHeart 2011.jpg
Award-goldstar.png
Award-goldstar.png
Awards ServiceRibbons Commendation.jpg
Awards ServiceRibbons JointMeritoriousUnit 2011.jpg
Awards General Neelix 2011.jpg
Award-goldstar.png
Vega Award.png
Awards DutyPost NatashaYarPinAward 2011.jpg
Award-goldstar.png
Awards ServiceRibbons FirstContact 2011.jpg
Awards ServiceRibbons Peacekeeper 2011.jpg
Award-goldstar.png
Award-goldstar.png
Award-goldstar.png
Awards ServiceRibbons Explorers 2011.jpg
Awards General SheathedSword 2011.jpg
Okuda Award.png
Awards General 1Year.jpg
Awards ServiceRibbons TemporalFlow 2011.jpg
Legacy Ribbon.png
Awards ServiceRibbons Graduate.jpg

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.

Award-goldstar.png
Neelix AwardVega AwardNatasha Yar Pin
Sheathed SwordOkuda Award1 Year Member
Award-goldstar.png
Award-goldstar.png
Purple HeartCaptain's CommendationJoint Meritorious Unit Award
Award-goldstar.png
Award-goldstar.png
Award-goldstar.png
Award-goldstar.png
First Contact RibbonPeacekeeper RibbonExplorer's Ribbon
Defense of Temporal Flow RibbonLegacy RibbonStarfleet Academy Graduate Ribbon


Award-goldstar.png
Neelix AwardVega AwardNatasha Yar Pin
Sheathed SwordOkuda Award1 Year Member
Award-goldstar.png
Award-goldstar.png
Captain's CommendationJoint Meritorious Unit Award
Award-goldstar.png
Award-goldstar.png
Award-goldstar.png
Award-goldstar.png
First Contact RibbonPeacekeeper RibbonExplorer's Ribbon
Defense of Temporal Flow RibbonLegacy RibbonStarfleet Academy Graduate Ribbon


Let's Try again!

Going to try a weird table thing...we'll see.

Ok, this works well enough.

Awards ServiceRibbons MedalOfFreedom 2011.jpg
Awards ServiceRibbons PurpleHeart 2011.jpg
Award-goldstar.png
Awards ServiceRibbons Commendation.jpg
Award-goldstar.png
Awards ServiceRibbons JointMeritoriousUnit 2011.jpg
Awards ServiceRibbons POW 2011.jpg
Leadership Excellence Ribbon.png
Award-goldstar.png
Awards ServiceRibbons GoodConduct 2011.jpg
Award-goldstar.png
Award-goldstar.png
Awards ServiceRibbons FirstContact 2011.jpg
Awards ServiceRibbons Peacekeeper 2011.jpg
Award-goldstar.png
Award-goldstar.png
Award-goldstar.png
Awards ServiceRibbons Explorers 2011.jpg
Awards ServiceRibbons Innovationribbon 2014.jpg
Award-goldstar.png
Awards ServiceRibbons diplomacyribbon 2014.jpg
Starfleet Investigation Ribbon.png
Award-goldstar.png
Award-goldstar.png
Awards ServiceRibbons TemporalFlow 2011.jpg
Awards ServiceRibbons DepartmentChief.jpg
Maiden Voyage Ribbon.png
Legacy Ribbon.png
Awards ServiceRibbons Graduate.jpg

Now let's try with two ribbons on the top row.

Awards ServiceRibbons MedalOfFreedom 2011.jpg
Awards ServiceRibbons PurpleHeart 2011.jpg
Awards ServiceRibbons MedalOfFreedom 2011.jpg
Awards ServiceRibbons PurpleHeart 2011.jpg
Award-goldstar.png
Awards ServiceRibbons Commendation.jpg
Award-goldstar.png
Awards ServiceRibbons JointMeritoriousUnit 2011.jpg
Awards ServiceRibbons POW 2011.jpg
Leadership Excellence Ribbon.png
Award-goldstar.png
Awards ServiceRibbons GoodConduct 2011.jpg
Award-goldstar.png
Award-goldstar.png
Awards ServiceRibbons FirstContact 2011.jpg
Awards ServiceRibbons Peacekeeper 2011.jpg
Award-goldstar.png
Award-goldstar.png
Award-goldstar.png
Awards ServiceRibbons Explorers 2011.jpg
Awards ServiceRibbons Innovationribbon 2014.jpg
Award-goldstar.png
Awards ServiceRibbons diplomacyribbon 2014.jpg
Starfleet Investigation Ribbon.png
Award-goldstar.png
Award-goldstar.png
Awards ServiceRibbons TemporalFlow 2011.jpg
Awards ServiceRibbons DepartmentChief.jpg
Maiden Voyage Ribbon.png
Legacy Ribbon.png
Awards ServiceRibbons Graduate.jpg