+ 4

Code problem

How can I get the red stripe to come to the inside edge of the black box but not stick out at all https://code.sololearn.com/W9DCQH0Af9Mf/?ref=app

11th Nov 2018, 6:53 PM
Zachary Burkholder
Zachary Burkholder - avatar
4 Respuestas
+ 5
thanks 👍🏻
11th Nov 2018, 10:32 PM
Zachary Burkholder
Zachary Burkholder - avatar
+ 3
Thats not exactly what I wanted. I wanted it to look like a ribbon going around the box. So the stripe would need to have diagonal ends.
11th Nov 2018, 7:09 PM
Zachary Burkholder
Zachary Burkholder - avatar
+ 3
i put one inside the other and set the overflow of the outer to hidden.Hope this helps. https://code.sololearn.com/W8zlmwJww5Cr/?ref=app
11th Nov 2018, 10:30 PM
xpnvdo
xpnvdo - avatar
0
You could mess around with a gradient until you get the look but it might not be exactly what you want https://www.w3schools.com/css/css3_gradients.asp
11th Nov 2018, 7:02 PM
Mike