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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:08:06+00:00 2026-05-16T20:08:06+00:00

I have the following div in my markup <div id=sectionContent style=position: absolute; margin-top: 0px;

  • 0

I have the following div in my markup

<div id="sectionContent" style="position: absolute; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; z-index: 1; top: 56px; bottom: 6px; left: 8px; right: 8px; width: 722px; height: 624px; visibility: visible; display: block;">
    <div id="actionArea" style="text-align: left; margin-bottom: 2px;">
        <button id="addNote"><span class="ui-button-text">Aggiungi Nota</span></button>
    </div>
    <!-- Contains all the notes and limits their movement -->
    <div style="margin: 0 auto; position:relative; width:100%; height: 100%; z-index: 10;">
    </div>
</div>

The outer DIV, “sectionContent”, have its size automatically set at runtime by a jquery plugin that provide to its layout on the page. Inside this, I have the first DIV with a button (“actionArea”) and the div with id=”notesDesktop”.

I would like to setup a size for the “notesDesktop” DIV that is

  • Width equal to the “sectionContent” DIV
  • Height equals to the “sectionContent” DIV minus the height of the “actionArea” DIV

How can I do this with jQuery?

thanks a lot for helping

  • 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-16T20:08:06+00:00Added an answer on May 16, 2026 at 8:08 pm

    This should do the trick:

    $("#notesDesktop").width($("#sectionContent").width());
    $("#notesDesktop").height($("#sectionContent").height() - $("#actionArea").height());
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose I have the following DIV <div id=myDiv style=display:none title=></div> I have an ajax
I have the following markup <div id=FirstDiv> <div class=MyClass> <span> <a href=#>link 1</a> <a
I have the following markup <div id=hearingSummary> <table class=minitable> ... content removed for brevity
I have the following markup: <div data-id=1 data-name=Product 1>Product 1 <a href=# id=delete_1>Delete</a></div><br />
I have the following markup: <div class=FixedHeightContainer> <h2>Title</h2> <div class=Content> ..blah blah blah... </div>
I have the following markup and CSS: <div id=contactarea> <p class=heading>Anuncios Premium</p> <p class=tag>Asegure
I have the following HTML markup and I want the menu div tag to
I have the following div layout: Everything is fine when I put normal txt
I have the following code in my file to load a div with HTML
I have the following html <div id=menu> <ul class=horizMenu> <li id=active><a href=# id=current>About</a></li> <li><a

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.