Register for InstructureCon25 • Passes include access to all sessions, the expo hall, entertainment and networking events, meals, and extraterrestrial encounters.
Found this content helpful? Log in or sign up to leave a like!
Hi,
I have used a background image on the Custom HTML feature in the Certificate area of Catalog and everything was running smoothly until two days ago. Now you cannot see the image on any of the certificates in my catalog and I have tried to adjust the HTML code to no avail. The image is hosted on our internal Content Management System and appears to be working fine on my end.
Here is the code in Canvas. Does anyone have any ideas of what could have happened and how to fix it? Thanks so much everyone!
<head>
</head>
<body>
<style>
.container {
border: none;
width: 816px;
height: 1056px;
box-sizing: border-box;
padding: 50px;
font-family: raleway;
background-image: url(https://socialwork.wayne.edu/ce/canvas-catalog/ableism.png);
background-size: 816px 1056px;
background...
h1,
h2,
h3,
h4,
h5 {
margin: 0
}
body,
html {
padding: 0;
margin: 0;
}
#student_name {
font-size: 35px;
font-family: raleway;
margin: 15px;
text-transform: none;
text-align: center;
padding-top: 270px;
}
#award_name {
font-size: 20px;
font-family: raleway;
text-align: center;
padding-top: 65px;
padding-left: 100px;
padding-right: 100px;
}
#cert-date {
font-size: 18px;
font-family: raleway;
text-align: left;
padding-top: 180px;
padding-left: 175px;
}
#credits {
font-size: 18px;
font-family: raleway;
text-align: left;
padding-top: 90px;
padding-left: 190px;
}
</style>
<div class="container">
<p>
<h2 id="student_name">{{student_name}}</h2><br>
<h2 id="award_name">{{award_name}}</h2><br>
<h4 id="cert-date">{{completion_date}}</h4><br><br>
<h4 id="credits">{{credits}}</h4><br><br>
</p>
</div>
</body>
@BetsyV Try this: https://www.w3schools.com/html/html_images_background.asp and see if Instructure support can help.
Thanks @jsowalsk! I added this to the HTML code to no avail. I will contact Instructure support.
It might be the code. For background-image css you need quotes around the url, like this:
background-image: url("https://socialwork.wayne.edu/ce/canvas-catalog/ableism.png");
Although, when I copy your code above into a sample listing for me, the image displays even though there's no quotes around the url.
To interact with Panda Bot in the Instructure Community, you need to sign up or log in:
Sign In