Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tips for CSS formatting #76

Closed
paulrobertpine opened this issue Sep 17, 2018 · 4 comments
Closed

Tips for CSS formatting #76

paulrobertpine opened this issue Sep 17, 2018 · 4 comments

Comments

@paulrobertpine
Copy link

Hello,

Please see:

https://songbook.netlify.com/it-s-my-life/

Do you have any CSS tips to avoid the problem with chords that don't have lyrics under them? I'd like all the chords to line up regardless if there are words under them. See attached screenshot.

screen shot 2018-09-17 at 11 16 54 am

@paulrobertpine
Copy link
Author

I can see how you might do this with CSS grid or Flexbox and making the Chords have a width of zero, but that doesn't work well where you have sections of chords only as they overlap.

@martijnversluis
Copy link
Owner

@paulrobertpine There are some solutions, using flexbox is one of them. Another, simple solution is to use:

.lyrics:after {
    content: '\200b';
}

Here is a post that mentions several solutions: https://stackoverflow.com/questions/3416454/how-to-make-an-empty-div-take-space.

Please let me know if this is helpful.

@paulrobertpine
Copy link
Author

Thanks, it didn't work but I appreciate the tip! I'll update this once I find a good solution. If you're aware of another example of a site using the HtmlDivFormatter() markup please let me know.

@paulrobertpine
Copy link
Author

yep, flexbox! sorry to bug you about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants