Aine Sherlock/Sandbox2: Difference between revisions
(new experiment) |
No edit summary |
||
Line 77: | Line 77: | ||
===New Experiment Based Off Wikipedia Article=== | ===New Experiment Based Off Wikipedia Article=== | ||
Using coding from wikipedia. Able to get two columns, correct centering. Need to figure out if I can align to the bottom (so far no go). Next to find out how to get the stars in correctly. So far...janky. | Using coding from wikipedia in order to make the display more friendly for both browser and mobile...still janky. Able to get two columns, correct centering. Need to figure out if I can align to the bottom (so far no go). Next to find out how to get the stars in correctly. So far...janky. | ||
==Orders, decorations and medals== | ==Orders, decorations and medals== | ||
{{StartColumns|50%}} | {{StartColumns|50%}} | ||
{{StartColumns|33%}} | |||
{| style="margin:1em auto; text-align:center;" | {| style="margin:1em auto; text-align:center;" | ||
|colspan="3"|[[File:Denali_Invitational_Ribbon.png|200|link=Denali_Invitational_Ribbon|Denali Invitational Ribbon]] | |colspan="3"|[[File:Denali_Invitational_Ribbon.png|200|link=Denali_Invitational_Ribbon|Denali Invitational Ribbon]] | ||
Line 94: | Line 95: | ||
|- | |- | ||
|} | |} | ||
{{EndColumns}} | |||
{{Column}} | {{Column}} | ||
{{StartColumns|50%}} | {{StartColumns|50%}} | ||
{{StartColumns|33%}} | |||
{| style="margin:1em auto; text-align:center;" | {| style="margin:1em auto; text-align:center;" | ||
|colspan="3"|[[File:Awards_ServiceRibbons_MedalOfFreedom_2011.jpg|200|link=UFP_Medal_of_Freedom|UFP Medal of Freedom]] | |colspan="3"|[[File:Awards_ServiceRibbons_MedalOfFreedom_2011.jpg|200|link=UFP_Medal_of_Freedom|UFP Medal of Freedom]] | ||
Line 120: | Line 123: | ||
|- | |- | ||
|} | |} | ||
{{EndColumns}} | |||
{{EndColumns}} | {{EndColumns}} |
Revision as of 19:55, 11 June 2024
My Ribbon Rack Experiments
Current single table.
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.
New Experiment Based Off Wikipedia Article
Using coding from wikipedia in order to make the display more friendly for both browser and mobile...still janky. Able to get two columns, correct centering. Need to figure out if I can align to the bottom (so far no go). Next to find out how to get the stars in correctly. So far...janky.
Orders, decorations and medals
|
|