Gunnar Bittersmann: Grafik mit CSS?

Beitrag lesen

@@Nico123

Hat geklappt: http://codepen.io/anon/pen/XdPKMK

Die Farbangabe (die für 0%) bis zum ersten color stop kannst du übrigens weglassen.

Statt 180deg würde ich das besser lesbare Schlüsselwort to bottom verwenden:

linear-gradient(
  to bottom,
  #161638 15%,
  #9e7507 15%,
  #9e7507 85%,
  #161638 85%
)

LLAP 🖖

--
“You might believe there are benefits for the developer, but first of all, you should put those behind the interest of the user.” —Stefan Tilkov
Selfcode: sh:) fo:} ch:? rl:) br:> n4:& va:| de:> zu:} fl:{ ss:| ls:# js:|