Latest solutions
Responsive social links card made with vanila css🚀🔥
Submitted 10 months agoI would like to know if there is a better way to implement a font with different weights than the way I did? I had a problem using the variable font, so I had to switch into using the static files.
Responsive Time tracking dashboard created with react and vite✨
#react#viteSubmitted over 2 years ago
Latest comments
- @Bthedraft@Karrar-Hussein
In order to add multiple background images, you just need to write their urls in the
background-image
property and add a comma between the two images, just like this:background-image: url(images/bg-pattern-top.svg), url(images/bg-pattern-bottom.svg);
Marked as helpful - @aadarsh-rai@Karrar-Hussein
Nice solution, for your card image instead of using a
div
with abackground color
you just need to add animg
tag with the image provided<img src="bg-pattern-card.svg">
and give itwidth: 100%
and also don't forget to add anoverflow: hidden
to your card container to keep the edges round.And for your circles pattern rather than adding them in html you just need to set them as two background images and position them with the right values using the
background-position
property, it should be something like this:body { background-color: var(--clr-Dark-cyan); background-image: url(images/bg-pattern-top.svg), url(images/bg-pattern-bottom.svg); background-repeat: no-repeat, no-repeat; background-position: right 49vw bottom 45vh, left 49vw top 50vh; }
That should fix your problems✨
Happy coding😁🔥
Marked as helpful - @julieorris@Karrar-Hussein
The reason that your buttons are expanding when hovering over them is because that you're creating the border in the
:hover
state, instead you should be adding it along with your button styles. - @FSwebdeveloper@Karrar-Hussein
And for the circles in the background, you just need to position them with the right values you could try something like this:
background-position: right 49vw bottom 45vh, left 49vw top 50vh;
and I hope that fix your problem .
happy coding😁🔥
Marked as helpful - @AbdessamadLahrizi@Karrar-Hussein
One easy way to fix it is to set the circles as two background images and position them using the
background-position
property it should be something like this:body { background-color: var(--clr-Dark-cyan); background-image: url(images/bg-pattern-top.svg), url(images/bg-pattern-bottom.svg); background-repeat: no-repeat, no-repeat; background-position: right 49vw bottom 45vh, left 49vw top 50vh; }
Now you're good to go😁🔥
happy coding✨
Marked as helpful - @FSwebdeveloper@Karrar-Hussein
Hi, nice solution 🔥. For your problem you don't really need a padding, you just need to add a white border around your image something like this
border: 3px solid white;
and you're good to go!✨Marked as helpful