I do not have much experience with design, but I am trying to create a somewhat disjointed effect in CSS. I have text that serves as a link with an image next to it. I want a border to appear around the adjacent image whenever the linked text is hovered over. I have been through many posts on multiple websites and it seems pretty complicated (I am a beginner). I definitely want to use CSS rather than JQuery/javascript. Please help!
think360studio
0
Newbie Poster
Recommended Answers
Jump to Post
a:hover ~ img
?
Jump to Post"next to it" and "adjacent" suggest IMHO that the img is not a child of the anchor, also because TS went "through many posts on multiple websites and it seems pretty complicated". Anyway, let's see.
You might be right, but when somebody also says they arent sure, fuzzy logic & …
All 7 Replies
twiss
155
Veteran Poster
ko ko
97
Practically a Master Poster
twiss
commented:
Erm, I think TS stated quite clearly that img is not a child of a?
-1
almostbob
commented:
Actually the OP says nothing about the child state of the image, it would be functionally easier to assume the image is linkable, a child of the anchor
+13
almostbob
866
Retired: passive income ROCKS
almostbob
866
Retired: passive income ROCKS
twiss
155
Veteran Poster
almostbob
866
Retired: passive income ROCKS
twiss
155
Veteran Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.