Replies

Jul 20, 2017 8 years ago
Paula_459
is ALL about art
User Avatar
Qar

Hi! So, I'm having a coding issue involving hover tricks, maybe you could help me! Not sure how to explain it though.

What I want is hover element 1 = change element 2 opacity. I'm able to do this between two divisions I've created (, ), but not involving pet profile columns (columns 1, 2 or 3).

Take a look, I think you'll understand what I'm talking about: https://subeta.net/pets/Danna

If you know what I'm doing wrong, please ping me! Thank you!

Jul 20, 2017 8 years ago
Frenchi
is hopelessly romantic
User Avatar
Vivisect

if the intention is to have the second box of text disappear when hovering over the first box, it looks like it's working. are you still having trouble with this?

Jul 20, 2017 8 years ago
Paula_459
is ALL about art
User Avatar
Qar

No, the intention is to make the ("text I want dissapeared") disappear when hovering over the first column ("The female Dawn Lain/Owner: Paula").

Jul 20, 2017 8 years ago
Frenchi
is hopelessly romantic
User Avatar
Vivisect

hmm i've been playing around with it and i don't think that can be done, because is outside of , and any divs you create go inside . this hover effect can only be used on divs "lower" in the hierarchy so to speak, not higher. you will have to use a div you make on your own, like you have it set up now.

you've also got some extraneous reset code going on. i tidied things up so hopefully this is cleaner to work with if you need to change other things.

code <style> , -ban, -ban-main, -lrc, -rrc, , , -right, , , , .bookmark, , , .prototip, , h2, .hustler, , , , , .pet_name, .pet_age_info_date, .pet_wco_info_date, .owner img {display: none} , {background: transparent}

html {overflow: hidden}

{ position: absolute; left: 30px; top: 240px; width: 255px; height: 200px; padding: 0; opacity: 0.8; background-color: }

:hover {opacity: 1}

.main { position: absolute; left: 320px; top: 240px; width: 200px; height: 200px; overflow: auto}

.test { position: absolute; left: 560px; top: 240px; width: 200px; height: 200px}

.main:hover + .test {visibility: hidden}

</style>

title

bold | italic | underline
Lorem ipsum dolor sit amet consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

this text will disappear

Jul 20, 2017 8 years ago
Paula_459
is ALL about art
User Avatar
Qar

Thank you so much, I couldn't be more gratefull, that makes perfectly sense! I think this is the answer to almost all questions I have now, actually, this problem of columns outside the pet_desc explains a lot. And thanks for the clean up as well C: it really was a mess.

Jul 20, 2017 8 years ago
Frenchi
is hopelessly romantic
User Avatar
Vivisect

glad to help. it always is annoying when something that seems like it should be simple just can't be done.

Jul 20, 2017 8 years ago
Paula_459
is ALL about art
User Avatar
Qar

Exactly!!! Thank you one more time! ❤

Please log in to reply to this topic.