Your Community is getting an upgrade!
Read about our partnership with Higher Logic and how we will build the next generation of the Instructure Community.
This took me much longer to figure out than it should have; maybe it will be helpful to you (or, for the more seasoned veterans, a chance to tell us how to do it better). Also, if you do not need text to overlap images, you can insert the image above your text header (this is much easier than the process below).
Quick story about what I was trying to do (skip this paragraph to get to the tutorial). I'm creating a gamified online course for college and graduate students in the form of a Space Opera. There's lots of content, but I wanted to create an unfolding epic story to go along with the content. Each main mission was mandatory. This could be weekly assignments, quizzes, readings, etc.; each element included a snippet of the adventure story. I used this storyline to keep students engaged in the content. I also had side missions that were optional for the students to complete but helped them to earn more badges for the leaderboard (these were also connected to the story; in this case, side quests provided fuel for a spaceship and offered other benefits like extra credit on quizzes, due date extensions, etc. I wanted image headers at the top of my canvas assignments, quizzes, etc. I also wanted to let the title overlap the background header a little to give it a more sophisticated look.
Sometimes my image would only appear in the editor but not on the front end, the part the students see. This happened sporadically throughout my canvas shell for reasons I do not understand. You should also know that my university does not allow me to mess with any backend CSS, so everything has to be in line (there's probably a better workaround for this, but that's a problem for another day).
Through a lot of troubleshooting, the problem was in the URL for the image. Canvas creates a bit of code at the end of the image URL that it needs to display the image correctly. This is how I got it to work more consistently.
This is how my code looked.
<div style="background-image: url('YOUR IMAGE URL'); background-position: center top; background-size: contain; background-repeat: no-repeat; background-color: #COLOR HEX CODE; padding-top: 30%; padding-bottom: 5%; text-align: center;">YOUR PAGE CONTENT</div>
I hope that helps! Don't forget to save!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm a professor at the private university. I teach in the Christian Studies department in the areas of Media Ministry, Youth Ministry, Christian Education, Digital Communications in Ministry and generally anything that has to do with technology and ministry. I'm big into gamification in my courses, changing a course about any one of the subjects above into a hero's quest, space odyssey, murder mystery, or jungle adventure.
To interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign InTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign In