How to make a footer with a curved top border? [duplicate] - css

This question already has answers here:
Can I create a div with a Curved bottom?
(5 answers)
Curve bottom side of the div to the inside with CSS
(2 answers)
How to create uneven rounded sides on a div?
(1 answer)
Closed 1 year ago.
I'm bad with font end design and i'm trying to make a footer with a specific shape in css. Here is the shape i want to have:
Do you know how to do it ? And if it is possible with a responsive behaviour.
I tried border-radius:
border-top-left-radius: 50% 20%;
border-top-right-radius: 50% 20%;
But the it is not what i expected.
Thanks a lot for your time.

the easy way you can achieve this is to create import the curve as image an use it for footer background.
or you can use:
border-redius

Related

How can I create bottom corners curved button? [duplicate]

This question already has answers here:
How to create Curved & Overlapping Menu Tabs in CSS
(2 answers)
Closed 1 year ago.
I want to create a curvedbutton like this. How can I do this?
border-radius: 0 0 20px 20px;
You can check W3schools for a better answer: https://www.w3schools.com/cssref/css3_pr_border-radius.asp.

How do I make sure that the images aren't stretching either horizontally or vertically [duplicate]

This question already has answers here:
CSS force image resize and keep aspect ratio
(26 answers)
Closed 1 year ago.
They should only be resized on one of the two dimensions, whichever is bigger.
If you look at the puppy image below, it looks to be stetched
CODE
export const ImageTemplateImage = styled.img`
width: 230px;
height: 162.53px;
`;
If you don't give in a height for example, it will keep the ratio and only change the width.
Therefore the height may not be set.
At least is in css, I'm not familiar with reactjs, but I'm guessing this is an injection into the css.

CSS: Gap between images and descriptions [duplicate]

This question already has answers here:
Image inside div has extra space below the image
(10 answers)
Closed 4 years ago.
I've come across a CSS issue with one of my layouts where there is a whitespace gap underneath all of my images and I'm not sure what's causing it. Any ideas?
All help greatly appreciated!
The site URL is: http://autovero.wpmad.com/showroom/
Screenshot of the gap (highlighted in Red) below:
Add this style to your CSS. It remove your gap.image default behavior is display:inline-block that why you see bottom space in image
img {
display: block;
}

How can I make negative border radius with CSS ONLY? [duplicate]

This question already has answers here:
Add outward curving border to elements like this: ◝◟___◞◜
(3 answers)
Closed 7 years ago.
I post this thread, because I need help for something please. I would like to create negative border radius for my navigation links (like this): http://prntscr.com/9vi0b5
As you can see, there is normal border radius at the top, but at the bottom, we have negative border radius. On the image above, two images are used to make the effect, but I want something with CSS only please. Something that I can edit when I want, you know?
Thank you.
I do not think this is possible.
But a solution could be to use :before and :after to build this effect.
Something like
:before {
border-bottom-right-radius: 5px;
}
:after {
border-bottom-right-radius: 5px;
}

Can i use the rest size of a variable? [duplicate]

This question already has answers here:
How to make a div fill a remaining horizontal space?
(26 answers)
Closed 7 years ago.
I have 2 Divs. They are both floating left and div1 has a variable.
#div1: 8%;
The HTML is:
<div class="div1">Icon</div>
<div class="div2">Big Text</div>
Can I tell the div2 that it has to use the rest of the width? So, in this case that should be 92%. How can I do this without creating a second variable? The 2 divs together have to be 100% wide.
In all seriousness, it would've been faster for you to either try or read the starters manual than to ask this question.
#div1: 8%;
.selector {
width: 100% - #div1; //Evaluates to 92%
}

Resources