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 screen background? #45

Open
thekingsrook opened this issue Jan 1, 2014 · 2 comments
Open

Full screen background? #45

thekingsrook opened this issue Jan 1, 2014 · 2 comments

Comments

@thekingsrook
Copy link

Hi,
I've been using the following CSS for full screen backgrounds but it doesn't work with Cool Kitten.

.slide1 {
background: url(images/image.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}

When I remove the 'no-repeat center center fixed' from the first line the background image will appear, however the image then repeats, defeating the purpose.

Has anyone got full screen backgrounds to work with Cool Kitten?

@MGlahn
Copy link

MGlahn commented Aug 12, 2014

Hi, I am having a similar problem. I want to have a smaller background image centered, but the centering gets overwritten by the js i guess.
Did you find a solution to your problem?
Best regards
Marie

@ghost
Copy link

ghost commented Aug 22, 2014

@thekingsrook, @MarieGlahn
The code you posted is pretty similar to the code I am using on a project with the Cool Kitten framework:

#slide1{
background: url('../images/background.png') no-repeat center center fixed;
height: 750px;
background-position: 0px 0px;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}

Works like a charm for me!

I did not change the JS or any other files.

edit:

see my repository, I am sorry for the mess in the directories but here it is:

https://github.com/MarekVrofski/La-Dolce-Vallata

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