1
I own a div and inside it a <a>
I can see it in the div, but the anchor color doesn’t change.
HTML structure:
<div class="TamanhoECorTabs ThemeGrid_Width6">
<a id="ancora" tabindex="14" href="#">Home</a>
</div>
CSS structure:
.TamanhoECorTabs:hover, .TamanhoECorTabs a:hover{
background-color: #428bca !important;
color: #fff !important;
border:none !important;
border-bottom: 1px solid #428bca !important;
}
I need that when I move the mouse through the div, change the color of the anchor, without having to hover the mouse over the anchor for the Hover to work.
Another thing that is happening is that even though Home is active the Hover appears. How do I take it out?
Thanks! It worked perfectly. I wonder if you know how to take the Hover effect when the div is selected, as I was with the . active
– Thiago Alex
@Thiagoalex edited the answer, see if it works
– Douglas Bernardino
@Douglasbernardino It didn’t work, the div is selected but every time I hover over it activates the Hover.
– Thiago Alex
@Thiagoalex talks like this: when you click on the home page he loads the home page.html, then you click on Noticia he loads the news page.html and then who is selected can not have the effect Hover, something else is used programming, some language?
– user6026
@Thiagoalex and there I can help you more? if you saw my last question?
– user6026
@That’s exactly what Harrypotter did. The Div selected is Home and the page loaded is home.html, this in turn cannot receive the Hover from the other div that is not loaded or selected. And I’m touching the
OutSystems
so far I can’t use javascript or any other language. I only have access to css.– Thiago Alex
Has programming language?
– user6026
Because that’s how we do it: when a page is loaded I can take which address was executed and change at runtime the CSS of the selected object, you can even take the link of this item leaving a color div only. But if you can’t use either Javascript or another language I don’t know any other way, I apologize.
– user6026
I was suspicious of this already, I would use Javascript to do this if it was in an IDE other than the one I’m using. But thank you so much @Harrypotter
– Thiago Alex