admin管理员组文章数量:1390471
My website:/
I recently changed the words under We Serve under the main image to links. After I did that, when I hovered over them they changed to the background color that they are in. I would like them to change to blue when I hover over them.
In the scrrenshot I have up the styling of the links but am hovered over the title, which happens to be an H2 tag. I used some custom css to get them to change to blue when I hover over them . Problem is, the whole page gets that same styling applied and it makes no sense to me. I put the custom css specifically just for that section of text.
Feel free to go to the page as well and see how everything on the page gets the same :hover effect applied. I suspect it's because I used just :hover with nothing before it so therefore it get's applied to everything.
Other things I've tried: 1. Using this:hover - did nothing 2. Using a:hover - made all links on the page have same hover effect 3. Giving that section of text a CSSID and class and applying styling thru the customizer Custom CSS/JS - did nothing... didn't even work
Any help would be appreciated. I think I understand what's going on. I just don't know how to fix it. Thx in advance
My website:http://up8.431.myftpupload/
I recently changed the words under We Serve under the main image to links. After I did that, when I hovered over them they changed to the background color that they are in. I would like them to change to blue when I hover over them.
In the scrrenshot I have up the styling of the links but am hovered over the title, which happens to be an H2 tag. I used some custom css to get them to change to blue when I hover over them . Problem is, the whole page gets that same styling applied and it makes no sense to me. I put the custom css specifically just for that section of text.
Feel free to go to the page as well and see how everything on the page gets the same :hover effect applied. I suspect it's because I used just :hover with nothing before it so therefore it get's applied to everything.
Other things I've tried: 1. Using this:hover - did nothing 2. Using a:hover - made all links on the page have same hover effect 3. Giving that section of text a CSSID and class and applying styling thru the customizer Custom CSS/JS - did nothing... didn't even work
Any help would be appreciated. I think I understand what's going on. I just don't know how to fix it. Thx in advance
Share Improve this question asked Jan 22, 2019 at 19:00 Vladimir RoscaVladimir Rosca 1051 silver badge6 bronze badges2 Answers
Reset to default -1Replace the style you added with the following.
.elementor-element-1fc9820 a:hover {
color:blue !important;
}
You needed to be more specific with your rule. Since there is a elementor class around those links I just used that class.
Note: Your #3 solution should have worked so apparently you made a mistake when you attempted it.
I actually don't think you should need to specify an added rule with something like ".elementor-element-1fc9820" to limit it to the very element you're editing (although it won't hurt, I guess).
The custom css that Elementor Pro is offering you to add when editing a certain element on the page should already be targeted at just that element (or a child element therein). It just doesn't make any sense otherwise, I'd say.
However, I think it's just the "a" before the colon that was missing so that actually anything – a, h2, h3, p, whatever – within that element got highlighted when you hovered over it. The hover property is not restricted to just anchors/links as far as I know.
a:hover { color:blue !important; }
should do the trick without the ".elementor-element-1fc9820".
本文标签: designCustom CSS on one elementor section changes whole page
版权声明:本文标题:design - Custom CSS on one elementor section changes whole page 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744751624a2623213.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论