Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8539953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:29:20+00:00 2026-06-11T11:29:20+00:00

I have a simple JQuery element selector – as you’d expect, moving in and

  • 0

I have a simple JQuery element selector – as you’d expect, moving in and out of elements does some highlighting. It works, but I’m running into 2 issues that I’d love some help with please (I’m sure a CSS whizz will solve this in seconds!!):

1) adjacent elements sometimes mask the highlighting of their neighbours (see DIV 1 in this fiddle – I’d like to have the red shadow appear on all FOUR sides of DIV 1, rather than only on those that don’t touch a neighbouring DIV – I also tried adding a z-index but it doesn’t solve it)

2) when an element contains an anchor link that has text which word wraps onto more than one line each line of text is highlighted – ideally I’d like the whole link to be highlighted (e.g. see DIV 4 in the same fiddle – hover over the link that wraps over 3 lines – rather than having 3 red shadow boxes, can I get 1 shadow box around the whole link?

NOTES:
I’m using this code on top of a variety of 3rd party web pages, so I can not change/edit the HTML in a scalable way

EDIT:

Thanks to those who answered below – your solutions worked on my fiddle demo – I’ve now taken these across into my actual code but I can’t get the images to ‘come to the front’ when I hover over them – many images still only have their hover SHADOW appearing on less than 4 sides – my code is this (but needs php):

<!DOCTYPE html>
<html>
<head>
    <script src="http://code.jquery.com/jquery-latest.js"></script>
    <style>
        img:hover{
            -webkit-box-shadow: 0 0 17px 10px green;
            -moz-box-shadow: 0 0 17px 10px green;
            box-shadow: 0 0 17px 10px green;
            z-index:5555555555;
            position:relative;
        }
</style>
</head>

<body>
<?php 
    echo'<div>';
             $url = 'http://www.guardian.co.uk';
             $data = file_get_contents($url);
             echo $data;
    echo'</div>';
    ?>
</body>
</html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T11:29:21+00:00Added an answer on June 11, 2026 at 11:29 am

    Question 1 – you are only seeing the border on three sides because the bottom edge is under the second box. Pop it to the front like this – this actually bring any of your sibling divs to the front when hovered

    div:hover {z-index:5; position:relative;}
    

    Question 2 – set the link to

    display:block;
    

    see my update to your fiddle

    http://jsfiddle.net/FusrG/9/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some simple JQuery / Javascript to perform some simple logic for all
I have been struggling with what I feel is a simple JQuery selector issue,
I have a simple function in jQuery that creates new elements in the DOM.
Have some simple jquery that Im trying to execute on a button click. For
Possible Duplicate: How to get nth jQuery element I have this simple code: <ul>
I have here a simple jQuery example wherein an element should be hidden. But
I have a simple jQuery script that I'm trying to build upon but I
I have a simple jquery flipcard animation - http://jsfiddle.net/gGAW5/36/ Now the way this flip
I have pretty simple jquery code : $(document).ready(function(){ $('img.marqFl').on({ mouseenter: function() { $(this).animate({height: 300},
I have a simple jquery animation on a div, which is inside a div,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.