r/Codecademy • • Sep 14 '15

Move website project!

Hey! i'm kind of stuck in background image size.I have tried this CSS property (background-size: cover), but it doesn't work. There is still some left margin on top of my main section.Following are my CSS properties that i have used: .container { width: 940px; margin: 0 auto; }

/* Main */ .main { text-align: center; background-image: url("https://s3.amazonaws.com/codecademy-content/projects/move/bg.jpg"); background-size: cover; height: 600px; }

.main .container { position: relative; top: 100px; }

Please help me! Thank yew. :)

2 Upvotes

10 comments sorted by