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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:06:13+00:00 2026-05-22T18:06:13+00:00

I am opening a popup window (inside it there is a div for displaying

  • 0

I am opening a popup window (inside it there is a div for displaying the chart)
When the maximize button is pressed the components are not aligned properly.

So for this i have read that we also need to have a parent container to solve the issue.

So i kept this way :

<div id="parent" style="margin:0 auto; width:1000px; position:relative;">

   <div id= "finance" style="position:absolute; top:10px; left:10px;"></div>

</div>

As a result of this , I am not able to increase the width of the div.

Please see the image here

My CSS is this

.centered {
    width:100%;
    height:100%; 
}
.html{ width:100%; height:100%; }
.body{ width:100%; height:100%; }

Please tell me how to solve this problem.

CSS Experts please help me.

  • 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-22T18:06:14+00:00Added an answer on May 22, 2026 at 6:06 pm

    Yor are referencing to .centered in your CSS and there’s no centered class in any div. Plus, style attributes have more relevance in the result than classes or even ids, so no matter what you put in your css, the div parent will always be 1000px.

    Also, you didn’t say if you need the div to grow with the window, or just to be centered when the window is maximized.

    You need to get rid of all the style attributes and reffer to those divs with their id’s in the css:

    #parent {
        width: 1000px; /* or percentage if you want it to grow */
        margin: 0 auto;
    }
    #finance {
        margin: 10px;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am opening one Popup window on Button Click in main window, it is
Response To: Opening Popup Window is not working in firefox and google chrome Hi,I
I am opening a new popup window on click of an URL in my
Hi I Opening a popup like this: function openPopup() { RetVal = window.showModalDialog(chooseProducts.aspx, ,
I'm opening a popup window via javascript. I'm trying to set some of the
I am opening a popup window from X.jsp and the popup is represented by
I am opening a modal popup window. Then I access a parent window textbox
I am opening a popup window from javascript using window.open. I want to open
Am running simple jquery code for opening the popup window in visual studio.Instead of
I have a weird issue. I am opening a popup window in IE6 with

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.