0

enter image description here

Please have a look at the image. There is a black border in right side with text inside. How can I get this in css?

2 Answers 2

1

I would say use svg for this, use svg as background of container div, give content lot of margin top/left/right to make it fit.

Btw this design is most likely not gonna work on mobile so you have to figure out a decent alternative for that.

Sign up to request clarification or add additional context in comments.

Comments

0

Here is a great website with weird CSS hard div: https://css-tricks.com/examples/ShapesOfCSS/

You'll see they did an egg, then you can modify the egg shape to try to get a similar shape like on the picture.

What you need to do is create a div with a class, then modify the div's shape and had a border on it.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.