1
I’m trying to apply a Hover to an article but it’s not working.
<style>
article.item{
margin: 5px;
border: 1px #90ac6e solid;
border-radius: 6px;
background:#cfe8b1;
}
article.item:hover{
margin: 5px;
border: 1px red solid;
border-radius: 6px;
background:#ffffff;
}
</style>
<article class="item" style="float:left; margin-left:10px; margin-top:15px; margin-bottom: 15px; width: 100px; height:100px; border: 1px #90ac6e solid; border-radius: 6px; background:#cfe8b1; text-align:center;">
<i class="fa fa-dashboard" aria-hidden="true" style="font-size:46pt; color:#666;"></i><br />
<em style="font-family:padrao; size: 12pt; text-decoration:none; color:#003300;">Business Intelligence</em>
</article>
Hello Sergio. Thank you for the answer. It seems to have worked, but now, by putting seven Articles like this side by side, they appear vertically. Includes a display: inline-block but Articles appear misaligned.
– Webster Moitinho
@Webstermoitinho joined 2 more articles in my example?
– Sergio
It’s all messed up. The first was right, the second and the third were aligned with each other, but misaligned with the first, the fourth was aligned with the first, the fifth and the sixth aligned with the second and third, tá um rebu só kkkkk. I’m very weak in CSS...
– Webster Moitinho
@Webstermoitinho I can not see the problem you are having. You can make a jsFiddle and put here?
– Sergio
Sergio, I edited your answer to illustrate
– Webster Moitinho
@Webstermoitinho ter
style
throughout this HTML is a nightmare. Take it off and do something like this: https://jsfiddle.net/cquvsf0e/– Sergio
Thanks Sergio. Now it worked out. Thanks
– Webster Moitinho