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 4320518
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T08:38:35+00:00 2026-05-21T08:38:35+00:00

Here is an example. I’m looking to get the row and the column the

  • 0

Here is an example. I’m looking to get the row and the column the cursor is over to display the :hover attributes. Is there a way to do this without requiring javascript? If not is there a simple way in jQuery to do this for any number of rows/cols?

  • 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-05-21T08:38:36+00:00Added an answer on May 21, 2026 at 8:38 am

    Not with css, as with css only one element is hovered (from overlapping non-nested elements).

    jQuery can help but it is not trivial..

    A crude implementation would be to

    • add .row and .col classes to the elements (as appropriate)
    • bind a custom event to those, whose handler check to see if the mouse coords are inside their box and set/unset the hover state
    • while the mouse moves inside the container of the rows and cols (you should wrap them in one), create an event (of the custom type we bound to the rows and cols) and fire it globally

    html

    <div id="container">
        <div id="row1" class="row"></div>
        <div id="row2" class="row"></div>
        <div id="col1" class="col"></div>
        <div id="col2" class="col"></div>
    </div>
    

    javascript

    $('.col, .row').bind('intersect',function(e){
        var $me = $(this);
        var pos = $me.offset();
        var size = {w:$me.width(), h:$me.height()};
    
        if ( e.pageX > pos.left && e.pageY > pos.top && e.pageX < pos.left + size.w && e.pageY < pos.top + size.h )
        {
            $me.addClass('hover');
        }
        else if ($me.is('.hover'))
        {
            $me.removeClass('hover');
        }
    });
    
    $('#container').mousemove(function(e){
        var evt = jQuery.Event('intersect');
        evt.pageX = e.pageX;
        evt.pageY = e.pageY;
        $.event.trigger(evt);
    });
    

    demo: http://jsfiddle.net/gaby/7V8AN/

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

Sidebar

Related Questions

Looking at the example here - http://jsfiddle.net/uqYeQ/3/ The first row behaves as expected, returning
The fictional example here. Suppose I designed a class named IODevice. This class already
You can see the example here: http://jsfiddle.net/8EHED/8/ This is a tricky problem because I
Here an example $newattribute.children(div).children(input,select).each(function (i) { var $currentElem = $(this); $currentElem.attr(name, $currentElem.attr(name) + current);
The example here doesn't make sense, but this is basically how I wrote my
Here is example initial_data.json. I want let django store value from column 'name' into
Here is a bit of example code: (deftype Deck52 [suits] :as this DeckOfCards (check-empty
Here an example queries to get two type of icons.. $fetchIcon = array(); $queryIcon
Here an example http://jsfiddle.net/EhLsT/ $(window).scroll(function () { if ($(window).scrollTop() > $(#header).offset().top) { $(#floating).show(); }
Here is example which I have try <?php include 'spider/classes/simple_html_dom.php'; $html = new simple_html_dom();

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.