Problem with :last-of-type:before

Hey, I’m really upset with this code, simple code but OMG i can’t solve this, trying to put a line between two buttons:

  height: 50px;
  width: 100px;
  position: absolute;
  top: 0;
  right: 0;           
  width: 50px;
  height: 50px;
  background: red;
  border: 0px;
  float: left;
  box-shadow: none; 
  outline: none;

    content: ' ';
    width: 1px;
    height: 30px;
    position: absolute;
    top: 10px;
    left: 0;
    background: black;

 <div class="buttons">

button {position: relative}
1 Like

Thank u so much, so simple!