- This topic has 16 replies, 3 voices, and was last updated 3 years, 3 months ago by
David.
-
AuthorPosts
-
January 20, 2023 at 7:24 am #2502916
francesco
I’m currently using this CSS, but it only underlines the last part of the text, instead I’d like it to underline all the text.
Aah you have a container link.
Change the CSS to:.border-hover:not(:hover) h2 { border-color: transparent !important; }And move the border-hover class to the GB Container Block that has the container link.
Note that : I also use this CSS.
@media(min-width: 769px) and (pointer: fine) { .paging-navigation p a:hover, h2.wp-show-posts-entry-title a:hover, div#rpwwt-recent-posts-widget-with-thumbnails-2 ul li a:hover, .generate-columns-container article.post:hover h2 { text-decoration: underline; } }January 20, 2023 at 10:32 am #2503261David
StaffCustomer SupportHi there,
you can’t use the
borderproperty. Can you remove that CSS?January 20, 2023 at 11:42 am #2503346francesco
sure david, done
January 21, 2023 at 2:15 am #2503685David
StaffCustomer SupportTry this CSS:
.border-hover h2 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: transparent; } .border-hover:hover h2 { text-decoration-color: #fff; }January 21, 2023 at 10:31 am #2504188francesco
hi david, dont work
January 21, 2023 at 10:43 am #2504196David
StaffCustomer SupportCan i see the page ? it requires a login to get passed the maintenance mode.
January 22, 2023 at 2:13 am #2504551francesco
hi david, done..
January 22, 2023 at 3:22 am #2504591francesco
I’m looking for a way to add hover styling to the title block, but only appears in the page hero with a different colored title.
January 22, 2023 at 8:20 am #2504946David
StaffCustomer SupportYou need to add the
border-hoverclass back on the Container BlockJanuary 22, 2023 at 9:35 am #2505005francesco
but for the text or for the border? i want hover text
January 22, 2023 at 6:47 pm #2505271Fernando Customer Support
Hi Francesco,
For the text, you need to add it to the Container Block.
The CSS provided by David works that way.
For the border, to clarify, are you looking for the underline effect or simply just a border? Do you want this on hover as well?
January 23, 2023 at 2:11 am #2505524francesco
hi fernando, I would like the entire text underlined on hover over the entire block
January 23, 2023 at 5:21 am #2505727David
StaffCustomer SupportIf you:
1. select the container block for that column, and give it an advanced > Additional CSS Class of:
headline-has-underline
2. add this CSS:.headline-has-underline h2 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: transparent; } .headline-has-underline:hover h2 { text-decoration-color: #fff; }Its the same as before i just changed the CSS Class name to make it more in line with the style change.
Now when you hover on the Container with the
headline-has-underlineclass, it will add the underline to the H2 inside it.January 23, 2023 at 6:04 am #2505768francesco
done david, thnx
January 23, 2023 at 6:58 am #2505840David
StaffCustomer SupportDid you add the
headline-has-underlineclass to the Container Blocks > Advanced > Additional CSS Classes ? -
AuthorPosts
- You must be logged in to reply to this topic.