Tumblr Tutorials


Adding Image Borders - Solution

Remember, the code to create a link is

 <a href="[URL HERE]"/> 
Thus, you're looking in the CSS for the img selector (lines 54 to 56).

Code


         
         img{  
                max-width: 100%;
             }
          

You want to add to the code in the bold section. Lets say we want a dashed border, then we need:

 border-style: dashed; 

We can also specify the border color and width:


  border-color: red;
  border-width: 5px;

Putting this all together, this is what your Tumblr code and page will look like before and after your modifications:

Before:

After: