0

I have a Span element with a index count, and an exit button in the same line. I need the exit button to be at the opposite side of the Span. However with my current CSS setup, all elements are spaced equally, how do I adjust this so it only affects the button?

  <span class="index-count">
      {{ documentInfoLabel() }} <b>({{ this.count }}/{{ this.filesCount }})</b>
        <b-button
        icon-left="window-close"
        size="is-small"
        @click="closePreview"
        >
        </b-button>
  </span>

 .index-count {
    display: flex;
    justify-content: space-between;
  }
seanberlin
  • 89
  • 5
  • .index-count > button { justify-content:right;} . You can usually do something like this in css – Crystal Apr 20 '22 at 07:53

0 Answers0