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

  • Home
  • SEARCH
  • 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 9235615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:05:35+00:00 2026-06-18T07:05:35+00:00

I was only playing around with SVG when I noticed that added a hover

  • 0

I was only playing around with SVG when I noticed that added a hover effect to the elements acts rather oddly but only in FE. In ie, chrome etc its all working as i would expect.

In short, hovering over elements does add the hover styles, but not always when expected.

Oddly, if you scroll to the bottom of the 1000 SVG (stress tests) and you hover in the white area just beneath the lst elements you will see it applys the hover effect whilst not touching the elements.

this is how i’m buiding the SVG’s

    for (var i=0;i<1000;i++)
{
    var newBlock = $('<div id="map'+i+'">');
    newBlock.svg();
    newBlock.appendTo($('body'));
    console.info(newBlock);
    var svg = newBlock.svg('get');
    svg.polygon([[17,0],[33,8],[33,27],[16,34],[0,26],[0,8]], {fill: '#B8E100', stroke: '#A5CC00', strokeWidth: 1});
}

http://jsfiddle.net/2cB89/

Any ideas why this is happening and why its only happening in firefox?

  • 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-18T07:05:37+00:00Added an answer on June 18, 2026 at 7:05 am

    You need to give the svg element width and height attributes.

    Add the following after the var svg line.

        svg.configure({width: '34px', height: '35px'});
    

    Without them the svg should be sized to 300 x 150 pixels. Chrome doesn’t implement the sizing correctly and Firefox does, although in your case the default behaviour of Chrome is closer to what you want.

    Here’s a corrected jsFiddle

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

Sidebar

Related Questions

I've been playing around with the windows clipboard. I noticed that you can only
I am playing around with Castle ActiveRecord and noticed that the download included the
I am playing around with data binding and noticed that the Binding Format is
I am playing around with the ASP.NET MVC Html.Helpers and I noticed that say
I'm playing around with Beam and NFC but I only own one android device,
Playing around with my web application in the iOS 5 simulator, I noticed that
I'm playing around with Journey on node and I only realized that the router
I have been playing around with using Lawnchair in phonegap but can only get
I'm playing around with Entity Framework 4 and code only. The tutorial I'm following
I've finally started playing around with Resharper and am loving it! The only problem

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.