title: Creating a multi-color bar using CSS
body: <p>I would like to create a multi-color bar like the one in the picture below:</p>
  
  <p><img src="https://i.stack.imgur.com/GpwK8.png" alt="enter image description here"> </p>
  
  <p>Is it possible to create CSS that will achieve this? I've managed to create the color gradients using the following CSS:</p>
  
  <pre><code>.gold{
    background-color: #faa732;
    background-image: -moz-linear-gradient(top, #eab92d, #c79810);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#eab92d), to(#c79810));
    background-image: -webkit-linear-gradient(top, #eab92d, #c79810);
    background-image: -o-linear-gradient(top, #eab92d, #c79810);
    background-image: linear-gradient(to bottom, #eab92d, #c79810);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffbb450', endColorstr='#fff89406', GradientType=0);
  }
  
  .blue {
    background-color: #faa732;
    background-image: -moz-linear-gradient(top, #034a96, #0663c7);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#034a96), to(#0663c7));
    background-image: -webkit-linear-gradient(top, #034a96, #0663c7);
    background-image: -o-linear-gradient(top, #034a96, #0663c7);
    background-image: linear-gradient(to bottom, #034a96, #0663c7);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffbb450', endColorstr='#fff89406', GradientType=0);
  }
  
  .green {
    background-color: #faa732;
    background-image: -moz-linear-gradient(top, #0D7626, #0a611e);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0D7626), to(#0a611e));
    background-image: -webkit-linear-gradient(top, #0D7626, #0a611e);
    background-image: -o-linear-gradient(top, #0D7626, #0a611e);
    background-image: linear-gradient(to bottom, #0D7626, #0a611e);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffbb450', endColorstr='#fff89406', GradientType=0);
  }
  </code></pre>
  
  <p>I'm just not sure how to make them appear next to each other like in the picture and also how to have different percentage widths (e.g. blue gradient 50% of the bar, green gradient 40%, and gold gradient 10%).</p>