Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

Body background now responsive #17

Closed
wants to merge 1 commit into from

Conversation

DillonSimeone
Copy link

@DillonSimeone DillonSimeone commented Oct 2, 2018

#4

Sadly, background-position-y: ... won't perfectly fix the gap at the bottom without making a new gap on the top due to the .png being what it is.

bg.png could be swapped out for a better image like the one linked below instead, so there's no gaps at all on the bottom of the .png.

(Found by googling "book collage covers file:.png", with the Licensed For Reuse tool option enabled)
https://upload.wikimedia.org/wikipedia/commons/6/67/Images_used_on_D%C3%A9couvertes_Gallimard_book_covers.jpg

It might be a cooler idea to have a div behind the contents that's set to 100vh and 100vw, with img tags of .png book covers in the div so you can randomize the bookcovers in the div, and have a finer control over how the books are displayed, like padding, margins, etc.

Folder of bookcover .pngs named like "1.png", "2.png", etc, and have a tiny JavaScript script that randomly selects x numbers between 1 and (amount of bookcovers) then add those to the background div.

devfake#4 

Sadly, `background-position-y: ...` won't perfectly fix the gap at the bottom without making a new gap on the top due to the .png being what it is.

bg.png could be swapped out for a better image like the one linked below instead, so there's no gaps at all on the bottom of the .png. 

(Found by googling "book collage covers file:.png", with the Licensed For Reuse tool option enabled) 
https://upload.wikimedia.org/wikipedia/commons/6/67/Images_used_on_D%C3%A9couvertes_Gallimard_book_covers.jpg

It might be a cooler idea to have a div behind the contents that's set to 100vh and 100vw, with <img> tags of .png book covers in the div so you can randomize the bookcovers in the div, and have a finer control over how the books are displayed, like padding, margins, etc. 

Folder of bookcover .pngs named like "1.png", "2.png", etc, and have a tiny JavaScript script that randomly selects x numbers between 1 and <amount of bookcovers> then add those to the background div.
@DillonSimeone
Copy link
Author

Nevermind this pull request, I just noticed that there's already pulls for this. I don't see a way to undo my pull requests... Hmm. I'm still learning my way around Github. Delete this pull?

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

Successfully merging this pull request may close these issues.

1 participant