i need help with some css to move the L in the above screenshot to the right. this is a repeating group which will have up to 5 circles so i want the data to align right to left.
You don’t need CSS for that.
You can just put the same element twice in the different positions and then set conditionals to hide or show it based on who lost the match or some other conditional that gets the L to display under the correct club.
@boston85719 I’m not sure I explained the context correctly. The repeating group will return data for the given team’s previous 5 matches. There is conditional formatting to turn the circle green, red or grey based on if it was a win, lost or draw. In the screenshot the teams have only played 1 prior match which resulted in a Draw for MCI and a Win for MUN. If the teams had played 5 prior matches, there would be 5 circles.
What I’m trying to do is align these circles from right to left to keep the design consistent.
So, if a team has won 3 matches and lost 2 matches the L circle will be on the same side of all 5 matches regardless?
How about a screen shot with 5 matches to help understand the concept?
Here is a screenshot from another widget but you can see how it shows a list of the last 5 matches and the overall result. The screenshot here show that this team’s last 5 matches has resulted in a Draw, Win, Win, Draw and Loss.
In my original screenshot, what I’m trying to achieve is having the circles for the right team (MUN) to start from the right.
Image if the second row down which has a Draw and Win, if that list would start from the right side of screen instead of the left.
I still think you are better off just using conditionals.
It is also still hard to imagine what exactly you want to accomplish since the screen shots are materially different in that the first has two teams and the second only shows one team.
at the essence, repeating groups list data by default is left to right. I just want to flip that to be right to left. I know that can be done via expose IDs and then creating a small html element with style code. What i cannot work out is the CSS that is required for this to work.
@boston85719 I finally cracked it
I used the HTML code element with the following CSS
<style>
#right {
display: flex;
align-content: flex-end;
flex-direction: row-reverse;
}
</style>
This topic was automatically closed after 70 days. New replies are no longer allowed.