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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:57:49+00:00 2026-05-22T01:57:49+00:00

For <svg> element that is used under IE9 the style=overflow:hidden attribute is very important.

  • 0

For <svg> element that is used under IE9 the style="overflow:hidden" attribute is very important.

Unfortunately, when the svg object is created using jQuery svg-plugin using the following code…

$('#svg').svg({onLoad: drawMap}); 

…that attribute is not set and image can be drawn outside of limiting div (svg element).

Is it possible to set that attribute using jQuery svg-plugin? Or I should do that in some other way?

  • 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-22T01:57:50+00:00Added an answer on May 22, 2026 at 1:57 am

    After some testing, I’ve come up with this solution which requires the overflow to be set after the SVG element is drawn. This is a simplified example using the bundled svgBasics.html file that comes with the plugin:

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
    <title>jQuery SVG Basics</title>
    <style type="text/css">
    @import "jquery.svg.css";
    
    #svgbasics { width: 100px; height: 100px; border: 1px solid #484; }
    </style>
    <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.6.min.js"></script>
    <script type="text/javascript" src="jquery.svg.js"></script>
    <script type="text/javascript">
    $(function() {
        $('#svgbasics').svg({onLoad: drawInitial});
    });
    
    function drawInitial(svg) {
        svg.circle(75, 75, 50, {fill: 'none', stroke: 'red', 'stroke-width': 3});
        var g = svg.group({stroke: 'black', 'stroke-width': 2});
        svg.line(g, 15, 75, 135, 75);
        svg.line(g, 75, 15, 75, 135);
        $('#svgbasics').css({'overflow' : 'hidden'});
    }
    
    </script>
    </head>
    <body>
    <div id="svgbasics"></div>
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would set my svg element as list-style-image: url(svg#id) and point to figure by
I'm new to jQuery and trying to change an attribute of an SVG element
I have an SVG element inside HTML document that I'd like to export as
I'm trying to parse the d attribute in SVG Path element, and so far
How can I include a SVG image in a HTML5 canvas element, so that
I have a SVG map of a city that when clicked, creates hidden elements
Is there any accurate way to get the real size of a svg element
I'm trying to rotate an SVG <polygon> (or any other element) using this: var
I have the following SVG source code that generates a number of boxes with
I have a SVG file that I want to extend by adding onclick handlers

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.