[ARCHIVED] New RCE: Image Padding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The New RCE has an interesting option under Formats > Blocks > Div -- what happens when I select "Div"? I am looking for easy ways to control padding around an image in the new RCE since I can't control CSS (at least I'm under the impression that I do not have that capability).
What is this there for? What can I do to accomplish the task I want to accomplish?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
To add padding around an image, I use the HTML editor.
Clemson has a great tutorial: Image Padding: Visual Design in Canvas
Does this work for you? The little HTML icon is near the bottom of the editing window with the new interface. 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
from : https://clemson.instructure.com/courses/12011/pages/image-padding
Using HTML to Add Padding
To add padding to an image, you'll need to navigate to your Canvas page and:
- Click Edit
- Switch to HTML Editor
- Locate the HTML code for the image(s) you'd like to adjust
- Using Control+F or Command+F to search for
<img
may make this process easier
- Using Control+F or Command+F to search for
- Locate the image's style attribute; if the image doesn't have one, you can add one by typing
style=""
after img - Within the quotation marks, add
padding: 10px;
. If there is another style attribute, separate them with semicolons (e.g.style="padding: 10px; float: right;"
) - Switch to the Rich Content Editor and select your image; you should be able to see a 10-pixel border around the image.
Selective Padding
In the instructions above, a 10-pixel border is added to the image on all sides. However, you can add padding selectively by using padding-bottom, padding-left, padding-right, and padding-top. Here are a few examples:
style="padding-left: 10px; padding-bottom: 20px;"
style="padding-right: 20px; padding left: 20px;"
style="padding-top: 15px;"
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.