Is it possible for one unit to set two background colors?

Is it possible for one unit to set two background colors? If not, then how to mark up such a unit?

5afef25094039326811247.png
June 5th 19 at 21:02
2 answers
June 5th 19 at 21:04
Solution
Alternatively, use a gradient
background-image: -webkit-linear-gradient(left, #fff 50%,#000 50%);
Thank you. - Darren15 commented on June 5th 19 at 21:07
June 5th 19 at 21:06
Solution
Thank you. - Darren15 commented on June 5th 19 at 21:09

Find more questions by tags CSSHTMLLayout