title: half borders at top right corner and bottom left corner with css
body: <p>I have a few images where I'd like half borders to the top right corner and to the bottom left corner. The problems I am running into are:</p>
  <p><strong>problem 1:</strong> I have managed to cut of borders at all four corners, but can't cut of top left and bottom right. code below (I'm using this fiddle provided by KillaCam, and experimented a little, with the result that all four corners appear at first and then three of them disappears! : <a href="http://jsfiddle.net/3jo5btxd/" rel="nofollow noreferrer">http://jsfiddle.net/3jo5btxd/</a></p>
  <pre><code>#div1 {
  position: relative;
  height: 100px;
  width: 100px;
  background-color: white;
  border: 1px solid transparent;transition: border 2000ms ease 0s;
  }
  
  #div2 {
  position: absolute;
  top: -2px;
  left: -2px;
  height: 84px;
  width: 84px;
  background-color: #FFF;
  border-radius: 15px;
  padding: 10px;
  }
  </code></pre>
  <p><strong>Problem 2</strong> I already have a panel that has a link vertically centered using the css table method, which is also visible on hover. When I combine the panel's code with the corner borders, my vertical centering goes out of whack! I guess that is happening because of the extra div I am using for borders, but I haven't managed to make the corners with <code>:before</code> (doesn't work on hover). HTML and css below and the also the image showing what I want to make:</p>
  <pre><code>&lt;ul class=&quot;img-list&quot;&gt;
  &lt;li class=&quot;category_lists one-third column-block&quot; '=&quot;&quot;&gt;
  &lt;a href=&quot;http://kohphangan.smartsolutionpro.us/category/adventure/&quot;&gt;
  &lt;img src=&quot;something.jpg&quot;/&gt;
   &lt;span class=&quot;text-content&quot;&gt;
   &lt;span&gt;Adventure&lt;/span&gt;
   &lt;/span&gt;
   &lt;/a&gt;
  &lt;/li&gt;
  &lt;li class=&quot;category_lists one-third column-block&quot; '=&quot;&quot;&gt;
    &lt;a href=&quot;http://kohphangan.smartsolutionpro.us/category/beach-2/&quot;&gt;
  &lt;img src=&quot;something2.jpg&quot; /&gt;
  &lt;span class=&quot;text-content&quot;&gt;
  &lt;span&gt;Beach&lt;/span&gt;
  &lt;/span&gt;
  &lt;/a&gt;
  &lt;/li&gt; &lt;/ul&gt;
  </code></pre>
  <p>CSS:</p>
  <pre><code>/*css for the categories on home page*/
  .img-list{margin:0;padding:0; list-style:none}
  ul.img-list li {
  display: inline-block;
  height: 20em;
  margin: 0;
  position: relative;
  
  }
  .category_lists.one-third{width:33%; margin-left:0;}
  .category_lists img{width:100%; height:auto;}
  
  
  span.text-content span {
  display: table-cell;
  text-align: center;
  vertical-align: middle;
  }
  span.text-content {
  background: rgba(38,196,83,0.7);
  color: white;
  cursor: pointer;
  display: table;
   height: 7em;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  opacity: 0;
  -webkit-transition: opacity 500ms;
  -moz-transition: opacity 500ms;
  -o-transition: opacity 500ms;
  transition: opacity 500ms;
  font-size:42px;
   text-transform:uppercase;
  font-family: 'Raleway', sans-serif; font-weight:300
  } 
  ul.img-list li:hover span.text-content {
     opacity: 1;
  }
  </code></pre>
  <p>And the image showing what I want to make: <a href="http://tinypic.com/r/2gy5zk4/8" rel="nofollow noreferrer">http://tinypic.com/r/2gy5zk4/8</a> .</p>
  <p>If I have to use javascript, I will, but I am not very good at it, so counting on css to make it work. Thanks a lot for any help.</p>