Celebrate Excellence in Education: Nominate Outstanding Educators by April 15!
Is it possible to use the following js function in pages?
width: calc(100% - 10px)
If not, is there any other alternative? I find myself very limited while creating responsive pages in Canvas. Any advice that does not include third-party tools? I just rather hard code everything needed myself.
Thank you!
Solved! Go to Solution.
Hi Josue,
This is valid CSS that can be used withn Canvas pages.
You can place this within a style tag on your element and it should work fine.
Below is an example:
<div style="width: calc(100% - 10px); height: 400px; background: blue;">Some Content</div>
This will make this div 10 pixels smaller than its parent.
Hi Josue,
This is valid CSS that can be used withn Canvas pages.
You can place this within a style tag on your element and it should work fine.
Below is an example:
<div style="width: calc(100% - 10px); height: 400px; background: blue;">Some Content</div>
This will make this div 10 pixels smaller than its parent.
To participate in the Instructure Community, you need to sign up or log in:
Sign In
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.