Skip to content

Instantly share code, notes, and snippets.

@luciandinu
Last active May 17, 2021 11:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luciandinu/aa99103bee14114c75715e3fa110f834 to your computer and use it in GitHub Desktop.
Save luciandinu/aa99103bee14114c75715e3fa110f834 to your computer and use it in GitHub Desktop.
Custom CSS [Sparkle Tutorials] How to create a price list - part 2
<style>
#price_menu p {
display: flex;
justify-content: space-between;
}
#price_menu p span:last-child {
white-space: nowrap;
}
#price_menu_dots p {
display: flex;
justify-content: space-between;
position: relative;
}
#price_menu_dots p span:first-child::after {
content: "..........................................................................................";
letter-spacing: 4px;
font-size: 18px;
color: orange;
margin-left: 20px;
position: absolute;
}
#price_menu_dots p span:last-child {
background-color: #ffffff;
padding-left: 20px;
z-index: 1;
/* Optional fix for multiple row titles
display: inline-flex;
flex-direction: row;
align-items: flex-end;
*/
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment