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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:12:24+00:00 2026-05-27T04:12:24+00:00

I am using simplemodal ( www.ericmmartin.com/projects/simplemodal/ ) in multiple locations for a site. I

  • 0

I am using simplemodal (http://www.ericmmartin.com/projects/simplemodal/) in multiple locations for a site. I need to set some of these relative to the copy container div 1000px. Is this possible? Or can they only be set to the body?

  • 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-27T04:12:24+00:00Added an answer on May 27, 2026 at 4:12 am

    As long as your simplemodal html element is a child of a container, and said container has relative or absolute positioning then you can pull it off.

    http://www.w3schools.com/cssref/pr_class_position.asp

    Edit: Since your real goal is custom positioning. Just utilize the ability the dev provided in the library to manually position the modal. This is taken straight out of the documentation.

    // Manually set position using percentages
    $("#sample").modal({position: ["50%","50%"]});
    

    In order to position it correctly, you just need to get the offset of the element you want to position over, above, below, adjacent to etc… and perform the simple math and then call set the position as demonstrated above.

    You can get the offset of any element like so:

    var os = $('#selector').offset();
    var top = os.top;
    var left = os.left;
    

    http://api.jquery.com/offset/

    The offset is relative to the entire document so it will serve your fixed positioning needs well I believe.

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

Sidebar

Related Questions

I'm using SimpleModal plugin ( http://www.ericmmartin.com/projects/simplemodal/ ) for generating a simple modal dialog. Now
I am using jQuery 1.7.1, jQuery Validations plugin (http://docs.jquery.com/Plugins/Validation) 1.9.0, jQuery SimpleModal plugin (http://www.ericmmartin.com/projects/simplemodal/)
I use this call to create modal window using simplemodal ( http://www.ericmmartin.com/projects/simplemodal/ ): $.get(openform/,
I'm using the SimpleModal by Eric Martin (http://www.ericmmartin.com/projects/simplemodal-demos/) at www.1tryten.com/checkout.php. The code for loading
I'm using simpleModal plugin http://www.ericmmartin.com/projects/simplemodal/ when the text in the dialog is too long,
I'm using a Simplemodal plugin that I got from here: http://www.ericmmartin.com/projects/simplemodal-demos/ I was successful
I'm using simple-modal http://www.ericmmartin.com/projects/simplemodal/ I have one modal that opens on a button click,
I'm having issues here implementing the SimpleModal ( http://www.ericmmartin.com/projects/simplemodal/ ) version of a modal
I'm using jQuery and SimpleModal in an ASP.Net project to make some nice dialogs
I'm using the SimpleModal plugin to display a dialog on a site. Within that

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.