Latest solutions
Latest comments
- @purplejragon@ttoomas
Hi, great job on this site!
You can center the text next to the logo using the flexbox:
.avatar-text {display: flex; align-items: center} align-items
Otherwise, I recommend trying the following for the background image: Create a parent
<button>
that will haveposition: relative
. Then create a pseudo-element:: before
for this button, which will havecontent: url ("picture")
position: absolute
,opacity: 0
and center it withdisplay: flex
(picture view) . Then add only<img>
to<button>
. Then you dobutton:hover::before
and addopacity: 1
. I hope my advice helped.Marked as helpful - @inesriahi@ttoomas
Hi. I write in advance, I'm not an expert, I don't know if it's right, but you can try it.
Create a parent
<button>
that will haveposition: relative
. Then create a pseudo-element:: before
for this button, which will havecontent: url ("picture")
position: absolute
,opacity: 0
and center it withdisplay: flex
(picture view) . Then add only<img>
to<button>
. Then you dobutton:hover::before
and addopacity: 1
.I hope my advice helped!
Marked as helpful - @ttoomas@ttoomas
In the last edit, I noticed that when I hover over the text " Jules Wyvern "is not just to change the color of the text, but to add a border around the image. Using a simple Js, I added an" active "class as I hover over the text, which simply adds a border around the image. I was just wondering, could it be done without js, using
:hover
?