Need Some Help With CSS In HU 2.0.6 - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Need Some Help With CSS In HU 2.0.6

Peter Spiegelenburg

Peter Spiegelenburg

Template 3 years ago

Hello, I want to show a line when hovering a menu-item. I have created this in html, which works fine.

<html>
<a class="line" href="#">Home</a>
</html>

<style>
.line {
  display: inline;
  position: relative;
  overflow: hidden;
}
.line:after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 0;
  width: 0;
  bottom: -5px;
  background: #000;
  height: 4px;
  transition-property: width;
  transition-duration: 0.3s;
  transition-timing-function: ease-out;
}
.line:hover:after, .line:focus:after, .line:active:after {
  left: 0;
  right: auto;
  width: 100%;
}
</style>

Now, I want to implement this in the Helix Ultimate template. I added a Link Class "link" in the menu item. I added the code from "Style" in the custom css file. But it doesn't work.

I know some things about CSS, but I am not a "Master" in CSS. Can someone show me what I am doing wrong?

Regards, Peter

0
6 Answers
Ariba
Ariba
Accepted Answer
Support Agent 3 years ago #51401

Please add !important to display property

.line {
  display: inline !important;
  position: relative;
  overflow: hidden;
}
0
Ariba
Ariba
Accepted Answer
Support Agent 3 years ago #51392

Hello

Thank you for your query.

Could you kindly provide the site URL?

0
Peter Spiegelenburg
Peter Spiegelenburg
Accepted Answer
3 years ago #51399

Hello,

yes. It is a demo-site: http://wim.domeintest.eu/

If you want to have a login, please let me know.

0
Peter Spiegelenburg
Peter Spiegelenburg
Accepted Answer
3 years ago #51403

Hello Ariba ,

I was so close, but you just helped me with the last part. Yes! Working!

Thank you so much!

Regards, Peter

0
Ariba
Ariba
Accepted Answer
Support Agent 3 years ago #51405

You are most welcome :)

Thank you for the kind appreciation, my pleasure!

Please do let me know if there are any other issues, I would be happy to help. If there are no other queries, kindly accept the most useful answer that helped you, in order to resolve and close the post.

0
Ariba
Ariba
Accepted Answer
Support Agent 3 years ago #51406

Have a great day and stay safe.

0