Photo Border Effect
Adding a frame around your photos is a very simple yet effective styling you can apply to images on your Duet studio website.
Here's how I did it without modifying the image with an image editor:
Note: The box-shadow is a CSS3 selector and may not properly render in some web browsers.
-
First, insert your images as usual by clicking the image icon on your Duet page editor.
-
Next, go to source view by clicking the Source view button and insert the following styling:
<style type="text/css"> .frame { padding:.4em; border:1px solid #999; box-shadow: 0px 0px 5px #777; -moz-box-shadow: 0px 0px 5px #777; -webkit-box-shadow: 0px 0px 5px #777; } </style> -
Add the
class="frame"attribute on allimgtags you want to have a border. It should look something like this:<img src="https://path/to/your/image.jpg" class="frame" />
-
Save the page and all your images with the class will have a nice white border around.
Here's how it should look like:

Back to Tips & Tricks