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

full background image CSS #99

Closed
osehgol opened this issue Nov 10, 2014 · 4 comments
Closed

full background image CSS #99

osehgol opened this issue Nov 10, 2014 · 4 comments

Comments

@osehgol
Copy link

osehgol commented Nov 10, 2014

Hi - your theme's awesome, thank you so much for the effort and the issues you resolve (have been helpful).

I'm trying to add a background image on a page (might create a new .html in _layout) using technique #2 here -http://css-tricks.com/perfect-full-page-background-image/. Basically I need to add an HTML snippet in the page and add corresponding CSS in the CSS file.

My question is, where can I add the corresponding CSS for a page in your theme template? I've tried appending it to _sass/page.scss but it didn't work. I understand that /assets/css/main.scss shows the compiled css so I shouldn't be editing that.

I'm sorry if you find this annoying, I am quite new to programming honestly. Any help would be awesome.

Thank you.

@jeremyvoltz
Copy link
Contributor

From a similar question:
What I did was made a new file called mystyles.scss, where I could add any tweaks I wanted instead of having to find everything and change them. Then simply add @import "mystyles"; to the end of /assets/css/main.scss for it to be included.

Hope that helps!

@mmistakes
Copy link
Owner

@jeremyvoltz That's how I'd do it. Makes updating easier.

@mmistakes
Copy link
Owner

@osehgol Adding your styles to _page.scss should add them to main.css. First step is to verify that they're indeed there by taking a peek at main.css (either by viewing the site's source or looking at the compiled file in _site/.

If the styles are there then it sounds like they aren't being applied properly. I'd check your HTML markup to see if you have the correct class/id names and all that. Other than me teaching you CSS I'm out of ideas 😉

@osehgol
Copy link
Author

osehgol commented Nov 11, 2014

@jeremyvoltz @mmistakes thank you guys, big ups for the smart answers.

@osehgol osehgol closed this as completed Nov 11, 2014
cjmadsen pushed a commit to cjmadsen/cjmadsen.github.io that referenced this issue Dec 7, 2016
theRealSuperMario pushed a commit to theRealSuperMario/therealsupermario.github.io that referenced this issue Jul 18, 2020
🐛 Fix error in CachedDataset
nweat pushed a commit to nweat/nweat-old-portfolio that referenced this issue Feb 1, 2023
…/babel/eslint-parser-7.19.1

chore(deps-dev): bump @babel/eslint-parser from 7.18.9 to 7.19.1
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

3 participants