0

How to make two elements hover at the same time if Just one is hovered ? Using css and html

https://code.sololearn.com/WS8eLEbiP7Rw/?ref=app

12th Jan 2018, 4:41 PM
Kamal Moghir
Kamal Moghir - avatar
5 ответов
+ 5
I don't know about css I think it can be done using JavaScript but I never try though. Will give it a try. but shouldn't rush things and move step by step, the element in your design look good but you make a few changes here I what I suggest: add the viewport in the head section <meta name="viewport" content="width=device-width, initial-scale=1" /> sorry but I didn't take the time to go through all your containers so the next thing you should do is wrap all your html code in a container except the body tag and set the width to 100%. the last thing would be to learn more about responsive design aka RWD.
16th Jan 2018, 9:56 PM
StoneCoder🇬🇦
StoneCoder🇬🇦 - avatar
+ 3
As a start, you have way to much code in your head tag. See here for what should be included: https://www.w3schools.com/tags/tag_head.asp After you've moved your code, see how it looks. You may still need to play with position 'relative' vs 'absolute'.
12th Jan 2018, 7:05 PM
Duncan
Duncan - avatar
+ 1
idk but someone can correct me if I'm wrong. How about making second elements position relative to the first elements postition (the one you're hovering)
12th Jan 2018, 5:17 PM
Stefan Matijevic
0
thx Guys but i'm not asking about the position of the éléments since it's good in my pc but i'm wondering about the hover selector in csd. thx for coming by and reading this. Here's my Last work(in progress) https://code.sololearn.com/Wjzf0cpe93e1/?ref=app
13th Jan 2018, 2:54 PM
Kamal Moghir
Kamal Moghir - avatar
0
How can i make two elements hover at the same time if Just one is hovered?
23rd Dec 2021, 10:29 PM
peace udoka