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.

  1. First, insert your images as usual by clicking the image icon on your Duet page editor.

  2. 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>
    
  3. Add the class="frame" attribute on all img tags you want to have a border. It should look something like this:

    <img src="https://path/to/your/image.jpg" class="frame" />
    
  4. 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