How to split css shape in half vertically?

There are quite a lot of limitations of what kind of shapes you can do while using a single element only (if you wrap it around another element, you can just use overflow hidden to wrap it) To achieve it with a single element, you can do it by: Set background color to transparent Set a border-left to 50% of the elements width, using the a solid color as the color of the previous background color example: jsfiddle.net/pKuj9.

There are quite a lot of limitations of what kind of shapes you can do while using a single element only (if you wrap it around another element, you can just use overflow hidden to wrap it). To achieve it with a single element, you can do it by: Set background color to transparent Set a border-left to 50% of the elements width, using the a solid color as the color of the previous background color. Example: jsfiddle.net/pKuj9.

1...I didn't think it was possible to do without adding another element. – Edwin Nov 15 at 23:09.

You cannot display only a portion of the shape you describe. You can either describe a different shape or apply a mask over a portion of your shape such that it appears to be not present. Mask half of the shape with a second shape with the same colour as the background: jsfiddle.net/pnpHS/43.

You can achieve this by defining the :before pseudo-class (of ::before pseudo-element, if you opt to follow CSS3 specs). jsfiddle.net/pnpHS/60.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions