Skip to content

Instantly share code, notes, and snippets.

@nishinoshake
Created June 28, 2016 07:13
Show Gist options
  • Save nishinoshake/75336a7535ae6ede3450565abcd85b68 to your computer and use it in GitHub Desktop.
Save nishinoshake/75336a7535ae6ede3450565abcd85b68 to your computer and use it in GitHub Desktop.
グラデーションで左右に違う色
.sample {
background-image: linear-gradient(to top, #e91d25, #e91d25), linear-gradient(to top, #929497, #929497);
background-position: left top, right top;
background-repeat: no-repeat, no-repeat;
background-size: 50% 100%, 50% 100%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment