1
Wanted to round the edges of an image she was made with the tag <a>
HTML, but I’m totally lost.
This is the code I used to import the image:
<a className="imagepost" href={post}>
<img src={post.image}
alt={post.id}
maxwidth="100%"
width="100%"
height="410px"
/>
</a>
The reason I don’t round up for another program and then import, is because I’m going to import automated images, as you can see I created a function
to make it automatic.
In the CSS
I even tried to put the border-radius
, but it didn’t work.
a.imagepost:link, a.imagepost:visited {
border-radius: 10px;
Two things should be done: to say that A is a block, and to say that the overflow is hidden.
– Bacco
I just tried, but it didn’t work.
– Wellington A. Moreira
Another option, put the border-Radius: right on the image and not on A
– hugocsl